Did I find the right examples for you? yes no

All Samples(82)  |  Call(50)  |  Derive(0)  |  Import(32)

src/s/y/Sypy-HEAD/objspace/fake/objspace.py   Sypy(Download)
from pypy.rlib.unroll import unrolling_iterable
from pypy.rlib.objectmodel import instantiate, we_are_translated
from pypy.rlib.nonconst import NonConstant
from pypy.rlib.rarithmetic import r_uint, r_singlefloat
from pypy.translator.translator import TranslationContext
    def setdictvalue(self, space, attr, w_value):
        attr + "xx"   # check that it's a string
        is_root(w_value)
        return NonConstant(True)
 
    def deldictvalue(self, space, attr):
        attr + "xx"   # check that it's a string
        return NonConstant(True)
    def str_w(self, space):
        return NonConstant("foobar")
 
    def unicode_w(self, space):
        return NonConstant(u"foobar")

src/s/y/Sypy-HEAD/module/pypyjit/interp_resop.py   Sypy(Download)
from pypy.rpython.lltypesystem.rclass import OBJECT
from pypy.jit.metainterp.resoperation import rop, AbstractResOp
from pypy.rlib.nonconst import NonConstant
from pypy.rlib import jit_hooks
from pypy.module.pypyjit.interp_jit import pypyjitdriver
    cache = space.fromcache(Cache)
    cache.w_compile_hook = w_hook
    cache.in_recursion = NonConstant(False)
 
def set_optimize_hook(space, w_hook):
    cache = space.fromcache(Cache)
    cache.w_optimize_hook = w_hook
    cache.in_recursion = NonConstant(False)
 
def set_abort_hook(space, w_hook):
    cache = space.fromcache(Cache)
    cache.w_abort_hook = w_hook
    cache.in_recursion = NonConstant(False)
 
def wrap_oplist(space, logops, operations, ops_offset=None):

src/s/y/Sypy-HEAD/rlib/jit.py   Sypy(Download)
import sys
 
import py
 
from pypy.rlib.nonconst import NonConstant
    This is for advanced usage only.
    """
    return NonConstant(False)
isconstant._annspecialcase_ = "specialize:call_location"
 
    This is for advanced usage only.
    """
    return NonConstant(False)
isvirtual._annspecialcase_ = "specialize:call_location"
 
def current_trace_length():
    """During JIT tracing, returns the current trace length (as a constant).
    If not tracing, returns -1."""
    if NonConstant(False):
        return 73

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/fake/objspace.py   plexnet(Download)
from pypy.interpreter.baseobjspace import ObjSpace, Wrappable, W_Root
from pypy.interpreter.typedef import TypeDef
from pypy.rlib.nonconst import NonConstant
from pypy.rlib.rarithmetic import r_uint
from pypy.rlib.rbigint import rbigint
    def fn(*args):
        if NonConstant(True):
            return a
        else:
            return b

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/clr/boxing_rules.py   plexnet(Download)
 
from pypy.objspace.fake.objspace import W_Object as W_Object_Fake
from pypy.rlib.nonconst import NonConstant
 
class __extend__(W_Object_Fake):
    __metaclass__ = extendabletype
 
    def tocli(self):
        return NonConstant(None)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/tl/tlc.py   plexnet(Download)
def non_constant(bytecode, pool):
    from pypy.rlib.nonconst import NonConstant
    if NonConstant(False):
        pool = ConstantPool()
        pool.add_string("foo")

src/s/y/Sypy-HEAD/jit/tl/tlc.py   Sypy(Download)
def non_constant(bytecode, pool):
    from pypy.rlib.nonconst import NonConstant
    if NonConstant(False):
        pool = ConstantPool()
        pool.add_string("foo")

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/fake/checkmodule.py   plexnet(Download)
from pypy.interpreter.argument import Arguments
from pypy.interpreter.gateway import interp2app
from pypy.rlib.nonconst import NonConstant
 
def my_import(name):
def dummy_rpython(dummy_function):
    # to make the annotator flow-in without executing the code
    if NonConstant(False):
        dummy_function.defs_w = [None] # else the annotator would see an always empty list
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/warmstate.py   plexnet(Download)
from pypy.rlib.objectmodel import specialize, we_are_translated, r_dict
from pypy.rlib.rarithmetic import intmask
from pypy.rlib.nonconst import NonConstant
from pypy.rlib.unroll import unrolling_iterable
from pypy.rlib.jit import PARAMETERS, OPTIMIZER_SIMPLE, OPTIMIZER_FULL
            """
            globaldata = metainterp_sd.globaldata
            if NonConstant(False):
                # make sure we always see the saner optimizer from an
                # annotation point of view, otherwise we get lots of

src/s/y/Sypy-HEAD/rpython/memory/gctransform/shadowstack.py   Sypy(Download)
from pypy.rpython.lltypesystem import lltype, llmemory
from pypy.rlib.debug import ll_assert
from pypy.rlib.nonconst import NonConstant
from pypy.annotation import model as annmodel
 
        def walk_stack_root(callback, start, end):
            root_iterator.setcontext(NonConstant(llmemory.NULL))
            gc = self.gc
            addr = end
            while True:

  1 | 2 | 3 | 4  Next