Author: fijal
Branch:
Changeset: r83370:55bbf61581a3
Date: 2016-03-25 22:19 +0200
http://bitbucket.org/pypy/pypy/changeset/55bbf61581a3/
Log: fix
diff --git a/rpython/jit/metainterp/opencoder.py
b/rpython/jit/metainterp/opencoder.py
--- a/rpython/jit/metainterp/opencoder.py
+++ b/rpython/jit/metainterp/opencoder.py
@@ -34,9 +34,12 @@
check_range = False
# we can move SMALL ints here, if necessary
+def get_model(self):
+ return _get_model(self.metainterp_sd)
+
@specialize.memo()
-def get_model(self):
- return getattr(self.metainterp_sd, 'opencoder_model', Model)
+def _get_model(metainterp_sd):
+ return getattr(metainterp_sd, 'opencoder_model', Model)
SMALL_INT_STOP = (2 ** (15 - TAGSHIFT)) - 1
SMALL_INT_START = -SMALL_INT_STOP # we might want to distribute them uneven
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit