Did I find the right examples for you? yes no

All Samples(39)  |  Call(27)  |  Derive(0)  |  Import(12)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/warmstate.py   plexnet(Download)
        value = ootype.cast_to_object(value)
        if in_const_box:
            return history.ConstObj(value)
        else:
            return history.BoxObj(value)

src/s/y/Sypy-HEAD/jit/metainterp/warmstate.py   Sypy(Download)
        value = ootype.cast_to_object(value)
        if in_const_box:
            return history.ConstObj(value)
        else:
            return history.BoxObj(value)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/cli/method.py   plexnet(Download)
from pypy.translator.cli import opcodes
from pypy.jit.metainterp import history
from pypy.jit.metainterp.history import (AbstractValue, Const, ConstInt, ConstFloat,
                                         ConstObj, BoxInt, LoopToken)
from pypy.jit.metainterp.resoperation import rop, opname
        self.exc_value_field = t_InputArgs.GetField('exc_value')
        if cpu.rtyper:
            self.av_OverflowError = ConstObj(ootype.cast_to_object(cpu.ll_ovf_exc))
            self.av_ZeroDivisionError = ConstObj(ootype.cast_to_object(cpu.ll_zero_exc))
        else:

src/s/y/Sypy-HEAD/jit/backend/cli/method.py   Sypy(Download)
from pypy.translator.cli import opcodes
from pypy.jit.metainterp import history
from pypy.jit.metainterp.history import (AbstractValue, Const, ConstInt, ConstFloat,
                                         ConstObj, BoxInt, LoopToken)
from pypy.jit.metainterp.resoperation import rop, opname
        self.exc_value_field = t_InputArgs.GetField('exc_value')
        if cpu.rtyper:
            self.av_OverflowError = ConstObj(ootype.cast_to_object(cpu.ll_ovf_exc))
            self.av_ZeroDivisionError = ConstObj(ootype.cast_to_object(cpu.ll_zero_exc))
        else:

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/typesystem.py   plexnet(Download)
    ConstAddr = history.ConstObj
    loops_done_with_this_frame_ref = None # patched by compile.py
    CONST_NULL = history.ConstObj(history.ConstObj.value)
    CVAL_NULLREF = None # patched by optimizeopt.py
 
    def new_ConstRef(self, x):
        obj = ootype.cast_to_object(x)
        return history.ConstObj(obj)
 
    def get_typeptr(self, obj):
    def cls_of_box(self, cpu, box):
        obj = box.getref(ootype.ROOT)
        oocls = ootype.classof(obj)
        return history.ConstObj(ootype.cast_to_object(oocls))
 
    def get_exception_box(self, etype):
        return history.ConstObj(etype)
 
    def get_exc_value_box(self, evalue):
        return history.BoxObj(evalue)
    def conststr(self, str):
        oo = oostr(str)
        return history.ConstObj(ootype.cast_to_object(oo))
 
    # A dict whose keys are refs (like the .value of BoxObj).

src/s/y/Sypy-HEAD/jit/metainterp/typesystem.py   Sypy(Download)
    loops_done_with_this_frame_ref = None # patched by compile.py
    NULLREF = history.ConstObj.value
    CONST_NULL = history.ConstObj(NULLREF)
    CVAL_NULLREF = None # patched by optimizeopt.py
 
    def new_ConstRef(self, x):
        obj = ootype.cast_to_object(x)
        return history.ConstObj(obj)
    def cls_of_box(self, cpu, box):
        obj = box.getref(ootype.ROOT)
        oocls = ootype.classof(obj)
        return history.ConstObj(ootype.cast_to_object(oocls))
 
    def get_exception_box(self, etype):
        return history.ConstObj(etype)
 
    def get_exc_value_box(self, evalue):
        return history.BoxObj(evalue)
    def conststr(self, str):
        oo = oostr(str)
        return history.ConstObj(ootype.cast_to_object(oo))
 
    # A dict whose keys are refs (like the .value of BoxObj).

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llgraph/runner.py   plexnet(Download)
    def typedescr2classbox(self, descr):
        assert isinstance(descr, TypeDescr)
        return history.ConstObj(ootype.cast_to_object(
                            ootype.runtimeClass(descr.TYPE)))
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/cli/runner.py   plexnet(Download)
from pypy.jit.metainterp.history import AbstractDescr, AbstractMethDescr
from pypy.jit.metainterp.history import AbstractFailDescr, LoopToken
from pypy.jit.metainterp.history import Box, BoxInt, BoxObj, ConstObj, Const
from pypy.jit.metainterp import executor
from pypy.jit.metainterp.resoperation import rop, opname
    def typedescr2classbox(self, descr):
        assert isinstance(descr, TypeDescr)
        return ConstObj(ootype.cast_to_object(descr.ooclass))
 
    # ----------------------

src/s/y/Sypy-HEAD/jit/backend/llgraph/runner.py   Sypy(Download)
    def typedescr2classbox(self, descr):
        assert isinstance(descr, TypeDescr)
        return history.ConstObj(ootype.cast_to_object(
                            ootype.runtimeClass(descr.TYPE)))
 

src/s/y/Sypy-HEAD/jit/backend/cli/runner.py   Sypy(Download)
from pypy.jit.metainterp.history import AbstractDescr, AbstractMethDescr
from pypy.jit.metainterp.history import AbstractFailDescr, LoopToken
from pypy.jit.metainterp.history import Box, BoxInt, BoxObj, ConstObj, Const
from pypy.jit.metainterp import executor
from pypy.jit.metainterp.resoperation import rop, opname
    def typedescr2classbox(self, descr):
        assert isinstance(descr, TypeDescr)
        return ConstObj(ootype.cast_to_object(descr.ooclass))
 
    # ----------------------

  1 | 2  Next