[pypy-svn] r74579 - pypy/branch/blackhole-improvement/pypy/jit/backend/llgraph
arigo at codespeak.net
arigo at codespeak.net
Wed May 19 16:35:53 CEST 2010
Author: arigo
Date: Wed May 19 16:35:52 2010
New Revision: 74579
Modified:
pypy/branch/blackhole-improvement/pypy/jit/backend/llgraph/llimpl.py
Log:
Fix.
Modified: pypy/branch/blackhole-improvement/pypy/jit/backend/llgraph/llimpl.py
==============================================================================
--- pypy/branch/blackhole-improvement/pypy/jit/backend/llgraph/llimpl.py (original)
+++ pypy/branch/blackhole-improvement/pypy/jit/backend/llgraph/llimpl.py Wed May 19 16:35:52 2010
@@ -554,7 +554,11 @@
except AttributeError:
try:
impl = globals()['do_' + opname.lower()] # do_arraylen_gc etc.
- op = staticmethod(impl)
+ def op(self, descr, *args):
+ if descr is None:
+ return impl(*args)
+ else:
+ return impl(descr, *args)
except KeyError:
op = cls._make_impl_from_blackhole_interp(opname)
cls.OPHANDLERS[opnum] = op
@@ -1182,6 +1186,9 @@
# ____________________________________________________________
+def do_same_as(x):
+ return x
+
def do_arraylen_gc(arraydescr, array):
array = array._obj.container
return array.getlength()
More information about the Pypy-commit
mailing list