Did I find the right examples for you? yes no

All Samples(37)  |  Call(19)  |  Derive(0)  |  Import(18)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/std/typeobject.py   plexnet(Download)
from pypy.objspace.std.dictproxyobject import W_DictProxyObject
from pypy.rlib.objectmodel import we_are_translated
from pypy.rlib.objectmodel import current_object_addr_as_int, compute_hash
from pypy.rlib.jit import hint, purefunction, we_are_jitted, dont_look_inside
from pypy.rlib.rarithmetic import intmask, r_uint
    def _pure_lookup_where_with_method_cache(w_self, name, version_tag):
        space = w_self.space
        SHIFT = r_uint.BITS - space.config.objspace.std.methodcachesizeexp
        version_tag_as_int = current_object_addr_as_int(version_tag)
        # ^^^Note: if the version_tag object is moved by a moving GC, the

src/s/y/Sypy-HEAD/objspace/std/typeobject.py   Sypy(Download)
from pypy.objspace.std import identitydict
from pypy.rlib.objectmodel import we_are_translated
from pypy.rlib.objectmodel import current_object_addr_as_int, compute_hash
from pypy.rlib.jit import promote, elidable_promote, we_are_jitted,\
     promote_string
        SHIFT2 = r_uint.BITS - space.config.objspace.std.methodcachesizeexp
        SHIFT1 = SHIFT2 - 5
        version_tag_as_int = current_object_addr_as_int(version_tag)
        # ^^^Note: if the version_tag object is moved by a moving GC, the
        # existing method cache entries won't be found any more; new

src/s/y/Sypy-HEAD/objspace/std/mapdict.py   Sypy(Download)
        SHIFT2 = r_uint.BITS - space.config.objspace.std.methodcachesizeexp
        SHIFT1 = SHIFT2 - 5
        attrs_as_int = objectmodel.current_object_addr_as_int(self)
        # ^^^Note: see comment in typeobject.py for
        # _pure_lookup_where_with_method_cache()

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/goal/targetrpystonex.py   plexnet(Download)
from pypy.translator.test import rpystone
from pypy.rlib.objectmodel import current_object_addr_as_int
 
 
def make_target_definition(LOOPS):
        g.PtrGlb = None
        g.PtrGlbNext = None
        return rpystone.pystones(loops), current_object_addr_as_int(g)
 
    def target(*args):

src/s/y/Sypy-HEAD/translator/goal/targetrpystonex.py   Sypy(Download)
from pypy.translator.test import rpystone
from pypy.rlib.objectmodel import current_object_addr_as_int
 
 
def make_target_definition(LOOPS):
        g.PtrGlb = None
        g.PtrGlbNext = None
        return rpystone.pystones(loops), current_object_addr_as_int(g)
 
    def target(*args):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/test/test_rbuiltin.py   plexnet(Download)
    def test_id(self):
        from pypy.rlib.objectmodel import compute_unique_id
        from pypy.rlib.objectmodel import current_object_addr_as_int
        class A:
            pass
        def fn():
            a1 = A()
            a2 = A()
            return (compute_unique_id(a1), current_object_addr_as_int(a1),
                    compute_unique_id(a2), current_object_addr_as_int(a2))

src/s/y/Sypy-HEAD/rpython/test/test_rbuiltin.py   Sypy(Download)
    def test_id(self):
        from pypy.rlib.objectmodel import compute_unique_id
        from pypy.rlib.objectmodel import current_object_addr_as_int
        class A:
            pass
        def fn():
            a1 = A()
            a2 = A()
            return (compute_unique_id(a1), current_object_addr_as_int(a1),
                    compute_unique_id(a2), current_object_addr_as_int(a2))

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/test/test_rclass.py   plexnet(Download)
    def test_hash_preservation(self):
        from pypy.rlib.objectmodel import current_object_addr_as_int
        from pypy.rlib.objectmodel import compute_identity_hash
        class C:
            pass
        def f():
            d2 = D()
            return (compute_identity_hash(d2),
                    current_object_addr_as_int(d2),
                    compute_identity_hash(c),
    def test_instance_repr(self):
        from pypy.rlib.objectmodel import current_object_addr_as_int
        class FooBar(object):
            pass
        def f():
            x = FooBar()
            # on lltype, the RPython-level repr of an instance contains the
            # current object address
            return current_object_addr_as_int(x), str(x)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/c/test/test_typed.py   plexnet(Download)
    def test_hash_preservation(self):
        from pypy.rlib.objectmodel import compute_hash
        from pypy.rlib.objectmodel import current_object_addr_as_int
        class C:
            pass
        def fn():
            d2 = D()
            return (compute_hash(d2),
                    current_object_addr_as_int(d2),
                    compute_hash(c),

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/c/test/test_boehm.py   plexnet(Download)
    def test_hash_preservation(self):
        from pypy.rlib.objectmodel import compute_hash
        from pypy.rlib.objectmodel import current_object_addr_as_int
        class C:
            pass
        def fn():
            d2 = D()
            return (compute_hash(d2),
                    current_object_addr_as_int(d2),
                    compute_hash(c),

  1 | 2  Next