Did I find the right examples for you? yes no

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)

src/s/y/Sypy-HEAD/jit/metainterp/virtualref.py   Sypy(Download)
            ('virtual_token', lltype.Signed),
            ('forced', rclass.OBJECTPTR))
        self.jit_virtual_ref_vtable = lltype.malloc(rclass.OBJECT_VTABLE,
                                                    zero=True, flavor='raw',
                                                    immortal=True)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llgraph/llimpl.py   plexnet(Download)
        if Class not in _pseudo_exceptions:
            ll_inst = lltype.malloc(rclass.OBJECT)
            ll_inst.typeptr = lltype.malloc(rclass.OBJECT_VTABLE,
                                            immortal=True)
            _pseudo_exceptions[Class] = LLException(ll_inst.typeptr, ll_inst)

src/s/y/Sypy-HEAD/rpython/lltypesystem/ll2ctypes.py   Sypy(Download)
from pypy.annotation import model as annmodel
from pypy.rpython.llinterp import LLInterpreter, LLException
from pypy.rpython.lltypesystem.rclass import OBJECT, OBJECT_VTABLE
from pypy.rpython import raddress
from pypy.translator.platform import platform
            # special treatment of 'OBJECT_VTABLE' subclasses
            if get_rtyper() and lltype._castdepth(REAL_TYPE,
                                                  OBJECT_VTABLE) >= 0:
                # figure out the real object that this vtable points to,
                # and just return that

src/s/y/Sypy-HEAD/jit/backend/llsupport/llmodel.py   Sypy(Download)
            # for tests, a random emulated ll_inst will do
            ll_inst = lltype.malloc(rclass.OBJECT)
            ll_inst.typeptr = lltype.malloc(rclass.OBJECT_VTABLE,
                                            immortal=True)
        setattr(self, '_%s_error_vtable' % prefix,

src/s/y/Sypy-HEAD/jit/codewriter/heaptracker.py   Sypy(Download)
def finish_registering(cpu):
    # annotation hack for small examples which have no vtable at all
    if not hasattr(cpu, '_all_size_descrs_with_vtable'):
        vtable = lltype.malloc(rclass.OBJECT_VTABLE, immortal=True)
        register_known_gctype(cpu, vtable, rclass.OBJECT)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llvm/runner.py   plexnet(Download)
            # for tests, a random emulated ll_inst will do
            ll_inst = lltype.malloc(rclass.OBJECT)
            ll_inst.typeptr = lltype.malloc(rclass.OBJECT_VTABLE,
                                            immortal=True)
        return ll_inst

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llsupport/llmodel.py   plexnet(Download)
            # for tests, a random emulated ll_inst will do
            ll_inst = lltype.malloc(rclass.OBJECT)
            ll_inst.typeptr = lltype.malloc(rclass.OBJECT_VTABLE,
                                            immortal=True)
        setattr(self, '_%s_error_vtable' % prefix,

src/s/y/Sypy-HEAD/jit/backend/llvm/runner.py   Sypy(Download)
            # for tests, a random emulated ll_inst will do
            ll_inst = lltype.malloc(rclass.OBJECT)
            ll_inst.typeptr = lltype.malloc(rclass.OBJECT_VTABLE,
                                            immortal=True)
        return ll_inst

src/s/y/Sypy-HEAD/jit/codewriter/assembler.py   Sypy(Download)
            if isinstance(TYPE, lltype.FuncType):
                name = value._obj._name
            elif TYPE == rclass.OBJECT_VTABLE:
                name = ''.join(value.name).rstrip('\x00')
            else:

src/s/y/Sypy-HEAD/rpython/memory/test/test_gctypelayout.py   Sypy(Download)
def test_layout_builder_with_vtable():
    from pypy.rpython.lltypesystem.lloperation import llop
    vtable = lltype.malloc(rclass.OBJECT_VTABLE, immortal=True)
    layoutbuilder = test_layout_builder({GC_S: vtable})
    tid1 = layoutbuilder.get_type_id(GC_S)

  1 | 2 | 3  Next