Did I find the right examples for you? yes no

All Samples(27)  |  Call(19)  |  Derive(0)  |  Import(8)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/x86/regalloc.py   plexnet(Download)
 
""" Register allocation scheme.
"""
 
from pypy.jit.metainterp.history import (Box, Const, ConstInt, ConstPtr,

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)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/logger.py   plexnet(Download)
import os
from pypy.rlib.objectmodel import compute_unique_id
from pypy.jit.metainterp.resoperation import rop
from pypy.jit.metainterp.history import Const, ConstInt, Box, \
     BoxInt, ConstAddr, ConstFloat, BoxFloat, AbstractFailDescr

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/test/test_resume.py   plexnet(Download)
import py
from pypy.rpython.lltypesystem import lltype, llmemory, rffi
from pypy.jit.metainterp.optimizeopt import VirtualValue, OptValue
from pypy.jit.metainterp.resume import *
from pypy.jit.metainterp.history import BoxInt, BoxPtr, ConstInt, ConstAddr
def virtual_value(keybox, value, next):
    vv = VirtualValue(None, ConstAddr(LLtypeMixin.node_vtable_adr,
                                          LLtypeMixin.cpu), keybox)
    if not isinstance(next, OptValue):
        next = OptValue(next)
    modifier.vfieldboxes = []
    modifier.make_virtual(b2s,
                          ConstAddr(LLtypeMixin.node_vtable_adr,
                                    LLtypeMixin.cpu),
                          [LLtypeMixin.nextdescr, LLtypeMixin.valuedescr],
                          [b4s, c1s])   # new fields
    modifier.make_virtual(b4s,
                          ConstAddr(LLtypeMixin.node_vtable_adr2,
    trace = metainterp.trace
    expected =  [
        (rop.NEW_WITH_VTABLE, [ConstAddr(LLtypeMixin.node_vtable_adr,
                                         LLtypeMixin.cpu)],
                              b2t, None),

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/test/test_ll_random.py   plexnet(Download)
from pypy.jit.metainterp.resoperation import ResOperation, rop
from pypy.jit.metainterp.history import ConstInt, ConstPtr
from pypy.jit.metainterp.history import ConstAddr, BoxPtr, BoxInt
from pypy.rpython.annlowlevel import llhelper
from pypy.rlib.rarithmetic import intmask
        vtable = S._hints['vtable']._as_ptr()
        vtable2 = S2._hints['vtable']._as_ptr()
        c_vtable2 = ConstAddr(llmemory.cast_ptr_to_adr(vtable2), builder.cpu)
        op = ResOperation(self.opnum, [v, c_vtable2], None)
        return op, (vtable == vtable2)
    def produce_into(self, builder, r):
        if self.opnum == rop.NEW_WITH_VTABLE:
            S, vtable = builder.get_random_structure_type_and_vtable(r)
            args = [ConstAddr(llmemory.cast_ptr_to_adr(vtable), builder.cpu)]
            descr = None
        TP = lltype.FuncType([lltype.Signed] * len(subset), RES)
        ptr = llhelper(lltype.Ptr(TP), f)
        c_addr = ConstAddr(llmemory.cast_ptr_to_adr(ptr), builder.cpu)
        args = [c_addr] + subset
        descr = builder.cpu.calldescrof(TP, TP.ARGS, TP.RESULT)
        TP = lltype.FuncType([lltype.Signed] * len(subset), RES)
        ptr = llhelper(lltype.Ptr(TP), f)
        c_addr = ConstAddr(llmemory.cast_ptr_to_adr(ptr), builder.cpu)
        args = [c_addr] + subset
        descr = builder.cpu.calldescrof(TP, TP.ARGS, TP.RESULT)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/test/oparser.py   plexnet(Download)
"""
 
from pypy.jit.metainterp.history import TreeLoop, BoxInt, ConstInt,\
     ConstAddr, ConstObj, ConstPtr, Box, BasicFailDescr, BoxFloat, ConstFloat,\
     LoopToken
            else:
                assert typ == 'class'
                return ConstAddr(llmemory.cast_ptr_to_adr(obj),
                                 self.cpu)
        else:

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/test/test_optimizefindnode.py   plexnet(Download)
 
from pypy.jit.backend.llgraph import runner
from pypy.jit.metainterp.history import (BoxInt, BoxPtr, ConstInt, ConstPtr,
                                         Const, ConstAddr, TreeLoop, BoxObj,
                                         ConstObj, AbstractDescr)
        def constclass(cls_vtable):
            if self.type_system == 'lltype':
                return ConstAddr(llmemory.cast_ptr_to_adr(cls_vtable),
                                 self.cpu)
            else:

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/test/test_random.py   plexnet(Download)
from pypy.jit.metainterp.history import BasicFailDescr, TreeLoop
from pypy.jit.metainterp.history import BoxInt, ConstInt, LoopToken
from pypy.jit.metainterp.history import BoxPtr, ConstPtr, ConstAddr
from pypy.jit.metainterp.history import BoxFloat, ConstFloat, Const
from pypy.jit.metainterp.resoperation import ResOperation, rop