[pypy-commit] pypy ffi-backend: Starting to support the _cffi_backend module directly in the JIT.
arigo
noreply at buildbot.pypy.org
Sun Jul 29 18:36:05 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: ffi-backend
Changeset: r56504:0bc76a4bf454
Date: 2012-07-29 16:30 +0000
http://bitbucket.org/pypy/pypy/changeset/0bc76a4bf454/
Log: Starting to support the _cffi_backend module directly in the JIT.
diff --git a/pypy/jit/codewriter/jtransform.py b/pypy/jit/codewriter/jtransform.py
--- a/pypy/jit/codewriter/jtransform.py
+++ b/pypy/jit/codewriter/jtransform.py
@@ -228,6 +228,9 @@
return [None, # hack, do the right renaming from op.args[0] to op.result
SpaceOperation("record_known_class", [op.args[0], const_vtable], None)]
+ def rewrite_op_raw_malloc_usage(self, op):
+ pass
+
def rewrite_op_jit_record_known_class(self, op):
return SpaceOperation("record_known_class", [op.args[0], op.args[1]], None)
@@ -1258,6 +1261,8 @@
('uint_or', 'int_or'),
('uint_lshift', 'int_lshift'),
('uint_xor', 'int_xor'),
+
+ ('adr_add', 'int_add'),
]:
assert _old not in locals()
exec py.code.Source('''
diff --git a/pypy/module/pypyjit/policy.py b/pypy/module/pypyjit/policy.py
--- a/pypy/module/pypyjit/policy.py
+++ b/pypy/module/pypyjit/policy.py
@@ -105,7 +105,8 @@
'imp', 'sys', 'array', '_ffi', 'itertools', 'operator',
'posix', '_socket', '_sre', '_lsprof', '_weakref',
'__pypy__', 'cStringIO', '_collections', 'struct',
- 'mmap', 'marshal', '_codecs', 'rctime', 'cppyy']:
+ 'mmap', 'marshal', '_codecs', 'rctime', 'cppyy',
+ '_cffi_backend']:
if modname == 'pypyjit' and 'interp_resop' in rest:
return False
return True
More information about the pypy-commit
mailing list