Did I find the right examples for you? yes no

All Samples(134)  |  Call(117)  |  Derive(0)  |  Import(17)

src/s/y/Sypy-HEAD/jit/tool/oparser_model.py   Sypy(Download)
    class LoopModel(object):
        from pypy.jit.metainterp.history import TreeLoop, JitCellToken
        from pypy.jit.metainterp.history import Box, BoxInt, BoxFloat
        from pypy.jit.metainterp.history import ConstInt, ConstObj, ConstPtr, ConstFloat
        from pypy.jit.metainterp.history import BasicFailDescr, TargetToken

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llsupport/descr.py   plexnet(Download)
from pypy.rpython.lltypesystem import lltype
from pypy.jit.backend.llsupport import symbolic
from pypy.jit.metainterp.history import AbstractDescr, getkind, BoxInt, BoxPtr
from pypy.jit.metainterp.history import BasicFailDescr, LoopToken, BoxFloat
from pypy.jit.metainterp.resoperation import ResOperation, rop
            ResOperation(rop.CALL, args, result, self),
            ResOperation(rop.GUARD_NO_EXCEPTION, [], None,
                         descr=BasicFailDescr()),
            ResOperation(rop.FINISH, result_list, None,
                         descr=BasicFailDescr())]

src/s/y/Sypy-HEAD/jit/backend/test/runner_test.py   Sypy(Download)
import py, sys, random, os, struct, operator
from pypy.jit.metainterp.history import (AbstractFailDescr,
                                         AbstractDescr,
                                         BasicFailDescr,
                                         BoxInt, Box, BoxPtr,
        operations = [ResOperation(opnum, valueboxes, result),
                      ResOperation(rop.FINISH, results, None,
                                   descr=BasicFailDescr(0))]
        if operations[0].is_guard():
            operations[0].setfailargs([])
            if not descr:
                descr = BasicFailDescr(1)
        operations = [
            ResOperation(rop.INT_ADD, [i0, ConstInt(1)], i1),
            ResOperation(rop.FINISH, [i1], None, descr=BasicFailDescr(1))
            ]
        inputargs = [i0]
            ResOperation(rop.INT_ADD, [i0, ConstInt(1)], i1),
            ResOperation(rop.INT_LE, [i1, ConstInt(9)], i2),
            ResOperation(rop.GUARD_TRUE, [i2], None, descr=BasicFailDescr(2)),
            ResOperation(rop.JUMP, [i1], None, descr=targettoken),
            ]

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/test/runner_test.py   plexnet(Download)
 
import py, sys, random
from pypy.jit.metainterp.history import (AbstractFailDescr,
                                         BasicFailDescr,
                                         BoxInt, Box, BoxPtr,
        operations = [ResOperation(opnum, valueboxes, result),
                      ResOperation(rop.FINISH, results, None,
                                   descr=BasicFailDescr(0))]
        if operations[0].is_guard():
            operations[0].fail_args = []
            if not descr:
                descr = BasicFailDescr(1)
        operations = [
            ResOperation(rop.INT_ADD, [i0, ConstInt(1)], i1),
            ResOperation(rop.FINISH, [i1], None, descr=BasicFailDescr(1))
            ]
        inputargs = [i0]
            ResOperation(rop.INT_ADD, [i0, ConstInt(1)], i1),
            ResOperation(rop.INT_LE, [i1, ConstInt(9)], i2),
            ResOperation(rop.GUARD_TRUE, [i2], None, descr=BasicFailDescr(2)),
            ResOperation(rop.JUMP, [i1], None, descr=looptoken),
            ]

