PageRenderTime 436ms queryFilters 48ms Sphinxql 108ms GetByIds 195ms meta 0ms repositoryFilters 0ms languageFilters 19ms sourceFilters 1ms

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

Source

Language

Repository

calling_convention_test.py https://bitbucket.org/pypy/pypy/ | Python | 355 lines
12from pypy.jit.tool.oparser import parse
13from pypy.rpython.lltypesystem import lltype, llmemory, rstr, rffi, rclass
14from pypy.rpython.ootypesystem import ootype
14from pypy.rpython.ootypesystem import ootype
15from pypy.rpython.annlowlevel import llhelper
16from pypy.rpython.llinterp import LLException
test_gc.py https://bitbucket.org/pypy/pypy/ | Python | 463 lines
1import random
2from pypy.rpython.lltypesystem import lltype, llmemory, rffi, rstr
3from pypy.rpython.lltypesystem.lloperation import llop
3from pypy.rpython.lltypesystem.lloperation import llop
4from pypy.rpython.annlowlevel import llhelper
5from pypy.jit.backend.llsupport.descr import *
11from pypy.jit.tool.oparser import parse
12from pypy.rpython.lltypesystem.rclass import OBJECT, OBJECT_VTABLE
13from pypy.jit.metainterp.optimizeopt.util import equaloplists
resume.py https://bitbucket.org/pypy/pypy/ | Python | 1,318 lines
8from pypy.jit.codewriter.effectinfo import EffectInfo
9from pypy.rpython.lltypesystem import lltype, llmemory, rffi, rstr
10from pypy.rpython import annlowlevel
71#
72# The following is equivalent to the RPython-level declaration:
73#
111def tagged_eq(x, y):
112    # please rpython :(
113    return rarithmetic.widen(x) == rarithmetic.widen(y)
496    def debug_prints(self):
497        debug_print("\tvirtualinfo", self.known_class.repr_rpython())
498        AbstractVirtualStructInfo.debug_prints(self)
512    def debug_prints(self):
513        debug_print("\tvstructinfo", self.typedescr.repr_rpython())
514        AbstractVirtualStructInfo.debug_prints(self)
test_util.py https://bitbucket.org/pypy/pypy/ | Python | 499 lines
2
3from pypy.rpython.lltypesystem import lltype, llmemory, rclass, rstr
4from pypy.rpython.ootypesystem import ootype
4from pypy.rpython.ootypesystem import ootype
5from pypy.rpython.lltypesystem.rclass import OBJECT, OBJECT_VTABLE
6from pypy.rpython.rclass import FieldListAccessor, IR_QUASIIMMUTABLE
rmmap.py https://bitbucket.org/pypy/pypy/ | Python | 834 lines
1
2from pypy.rpython.tool import rffi_platform
3from pypy.rpython.lltypesystem import rffi, lltype, llmemory
298            if self.fd != -1:
299                # XXX this is buggy - raising in an RPython del is not a good
300                #     idea, we should swallow the exception or ignore the
584        self.check_valid()
585        # simplified version, for rpython
586        if index < 0:
rmmap.py git://github.com/pypy/pypy.git | Python | 864 lines
1
2from pypy.rpython.tool import rffi_platform
3from pypy.rpython.lltypesystem import rffi, lltype, llmemory
299            if self.fd != -1:
300                # XXX this is buggy - raising in an RPython del is not a good
301                #     idea, we should swallow the exception or ignore the
585        self.check_valid()
586        # simplified version, for rpython
587        if index < 0:
resume.py git://github.com/pypy/pypy.git | Python | 1,317 lines
8from pypy.jit.codewriter.effectinfo import EffectInfo
9from pypy.rpython.lltypesystem import lltype, llmemory, rffi, rstr
10from pypy.rpython import annlowlevel
71#
72# The following is equivalent to the RPython-level declaration:
73#
111def tagged_eq(x, y):
112    # please rpython :(
113    return rarithmetic.widen(x) == rarithmetic.widen(y)
495    def debug_prints(self):
496        debug_print("\tvirtualinfo", self.known_class.repr_rpython())
497        AbstractVirtualStructInfo.debug_prints(self)
511    def debug_prints(self):
512        debug_print("\tvstructinfo", self.typedescr.repr_rpython())
513        AbstractVirtualStructInfo.debug_prints(self)
runner_test.py git://github.com/pypy/pypy.git | Python | 3,300 lines
13from pypy.jit.tool.oparser import parse
14from pypy.rpython.lltypesystem import lltype, llmemory, rstr, rffi, rclass
15from pypy.rpython.ootypesystem import ootype
15from pypy.rpython.ootypesystem import ootype
16from pypy.rpython.annlowlevel import llhelper
17from pypy.rpython.llinterp import LLException
2108        from pypy.rlib.libffi import CDLL, types, ArgChain, FUNCFLAG_CDECL
2109        from pypy.rpython.lltypesystem.ll2ctypes import libc_name
2110        libc = CDLL(libc_name)
2139        from pypy.rlib.libffi import CDLL, types, ArgChain, clibffi
2140        from pypy.rpython.lltypesystem.ll2ctypes import libc_name
2141        libc = CDLL(libc_name)
interp_time.py git://github.com/pypy/pypy.git | 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
465
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
unicodehelper.py https://bitbucket.org/pypy/pypy/ | Python | 68 lines
1from pypy.interpreter.error import OperationError
2from rpython.rlib.objectmodel import specialize
3from rpython.rlib import runicode
36
37# These functions take and return unwrapped rpython strings and unicodes
38def decode_unicode_escape(space, string):
argument.py https://bitbucket.org/pypy/pypy/ | Python | 529 lines
3"""
4from rpython.rlib.debug import make_sure_not_resized
5from rpython.rlib import jit
45    def __repr__(self):
46        """ NOT_RPYTHON """
47        name = self.__class__.__name__
199            args_left = co_argcount - upfront
200            if args_left < 0:  # check required by rpython
201                starargs_w = [w_firstarg]
generator.py https://bitbucket.org/pypy/pypy/ | Python | 264 lines
4from pypy.interpreter.pycode import CO_YIELD_INSIDE_TRY
5from rpython.rlib import jit
6
48    def descr__setstate__(self, space, w_args):
49        from rpython.rlib.objectmodel import instantiate
50        args_w = space.unpackiterable(w_args)
174
175    # Results can be either an RPython list of W_Root, or it can be an
176    # app-level W_ListObject, which also has an append() method, that's why we
descroperation.py https://bitbucket.org/pypy/pypy/ | Python | 875 lines
6from pypy.interpreter.typedef import default_identity_hash
7from rpython.tool.sourcetools import compile2, func_with_new_name
8from pypy.module.__builtin__.interp_classobj import W_InstanceObject
8from pypy.module.__builtin__.interp_classobj import W_InstanceObject
9from rpython.rlib.objectmodel import specialize
10from rpython.rlib import jit
identitydict.py https://bitbucket.org/pypy/pypy/ | Python | 83 lines
3
4from rpython.rlib import rerased
5from rpython.rlib.debug import mark_dict_non_null
15    default unless you override __hash__, __eq__ or __cmp__).  The storage is
16    just a normal RPython dict, which has already the correct by-identity
17    semantics.
smalllongobject.py https://bitbucket.org/pypy/pypy/ | Python | 414 lines
7
8from rpython.rlib.rarithmetic import LONGLONG_BIT, intmask, r_longlong, r_uint
9from rpython.rlib.rbigint import rbigint
9from rpython.rlib.rbigint import rbigint
10from rpython.tool.sourcetools import func_renamer, func_with_new_name
11
tupleobject.py https://bitbucket.org/pypy/pypy/ | Python | 356 lines
12from pypy.objspace.std.util import negate, IDTAG_SPECIAL, IDTAG_SHIFT
13from rpython.rlib import jit
14from rpython.rlib.debug import make_sure_not_resized
14from rpython.rlib.debug import make_sure_not_resized
15from rpython.rlib.rarithmetic import intmask
16
interp_bytesio.py https://bitbucket.org/pypy/pypy/ | Python | 175 lines
4from pypy.interpreter.gateway import interp2app, unwrap_spec
5from rpython.rlib.rStringIO import RStringIO
6from rpython.rlib.rarithmetic import r_longlong
6from rpython.rlib.rarithmetic import r_longlong
7from rpython.rlib.objectmodel import import_from_mixin
8from pypy.module._io.interp_bufferedio import W_BufferedIOBase
interp_textio.py https://bitbucket.org/pypy/pypy/ | Python | 1,063 lines
10from pypy.module._io.interp_iobase import W_IOBase, convert_size, trap_eintr
11from rpython.rlib.rarithmetic import intmask, r_uint, r_ulonglong
12from rpython.rlib.rbigint import rbigint
12from rpython.rlib.rbigint import rbigint
13from rpython.rlib.rstring import UnicodeBuilder
14
interp_fileio.py https://bitbucket.org/pypy/pypy/ | Python | 456 lines
4    OperationError, oefmt, wrap_oserror, wrap_oserror2)
5from rpython.rlib.rarithmetic import r_longlong
6from rpython.rlib.rstring import StringBuilder
11def interp_member_w(name, cls, doc=None):
12    "NOT_RPYTHON: initialization-time only"
13    def fget(space, obj):
411        def _truncate(self, size):
412            from rpython.rlib.streamio import ftruncate_win32
413            ftruncate_win32(self.fd, size)
threadlocals.py https://bitbucket.org/pypy/pypy/ | Python | 195 lines
1import weakref
2from rpython.rlib import rthread, rshrinklist
3from rpython.rlib.objectmodel import we_are_translated
3from rpython.rlib.objectmodel import we_are_translated
4from rpython.rlib.rarithmetic import r_ulonglong
5from pypy.module.thread.error import wrap_thread_error
18    def __init__(self, space):
19        "NOT_RPYTHON"
20        #
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21