Did I find the right examples for you? yes no

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

src/s/y/Sypy-HEAD/jit/backend/llgraph/llimpl.py   Sypy(Download)
        if isinstance(x, int):
            # XXX normalize?
            ptr = str(llmemory.cast_int_to_adr(x))
        elif isinstance(ootype.typeOf(x), ootype.OOType):
            return repr(x)
    def op_guard_class(self, _, value, expected_class):
        value = lltype.cast_opaque_ptr(rclass.OBJECTPTR, value)
        expected_class = llmemory.cast_adr_to_ptr(
            llmemory.cast_int_to_adr(expected_class),
            rclass.CLASSTYPE)
    def _cast_exception(self, exception):
        return llmemory.cast_adr_to_ptr(
            llmemory.cast_int_to_adr(exception),
            rclass.CLASSTYPE)
 
def cast_from_int(TYPE, x):
    if isinstance(TYPE, lltype.Ptr):
        if isinstance(x, (int, long, llmemory.AddressAsInt)):
            x = llmemory.cast_int_to_adr(x)
        if TYPE is rffi.VOIDP or (
    elif TYPE == llmemory.Address:
        if isinstance(x, (int, long, llmemory.AddressAsInt)):
            x = llmemory.cast_int_to_adr(x)
        assert lltype.typeOf(x) == llmemory.Address
        return x

src/s/y/Sypy-HEAD/jit/backend/llsupport/gc.py   Sypy(Download)
                        iself.saved_prev = prev
                        iself.frame_addr = frame_addr
                        addr = llmemory.cast_int_to_adr(frame_addr +
                                                        self.force_index_ofs)
                        addr = iself.translateptr(iself.context, addr)
                        offset = rffi.cast(lltype.Signed, callshape[0])
                        callshape = lltype.direct_ptradd(callshape, 1)
                        addr = llmemory.cast_int_to_adr(iself.frame_addr +
                                                        offset)
                        addr = iself.translateptr(iself.context, addr)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/memory/gc/base.py   plexnet(Download)
        else:
            # make up a fresh id number
            result = llmemory.cast_int_to_adr(self.next_free_id)
            self.next_free_id += 2    # only odd numbers, to make lltype
                                      # and llmemory happy and to avoid

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/memory/gctransform/framework.py   plexnet(Download)
        def get_aid():
            """Return the thread identifier, cast to an (opaque) address."""
            return llmemory.cast_int_to_adr(ll_thread.get_ident())
 
        def thread_setup():

src/s/y/Sypy-HEAD/rpython/memory/gc/base.py   Sypy(Download)
        else:
            # make up a fresh id number
            result = llmemory.cast_int_to_adr(self.next_free_id)
            self.next_free_id += 2    # only odd numbers, to make lltype
                                      # and llmemory happy and to avoid

src/s/y/Sypy-HEAD/rpython/memory/gctransform/asmgcroot.py   Sypy(Download)
        def get_aid():
            """Return the thread identifier, cast to an (opaque) address."""
            return llmemory.cast_int_to_adr(ll_thread.get_ident())
 
        def thread_start():

src/s/y/Sypy-HEAD/rpython/lltypesystem/opimpl.py   Sypy(Download)
def op_cast_int_to_adr(int):
    return llmemory.cast_int_to_adr(int)
 
##def op_cast_int_to_adr(x):
##    assert type(x) is int

src/s/y/Sypy-HEAD/jit/codewriter/heaptracker.py   Sypy(Download)
def int2adr(int):
    return llmemory.cast_int_to_adr(int)
 
def count_fields_if_immutable(STRUCT):
    assert isinstance(STRUCT, lltype.GcStruct)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/lltypesystem/opimpl.py   plexnet(Download)
def op_cast_int_to_adr(int):
    return llmemory.cast_int_to_adr(int)
 
##def op_cast_int_to_adr(x):
##    assert type(x) is int

src/s/y/Sypy-HEAD/jit/backend/llgraph/runner.py   Sypy(Download)
    def force(self, force_token):
        token = llmemory.cast_int_to_adr(force_token)
        frame = llimpl.get_forced_token_frame(token)
        fail_index = llimpl.force(frame)
        self.latest_frame = frame

  1 | 2  Next