src/s/y/Sypy-HEAD/jit/backend/x86/test/test_runner.py   Sypy(Download)
import py
from pypy.rpython.lltypesystem import lltype, llmemory, rffi, rstr, rclass
from pypy.rpython.annlowlevel import llhelper
from pypy.jit.metainterp.history import ResOperation, TargetToken, JitCellToken
from pypy.jit.metainterp.history import (BoxInt, BoxPtr, ConstInt, ConstFloat,
                        ResOperation(op, [b], f),
                        ResOperation(guard, [f], None,
                                     descr=BasicFailDescr()),
                        ResOperation(rop.FINISH, [ConstInt(0)], None,
                                     descr=BasicFailDescr()),
                        ResOperation(op, [a, b], res),
                        ResOperation(guard, [res], None,
                                     descr=BasicFailDescr()),
                        ResOperation(rop.FINISH, [ConstInt(0)], None,
                                     descr=BasicFailDescr()),

src/s/y/Sypy-HEAD/jit/backend/test/calling_convention_test.py   Sypy(Download)
from pypy.jit.metainterp.history import (AbstractFailDescr,
                                         AbstractDescr,
                                         BasicFailDescr,
                                         BoxInt, Box, BoxPtr,
                                         JitCellToken,
            py.test.skip('requires floats')
 
        fdescr3 = BasicFailDescr(3)
        fdescr4 = BasicFailDescr(4)
 

src/s/y/Sypy-HEAD/jit/backend/x86/test/test_regalloc.py   Sypy(Download)
 
import py
from pypy.jit.metainterp.history import BoxInt, ConstInt,\
     BoxPtr, ConstPtr, BasicFailDescr, JitCellToken, TargetToken
from pypy.jit.metainterp.resoperation import rop, ResOperation
    targettoken = TargetToken()
    targettoken2 = TargetToken()
    fdescr1 = BasicFailDescr(1)
    fdescr2 = BasicFailDescr(2)
    fdescr3 = BasicFailDescr(3)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/x86/test/test_regalloc.py   plexnet(Download)
 
import py
from pypy.jit.metainterp.history import ResOperation, BoxInt, ConstInt,\
     BoxPtr, ConstPtr, LoopToken, BasicFailDescr
from pypy.jit.metainterp.resoperation import rop, ResOperation
    raising_calldescr = cpu.calldescrof(FPTR.TO, FPTR.TO.ARGS, FPTR.TO.RESULT)
 
    fdescr1 = BasicFailDescr(1)
    fdescr2 = BasicFailDescr(2)
    fdescr3 = BasicFailDescr(3)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/test/test_random.py   plexnet(Download)
import py, sys
from pypy.rlib.rarithmetic import intmask, LONG_BIT
from pypy.rpython.lltypesystem import llmemory
from pypy.jit.backend.test import conftest as demo_conftest
from pypy.jit.metainterp.history import BasicFailDescr, TreeLoop
    def make_fail_descr(cls):
        descr = BasicFailDescr(cls.failnumbering)
        cls.failnumbering += 1
        return descr
 
        r.shuffle(endvars)
        loop.operations.append(ResOperation(rop.FINISH, endvars, None,
                                            descr=BasicFailDescr(-2)))
        if builder.should_fail_by:
            self.should_fail_by = builder.should_fail_by

src/s/y/Sypy-HEAD/jit/backend/test/test_random.py   Sypy(Download)
import py, sys
import pytest
from pypy.rlib.rarithmetic import intmask, LONG_BIT
from pypy.rpython.lltypesystem import llmemory
from pypy.jit.metainterp.history import BasicFailDescr, TreeLoop
        else:
            op = ResOperation(rop.GUARD_NO_OVERFLOW, [], None)
        op.setdescr(BasicFailDescr())
        op.setfailargs(fail_subset)
        builder.loop.operations.append(op)
    def produce_into(self, builder, r):
        op, passing = self.gen_guard(builder, r)
        builder.loop.operations.append(op)
        op.setdescr(BasicFailDescr())
        op.setfailargs(builder.subset_of_intvars(r))
        r.shuffle(endvars)
        loop.operations.append(ResOperation(rop.FINISH, endvars, None,
                                            descr=BasicFailDescr()))
        if builder.should_fail_by:
            self.should_fail_by = builder.should_fail_by
                op = ResOperation(rop.GUARD_EXCEPTION, [guard_op._exc_box],
                                  BoxPtr())
            op.setdescr(BasicFailDescr())
            op.setfailargs([])
            return op

  1 | 2  Next