Did I find the right examples for you? yes no

All Samples(106)  |  Call(81)  |  Derive(0)  |  Import(25)

src/s/y/Sypy-HEAD/jit/metainterp/resume.py   Sypy(Download)
def dump_storage(storage, liveboxes):
    "For profiling only."
    from pypy.rlib.objectmodel import compute_unique_id
    debug_start("jit-resume")
    if have_debug_prints():
        debug_print('Log storage', compute_unique_id(storage))
                jitcodename = frameinfo.jitcode.name
            except AttributeError:
                jitcodename = str(compute_unique_id(frameinfo.jitcode))
            debug_print('\tjitcode/pc', jitcodename,
                        frameinfo.pc,
                        'at', compute_unique_id(frameinfo))
            debug_print('\tnumb', str([untag(numb.nums[i])
                                       for i in range(len(numb.nums))]),
                        'at', compute_unique_id(numb))
            numb = numb.prev
        for const in storage.rd_consts:

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/resume.py   plexnet(Download)
    assert logname is not None    # annotator hack
    fd = os.open(logname, os.O_WRONLY | os.O_APPEND | os.O_CREAT, 0666)
    os.write(fd, 'Log(%d, [\n' % objectmodel.compute_unique_id(storage))
    frameinfo = storage.rd_frame_info_list
    while True:
        os.write(fd, '\t("%s", %d, %d) at %xd,\n' % (
            frameinfo.jitcode, frameinfo.pc, frameinfo.exception_target,
            objectmodel.compute_unique_id(frameinfo)))
    while True:
        os.write(fd, '\t\t%s at %xd,\n' % ([untag(i) for i in numb.nums],
                                           objectmodel.compute_unique_id(numb)))
        numb = numb.prev
        if numb is None:

src/s/y/Sypy-HEAD/jit/metainterp/history.py   Sypy(Download)
from pypy.rpython.ootypesystem import ootype
from pypy.rlib.objectmodel import we_are_translated, Symbolic
from pypy.rlib.objectmodel import compute_unique_id
from pypy.rlib.rarithmetic import r_int64, is_valid_int
 
def repr_rpython(box, typechars):
    return '%s/%s%d' % (box._get_hash_(), typechars,
                        compute_unique_id(box))
 
 
    def repr_of_descr(self):
        return 'TargetToken(%d)' % compute_unique_id(self)
 
class TreeLoop(object):
    inputargs = None

src/s/y/Sypy-HEAD/jit/backend/x86/assembler.py   Sypy(Download)
from pypy.jit.codewriter import longlong
from pypy.rlib.rarithmetic import intmask
from pypy.rlib.objectmodel import compute_unique_id
 
# darwin requires the stack to be 16 bytes aligned on calls. Same for gcc 4.5.0,
        else:
            assert token
            struct.number = compute_unique_id(token)
        self.loop_run_counters.append(struct)
        return struct

src/s/y/Sypy-HEAD/objspace/std/stringobject.py   Sypy(Download)
from pypy.rlib.rarithmetic import ovfcheck
from pypy.rlib.objectmodel import we_are_translated, compute_hash, specialize
from pypy.rlib.objectmodel import compute_unique_id
from pypy.objspace.std.inttype import wrapint
from pypy.objspace.std.sliceobject import W_SliceObject, normalize_simple_slice
    def immutable_unique_id(self, space):
        if self.user_overridden_class:
            return None
        return space.wrap(compute_unique_id(space.str_w(self)))
 

src/s/y/Sypy-HEAD/objspace/std/unicodeobject.py   Sypy(Download)
from pypy.rlib.rarithmetic import intmask, ovfcheck
from pypy.rlib.objectmodel import compute_hash, specialize
from pypy.rlib.objectmodel import compute_unique_id
from pypy.rlib.rstring import UnicodeBuilder
from pypy.rlib.runicode import unicode_encode_unicode_escape
    def immutable_unique_id(self, space):
        if self.user_overridden_class:
            return None
        return space.wrap(compute_unique_id(space.unicode_w(self)))
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/std/default.py   plexnet(Download)
def id__ANY(space, w_obj):
    #print 'id:', w_obj
    return space.wrap(objectmodel.compute_unique_id(w_obj))
 
# __init__ should succeed if called internally as a multimethod

src/s/y/Sypy-HEAD/interpreter/baseobjspace.py   Sypy(Download)
from pypy.tool.cache import Cache
from pypy.tool.uid import HUGEVAL_BYTES
from pypy.rlib.objectmodel import we_are_translated, newlist_hint,\
     compute_unique_id
from pypy.rlib.debug import make_sure_not_resized

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/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))
    def test_id_on_builtins(self):
        from pypy.rlib.objectmodel import compute_unique_id
        from pypy.rlib.rstring import StringBuilder, UnicodeBuilder
        def fn():
            return (compute_unique_id("foo"),

  1 | 2 | 3  Next