Did I find the right examples for you? yes no

All Samples(11)  |  Call(9)  |  Derive(2)  |  Import(0)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/llinterp.py   plexnet(Download)
    def op_get_frame_base(self):
        self._obj0 = self        # hack
        return llmemory.fakeaddress(self)
 
    def op_frame_info(self, *vars):
    def unwrap_possible_weakref(self, addr):
        # fish fish fish
        if addr and isinstance(addr.ptr._obj, llmemory._gctransformed_wref):
            return llmemory.fakeaddress(addr.ptr._obj._ptr)
        return addr

src/s/y/Sypy-HEAD/rpython/llinterp.py   Sypy(Download)
    def unwrap_possible_weakref(self, addr):
        # fish fish fish
        if addr and isinstance(addr.ptr._obj, llmemory._gctransformed_wref):
            return llmemory.fakeaddress(addr.ptr._obj._ptr)
        return addr

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/lltypesystem/lltype.py   plexnet(Download)
    def _cast_to_adr(self):
        from pypy.rpython.lltypesystem import llmemory
        if isinstance(self._T, FuncType):
            return llmemory.fakeaddress(self)
        elif self._was_freed():
            # hack to support llarena.test_replace_object_with_stub()
            from pypy.rpython.lltypesystem import llarena
            return llarena._oldobj_to_address(self._getobj(check=False))
        elif isinstance(self._obj, _subarray):
            return llmemory.fakeaddress(self)
        else:
            # normal case
            return llmemory.fakeaddress(normalizeptr(self))
 
    def _as_ptr(self):

src/s/y/Sypy-HEAD/rpython/lltypesystem/lltype.py   Sypy(Download)
    def _cast_to_adr(self):
        from pypy.rpython.lltypesystem import llmemory
        if isinstance(self._T, FuncType):
            return llmemory.fakeaddress(self)
        elif self._was_freed():
            # hack to support llarena.test_replace_object_with_stub()
            from pypy.rpython.lltypesystem import llarena
            return llarena._oldobj_to_address(self._getobj(check=False))
        elif isinstance(self._obj, _subarray):
            return llmemory.fakeaddress(self)
        else:
            # normal case
            return llmemory.fakeaddress(normalizeptr(self))
 
    def _as_ptr(self):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/lltypesystem/llarena.py   plexnet(Download)
class fakearenaaddress(llmemory.fakeaddress):
 
    def __init__(self, arena, offset):
        self.arena = arena
        self.offset = offset

src/s/y/Sypy-HEAD/rpython/lltypesystem/llarena.py   Sypy(Download)
class fakearenaaddress(llmemory.fakeaddress):
 
    def __init__(self, arena, offset):
        self.arena = arena
        self.offset = offset