[pypy-svn] r49852 - pypy/dist/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Sun Dec 16 18:10:38 CET 2007


Author: arigo
Date: Sun Dec 16 18:10:38 2007
New Revision: 49852

Modified:
   pypy/dist/pypy/interpreter/executioncontext.py
   pypy/dist/pypy/interpreter/pyopcode.py
Log:
* It's not "always_inline", it's "_always_inline_".
* Should specify it on LOAD_FAST too.


Modified: pypy/dist/pypy/interpreter/executioncontext.py
==============================================================================
--- pypy/dist/pypy/interpreter/executioncontext.py	(original)
+++ pypy/dist/pypy/interpreter/executioncontext.py	Sun Dec 16 18:10:38 2007
@@ -105,7 +105,7 @@
         self.ticker = ticker
         if ticker < 0 or frame.w_f_trace is not None:
             self._do_bytecode_trace(frame)
-    bytecode_trace.always_inline = True
+    bytecode_trace._always_inline_ = True
 
     def _do_bytecode_trace(self, frame):
         if self.ticker < 0:

Modified: pypy/dist/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyopcode.py	(original)
+++ pypy/dist/pypy/interpreter/pyopcode.py	Sun Dec 16 18:10:38 2007
@@ -285,6 +285,7 @@
         if w_value is None:
             f._load_fast_failed(varindex)
         f.pushvalue(w_value)
+    LOAD_FAST._always_inline_ = True
 
     def _load_fast_failed(f, varindex):
         varname = f.getlocalvarname(varindex)
@@ -645,7 +646,7 @@
             if w_value is None:
                 f._load_global_failed(w_varname)
         return w_value
-    _load_global.always_inline = True
+    _load_global._always_inline_ = True
 
     def _load_global_failed(f, w_varname):
         varname = f.space.str_w(w_varname)
@@ -656,7 +657,7 @@
 
     def LOAD_GLOBAL(f, nameindex, *ignored):
         f.pushvalue(f._load_global(f.getname_w(nameindex)))
-    LOAD_GLOBAL.always_inline = True
+    LOAD_GLOBAL._always_inline_ = True
 
     def DELETE_FAST(f, varindex, *ignored):
         if f.fastlocals_w[varindex] is None:
@@ -688,7 +689,7 @@
         w_obj = f.popvalue()
         w_value = f.space.getattr(w_obj, w_attributename)
         f.pushvalue(w_value)
-    LOAD_ATTR.always_inline = True
+    LOAD_ATTR._always_inline_ = True
 
     def cmp_lt(f, w_1, w_2):  return f.space.lt(w_1, w_2)
     def cmp_le(f, w_1, w_2):  return f.space.le(w_1, w_2)



More information about the Pypy-commit mailing list