Did I find the right examples for you? yes no

All Samples(32)  |  Call(22)  |  Derive(0)  |  Import(10)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/warmstate.py   plexnet(Download)
            return history.ConstObj(value)
        else:
            return history.BoxObj(value)
    elif isinstance(value, float):
        if in_const_box:

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llgraph/llimpl.py   plexnet(Download)
from pypy.objspace.flow.model import Variable, Constant
from pypy.annotation import model as annmodel
from pypy.jit.metainterp.history import (ConstInt, ConstPtr, ConstAddr,
                                         BoxInt, BoxPtr, BoxObj, BoxFloat,
                                         REF, INT, FLOAT)
                            boxedargs.append(BoxFloat(x))
                        elif isinstance(ootype.typeOf(x), ootype.OOType):
                            boxedargs.append(BoxObj(ootype.cast_to_object(x)))
                        else:
                            boxedargs.append(BoxPtr(x))

src/s/y/Sypy-HEAD/jit/metainterp/warmstate.py   Sypy(Download)
            return history.ConstObj(value)
        else:
            return history.BoxObj(value)
    elif (isinstance(value, float) or
          longlong.is_longlong(lltype.typeOf(value))):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llgraph/runner.py   plexnet(Download)
    def do_runtimenew(self, classbox):
        "NOT_RPYTHON"
        classobj = classbox.getref(ootype.Class)
        res = ootype.runtimenew(classobj)
        return history.BoxObj(ootype.cast_to_object(res))
def boxresult(RESULT, result):
    if isinstance(RESULT, ootype.OOType):
        return history.BoxObj(ootype.cast_to_object(result))
    elif RESULT is lltype.Float:
        return history.BoxFloat(result)

src/s/y/Sypy-HEAD/jit/backend/llgraph/runner.py   Sypy(Download)
    def do_runtimenew(self, classbox):
        "NOT_RPYTHON"
        classobj = classbox.getref(ootype.Class)
        res = ootype.runtimenew(classobj)
        return history.BoxObj(ootype.cast_to_object(res))
def boxresult(RESULT, result):
    if isinstance(RESULT, ootype.OOType):
        return history.BoxObj(ootype.cast_to_object(result))
    elif RESULT is lltype.Float:
        return history.BoxFloat(result)

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 do_runtimenew(self, classbox):
        classobj = classbox.getref(ootype.Class)
        res = ootype.runtimenew(classobj)
        return BoxObj(ootype.cast_to_object(res))
 
            def get_errbox():
                return BoxObj()
        else:
            def get_errbox():
                return BoxInt()

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/typesystem.py   plexnet(Download)
    def get_exc_value_box(self, evalue):
        return history.BoxObj(evalue)
 
    def get_exception_obj(self, evaluebox):
        # only works when translated

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 do_runtimenew(self, classbox):
        classobj = classbox.getref(ootype.Class)
        res = ootype.runtimenew(classobj)
        return BoxObj(ootype.cast_to_object(res))
 
            def get_errbox():
                return BoxObj()
        else:
            def get_errbox():
                return BoxInt()

src/s/y/Sypy-HEAD/jit/metainterp/typesystem.py   Sypy(Download)
    def get_exc_value_box(self, evalue):
        return history.BoxObj(evalue)
 
    def get_exception_obj(self, evaluebox):
        # only works when translated

src/s/y/Sypy-HEAD/jit/metainterp/compile.py   Sypy(Download)
from pypy.jit.metainterp.history import TreeLoop, Box, History, JitCellToken, TargetToken
from pypy.jit.metainterp.history import AbstractFailDescr, BoxInt
from pypy.jit.metainterp.history import BoxPtr, BoxObj, BoxFloat, Const, ConstInt
from pypy.jit.metainterp import history
from pypy.jit.metainterp.typesystem import llhelper, oohelper

  1 | 2  Next