PageRenderTime 355ms queryFilters 0ms Sphinxql 101ms GetByIds 155ms meta 0ms repositoryFilters 0ms languageFilters 0ms sourceFilters 0ms

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



Repository | Python | 212 lines
3from pypy.objspace.std.util import negate
4from rpython.rlib.objectmodel import compute_hash, specialize
5from rpython.rlib.rarithmetic import intmask
5from rpython.rlib.rarithmetic import intmask
6from rpython.rlib.unroll import unrolling_iterable
7from rpython.tool.sourcetools import func_with_new_name
7from rpython.tool.sourcetools import func_with_new_name
8from rpython.rlib.longlong2float import float2longlong
9 git:// | Python | 1,251 lines
33# File offsets are all 'r_longlong', but a single read or write cannot
34# transfer more data that fits in an RPython 'int' (because that would not
35# fit in a single string anyway).  This module needs to be careful about
58    """
59    Catching NotImplementedError is not RPython, so we use this custom class
60    instead of it
179    from pypy.translator.tool.cbuild import ExternalCompilationInfo
180    from pypy.rpython.lltypesystem import rffi
329# next class is not RPython
335    def __init__(self, fd, mmapaccess):
336        """NOT_RPYTHON"""
337        self.fd = fd git:// | Python | 111 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
20 git:// | Python | 907 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)
664    def do_runtimenew(self, classbox):
665        "NOT_RPYTHON"
666        classobj = classbox.getref(ootype.Class) git:// | Python | 1,950 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 git:// | Python | 2,581 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
350        # similar to, first part
351        from pypy.rpython.memory.gctransform import asmgcroot
352        new = rffi.cast(asmgcroot.ASM_FRAMEDATA_HEAD_PTR, css)
370        # similar to, second part
371        from pypy.rpython.memory.gctransform import asmgcroot
372        old = rffi.cast(asmgcroot.ASM_FRAMEDATA_HEAD_PTR, css)
1673            # it would be at offset 2 or 4 on a big-endian machine.
1674            from pypy.rpython.memory.gctypelayout import GCData
1675            sizeof_ti = rffi.sizeof(GCData.TYPE_INFO) git:// | Python | 416 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
223        from pypy.rpython.tool.rffi_platform import configure_boehm
224        eci = eci.merge(configure_boehm())
374    def OP_GC_GETTYPEPTR_GROUP(self, funcgen, op):
375        # expands to a number of steps, as per rpython/lltypesystem/,
376        # all implemented by a single call to a C macro. git:// | Python | 414 lines
2from pypy.rpython.lltypesystem.lltype import (
3    Primitive, Ptr, typeOf, RuntimeTypeInfo, Struct, Array, FuncType, PyObject,
4    Void, ContainerType, OpaqueType, FixedSizeArray, _uninitialized, Typedef)
5from pypy.rpython.lltypesystem import lltype, rffi
6from pypy.rpython.lltypesystem.llmemory import WeakRef, _WeakRefType, GCREF
6from pypy.rpython.lltypesystem.llmemory import WeakRef, _WeakRefType, GCREF
7from pypy.rpython.lltypesystem.rffi import CConstant
8from pypy.rpython.lltypesystem import llgroup
extending.rst git:// | Unknown | 171 lines
24* Write them in RPython as mixedmodule_, using *rffi* as bindings.
98* a mixed module needs to be written in RPython, which is far more
99  complicated than Python (XXX link)
105* although rpython is a garbage-collected language, the border between
106  C and RPython needs to be managed by hand (each object that goes into the
141The cppyy module is written in RPython, which makes it possible to keep the
142code execution visible to the JIT all the way to the actual point of call into git:// | Python | 296 lines
6from pypy.translator.c.test.test_genc import compile
7from pypy.rpython.module import ll_os #has side effect of registering functions
9from pypy.rpython import extregistry
10import errno
28    """
29    posix.times should compile as an RPython function and should return a
30    five-tuple giving float-representations (seconds, effectively) of the four
193def test_os_write():
194    #Same as test in rpython/test/test_rbuiltin
195    fname = str(udir.join('os_test.txt'))
281        import py
282        from pypy.rpython.test.test_llinterp import interpret
283 | Python | 434 lines
16from pypy.tool.stdlib_opcode import opcodedesc, HAVE_ARGUMENT
17from rpython.rlib.rarithmetic import intmask, r_longlong
18from rpython.rlib.objectmodel import compute_hash
18from rpython.rlib.objectmodel import compute_hash
19from rpython.rlib import jit
20from rpython.rlib.debug import debug_start, debug_stop, debug_print | Python | 676 lines
9from rpython.rlib.unroll import unrolling_iterable
10from pypy.interpreter.baseobjspace import W_Root
13from pypy.interpreter.argument import Arguments
14from rpython.rlib import jit
16from rpython.rlib.rarithmetic import LONG_BIT
17from rpython.rlib.rbigint import rbigint | Python | 1,173 lines
25from pypy.interpreter.function import ClassMethod, FunctionWithFixedCode
26from rpython.rlib import rstackovf
27from rpython.rlib.objectmodel import we_are_translated
27from rpython.rlib.objectmodel import we_are_translated
28from rpython.rlib.rarithmetic import r_longlong, r_int, r_ulonglong, r_uint
29from rpython.tool.sourcetools import func_with_new_name, compile2
33class SignatureBuilder(object):
35    def __init__(self, func=None, argnames=None, varargname=None,
65    def unwrap(self, space, w_value):
66        """NOT_RPYTHON"""
67        raise NotImplementedError
70class UnwrapSpecRecipe(object):
72 | Python | 1,030 lines
3from rpython.rlib import jit, objectmodel, debug, rerased
4from rpython.rlib.rarithmetic import intmask, r_uint
589    def _mapdict_init_empty(self, map):
590        from rpython.rlib.debug import make_sure_not_resized
591 = map
627def _make_storage_mixin_size_n(n=SUBCLASSES_NUM_FIELDS):
628    from rpython.rlib import unroll
629    rangen = unroll.unrolling_iterable(range(n)) | Python | 1,560 lines
3from rpython.rlib import jit, rerased, objectmodel
4from rpython.rlib.debug import mark_dict_non_null
4from rpython.rlib.debug import mark_dict_non_null
5from rpython.rlib.objectmodel import newlist_hint, r_dict, specialize
6from rpython.tool.sourcetools import func_renamer, func_with_new_name | Python | 1,160 lines
6from pypy.interpreter.error import OperationError, oefmt
7from rpython.rlib import rstring, runicode, rlocale, rfloat, jit
8from rpython.rlib.objectmodel import specialize
8from rpython.rlib.objectmodel import specialize
9from rpython.rlib.rfloat import copysign, formatd
10from rpython.rlib.rarithmetic import r_uint, intmask | Python | 727 lines
5from rpython.rlib.objectmodel import specialize
6from rpython.rlib.rbigint import rbigint
6from rpython.rlib.rbigint import rbigint
7from rpython.rlib.rstring import ParseStringError
8from rpython.tool.sourcetools import func_renamer, func_with_new_name | Python | 1,062 lines
746    def test_int_or_float_special_nan(self):
747        from rpython.rlib import longlong2float, rarithmetic
748        space =
771    def test_int_or_float_base(self):
772        from rpython.rlib.rfloat import INFINITY, NAN
773        space =
817    def test_int_or_float_from_integer_special_nan(self):
818        from rpython.rlib import longlong2float, rarithmetic
819        space =
855    def test_int_or_float_from_float_special_nan(self):
856        from rpython.rlib import longlong2float, rarithmetic
857        space = | Python | 134 lines
1from rpython.translator.tool.cbuild import ExternalCompilationInfo
2from rpython.rtyper.tool import rffi_platform
2from rpython.rtyper.tool import rffi_platform
3from rpython.rtyper.lltypesystem import rffi, lltype
4from pypy.interpreter.error import OperationError, oefmt
5from pypy.interpreter.gateway import unwrap_spec
6from rpython.rlib.rarithmetic import r_uint, widen
7 | Python | 596 lines
1from pypy.rpython.tool import rffi_platform as platform
2from pypy.rpython.lltypesystem import rffi
4from pypy.interpreter.gateway import unwrap_spec
5from pypy.rpython.lltypesystem import lltype
6from pypy.rlib.rarithmetic import ovfcheck_float_to_int, intmask
466    # rpython does not support that a variable has two incompatible builtins
467    # as value so we have to duplicate the code. NOT GOOD! see localtime() too
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21