PageRenderTime 351ms queryFilters 1ms Sphinxql 81ms GetByIds 198ms meta 0ms repositoryFilters 0ms languageFilters 0ms sourceFilters 1ms

1,556 results for 'rpython repo:pypy/pypy' (351 ms)



Repository | Python | 630 lines
5import py
6from rpython.tool import disassembler
7from rpython.tool.udir import udir
7from rpython.tool.udir import udir
8from rpython.tool import logparser
9from rpython.jit.tool.jitoutput import parse_prof
137    def match(self, src1, src2, **kwds):
138        from rpython.tool.jitlogparser.parser import SimpleParser
139        loop = SimpleParser.parse_from_input(src1) | Python | 144 lines
3from pypy.interpreter.typedef import TypeDef, GetSetProperty
4from rpython.rtyper.lltypesystem import lltype, rffi
5from pypy.module._rawffi.interp_rawffi import write_ptr
10from rpython.rlib.clibffi import USERDATA_P, CallbackFuncPtr, FUNCFLAG_CDECL
11from rpython.rlib.clibffi import ffi_type_void, LibFFIError
11from rpython.rlib.clibffi import ffi_type_void, LibFFIError
12from rpython.rlib import rweakref
13from pypy.module._rawffi.tracker import tracker
15from pypy.interpreter import gateway
16from rpython.rlib.unroll import unrolling_iterable
17 | Python | 1,274 lines
1from rpython.translator.platform import platform
2from rpython.translator.tool.cbuild import ExternalCompilationInfo
2from rpython.translator.tool.cbuild import ExternalCompilationInfo
3from rpython.translator import cdir
4from pypy.module._rawffi.interp_rawffi import TYPEMAP, TYPEMAP_FLOAT_LETTERS
12    def prepare_c_example():
13        from rpython.tool.udir import udir
14        c_file = udir.ensure("test__rawffi", dir=1).join("xlib.c")
232        space =
233        from rpython.rlib.clibffi import get_libc_name
234        cls.w_lib_name = space.wrap(cls.prepare_c_example()) | Python | 180 lines
3from rpython.rlib import rgc, ropenssl
4from rpython.rlib.objectmodel import we_are_translated
4from rpython.rlib.objectmodel import we_are_translated
5from rpython.rlib.rstring import StringBuilder
6from rpython.rtyper.lltypesystem import lltype, rffi
6from rpython.rtyper.lltypesystem import lltype, rffi
7from rpython.tool.sourcetools import func_renamer
8 | Python | 702 lines
1from rpython.rlib import jit
2from rpython.rlib.objectmodel import we_are_translated
2from rpython.rlib.objectmodel import we_are_translated
3from rpython.rlib.rstring import UnicodeBuilder
4from rpython.rlib.runicode import code_to_unichr, MAXUNICODE
271def register_builtin_error_handlers(space):
272    "NOT_RPYTHON"
273    state = space.fromcache(CodecState)
370from rpython.rlib import runicode
371 | Python | 162 lines
1from rpython.rlib import jit
2from rpython.rlib.objectmodel import specialize
2from rpython.rlib.objectmodel import specialize
3from rpython.rlib.rstring import StringBuilder
4from rpython.rlib.rstruct.error import StructError
4from rpython.rlib.rstruct.error import StructError
5from rpython.rlib.rstruct.formatiterator import FormatIterator
6 | Python | 870 lines
4from pypy.interpreter.error import OperationError, oefmt
5from rpython.rlib import rgc, jit
6from rpython.rtyper.lltypesystem import rffi, lltype
6from rpython.rtyper.lltypesystem import rffi, lltype
7from rpython.rtyper.tool import rffi_platform
8from rpython.translator.tool.cbuild import ExternalCompilationInfo
8from rpython.translator.tool.cbuild import ExternalCompilationInfo
9from rpython.translator.platform import platform
10 | Python | 36 lines
1from rpython.translator.translator import TranslationContext
2from rpython.translator.c.genc import CStandaloneBuilder
2from rpython.translator.c.genc import CStandaloneBuilder
3from rpython.annotator.listdef import s_list_of_strings
4from rpython.rtyper.lltypesystem import rffi, lltype
4from rpython.rtyper.lltypesystem import rffi, lltype
5from rpython.rtyper.tool.rffi_platform import CompilationError
6 | Python | 414 lines
3from pypy.rlib.objectmodel import enforceargs
4from pypy.rpython.lltypesystem import rstr
5from pypy.rpython.lltypesystem.lltype import (GcForwardReference, Ptr, GcArray,
6     GcStruct, Void, Signed, malloc, typeOf, nullptr, typeMethod)
7from pypy.rpython.rlist import (AbstractBaseListRepr, AbstractListRepr,
8    AbstractFixedSizeListRepr, AbstractListIteratorRepr, ll_setitem_nonneg,
9    ADTIList, ADTIFixedList, dum_nocheck)
10from pypy.rpython.rmodel import Repr, inputconst, externalvsinternal
11from pypy.tool.pairtype import pairtype, pair
16#  Concrete implementation of RPython lists:
17# | Python | 181 lines
103                # If not, then we have a problem :-)
104                from pypy.rpython.lltypesystem import lltype
105                assert v.concretetype is lltype.Void
134    from pypy.annotation import model as annmodel
135    from pypy.rpython.lltypesystem import lltype
136    from pypy.rpython.annlowlevel import MixLevelHelperAnnotator
157    from pypy.annotation import model as annmodel
158    from pypy.rpython.lltypesystem import lltype
159    from pypy.rpython.annlowlevel import MixLevelHelperAnnotator | Python | 419 lines
4from pypy.translator.c.node import ContainerNode
5from pypy.rpython.lltypesystem.lltype import \
6     typeOf, Ptr, ContainerType, RttiStruct, \
7     RuntimeTypeInfo, getRuntimeTypeInfo, top_container
8from pypy.rpython.memory.gctransform import \
9     refcounting, boehm, framework, asmgcroot
9     refcounting, boehm, framework, asmgcroot
10from pypy.rpython.lltypesystem import lltype, llmemory
11from pypy.translator.tool.cbuild import ExternalCompilationInfo
225        from pypy.rpython.tool.rffi_platform import configure_boehm
226        eci = eci.merge(configure_boehm())
377    def OP_GC_GETTYPEPTR_GROUP(self, funcgen, op):
378        # expands to a number of steps, as per rpython/lltypesystem/,
379        # all implemented by a single call to a C macro.
configuration.rst | Unknown | 192 lines
7management was introduced. There all the necessary options are stored in a
8configuration object, which is available nearly everywhere in the `RPython
9toolchain`_ and in the standard interpreter so that adding new options becomes
14.. _RPython toolchain:
135    >>> from rpython.config.config import OptionDescription, Config, BoolOption
136    >>> descr = OptionDescription("options", "", [
186The two large parts of PyPy, the Python interpreter and the RPython
187toolchain, have two separate sets of options. The translation toolchain options
188can be found on the ``config`` attribute of all ``TranslationContext``
189instances and are described in :source:`rpython/config/`. The interpreter options
190are attached to the object space, also under the name ``config`` and are | Python | 2,565 lines
6from pypy.jit.metainterp.history import JitCellToken
7from pypy.rpython.lltypesystem import lltype, rffi, rstr, llmemory
8from pypy.rpython.lltypesystem.lloperation import llop
8from pypy.rpython.lltypesystem.lloperation import llop
9from pypy.rpython.annlowlevel import llhelper
10from pypy.rlib.jit import AsmInfo
351        # similar to, first part
352        from pypy.rpython.memory.gctransform import asmgcroot
353        new = rffi.cast(asmgcroot.ASM_FRAMEDATA_HEAD_PTR, css)
371        # similar to, second part
372        from pypy.rpython.memory.gctransform import asmgcroot
373        old = rffi.cast(asmgcroot.ASM_FRAMEDATA_HEAD_PTR, css) | Python | 1,922 lines
2The non-RPythonic part of the llgraph backend.
3This contains all the code that is directly run
12from pypy.jit.codewriter import heaptracker
13from pypy.rpython.lltypesystem import lltype, llmemory, rclass, rstr, rffi
14from pypy.rpython.ootypesystem import ootype
14from pypy.rpython.ootypesystem import ootype
15from import LLSupport, OOSupport
16from pypy.rpython.llinterp import LLException
16from pypy.rpython.llinterp import LLException
17from pypy.rpython.extregistry import ExtRegistryEntry
18 | Python | 897 lines
6from pypy.rlib.objectmodel import we_are_translated
7from pypy.rpython.lltypesystem import lltype, llmemory, rclass
8from pypy.rpython.ootypesystem import ootype
8from pypy.rpython.ootypesystem import ootype
9from pypy.rpython.llinterp import LLInterpreter
10from pypy.jit.metainterp import history
148        list of operations.  Here we just generate a similar CompiledLoop
149        instance.  The code here is RPython, whereas the code in llimpl
150        is not.
193            if self.is_oo and isinstance(descr, (OODescr, MethDescr)):
194                # hack hack, not rpython
195                c._obj.externalobj.operations[-1].setdescr(descr)
654    def do_runtimenew(self, classbox):
655        "NOT_RPYTHON"
656        classobj = classbox.getref(ootype.Class) | Python | 2,657 lines
1import py, sys
2from pypy.rpython.lltypesystem import lltype, rclass
3from pypy.rlib.objectmodel import we_are_translated
246    def opimpl_record_known_class(self, box, clsbox):
247        from pypy.rpython.lltypesystem import llmemory
248        if self.metainterp.heapcache.is_class_known(box):
1079    def opimpl_debug_fatalerror(self, box):
1080        from pypy.rpython.lltypesystem import rstr, lloperation
1081        msg = box.getref(lltype.Ptr(rstr.STR))
1085    def opimpl_jit_debug(self, stringbox, arg1box, arg2box, arg3box, arg4box):
1086        from pypy.rpython.lltypesystem import rstr
1087        from pypy.rpython.annlowlevel import hlstr
1106            if we_are_translated():
1107                from pypy.rpython.annlowlevel import llstr
1108                from pypy.rpython.lltypesystem import lloperation | Python | 937 lines
2from pypy.tool.sourcetools import func_with_new_name
3from pypy.rpython.lltypesystem import lltype, llmemory
4from pypy.rpython.annlowlevel import llhelper, MixLevelHelperAnnotator,\
6from pypy.annotation import model as annmodel
7from pypy.rpython.llinterp import LLException
8from pypy.rpython.test.test_llinterp import get_interpreter, clear_tcache
112def rpython_ll_meta_interp(function, args, backendopt=True, **kwds):
113    return ll_meta_interp(function, args, backendopt=backendopt,
862    def rewrite_set_param(self):
863        from pypy.rpython.lltypesystem.rstr import STR
864 | Python | 1,221 lines
19from pypy.objspace.flow.model import SpaceOperation, Variable, Constant
20from pypy.rpython.lltypesystem import lltype, llmemory, rclass, rstr, rffi
21from pypy.rpython.lltypesystem.module import ll_math
178def test_optimize_goto_if_not__exit():
179    # this case occurs in practice, e.g. with RPython code like:
180    #     return bool(p) and p.somefield > 0
1146def test_quasi_immutable():
1147    from pypy.rpython.rclass import FieldListAccessor, IR_QUASIIMMUTABLE
1148    accessor = FieldListAccessor()
1171def test_quasi_immutable_setfield():
1172    from pypy.rpython.rclass import FieldListAccessor, IR_QUASIIMMUTABLE
1173    accessor = FieldListAccessor() | Python | 377 lines
1from pypy.rpython.test.tool import BaseRtypingTest, LLRtypeMixin, OORtypeMixin
2from pypy.rlib.rarithmetic import *
195def test_intmask_small():
196    from pypy.rpython.lltypesystem import rffi
197    for tp in [rffi.r_signedchar, rffi.r_short, rffi.r_int,
325        from pypy.rlib.rarithmetic import r_singlefloat
326        from pypy.rpython.error import MissingRTypeOperation
327        def f(x):
339def test_int_real_union():
340    from pypy.rpython.lltypesystem.rffi import r_int_real
341    assert compute_restype(r_int_real, r_int_real) is r_int_real
343def test_compute_restype_incompatible():
344    from pypy.rpython.lltypesystem.rffi import r_int_real, r_short, r_ushort
345    testcases = [(r_uint, r_longlong), (r_int_real, r_uint), | Python | 110 lines
2from pypy.rpython.extregistry import ExtRegistryEntry
3from pypy.annotation import model as annmodel
3from pypy.annotation import model as annmodel
4from pypy.rpython.lltypesystem import llmemory, lltype
5from pypy.rpython.lltypesystem import rclass
5from pypy.rpython.lltypesystem import rclass
6from pypy.rpython.annlowlevel import cast_instance_to_base_ptr,\
7     cast_base_ptr_to_instance, llstr, hlstr
18            def specialize_call(self, hop):
19                from pypy.rpython.lltypesystem import lltype
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21