[pypy-svn] r70504 - pypy/branch/loop-invariant-decorator/pypy/interpreter

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Jan 11 15:20:44 CET 2010


Author: cfbolz
Date: Mon Jan 11 15:20:44 2010
New Revision: 70504

Modified:
   pypy/branch/loop-invariant-decorator/pypy/interpreter/baseobjspace.py
Log:
Declare getexecutioncontext to be loop-invariant.


Modified: pypy/branch/loop-invariant-decorator/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/branch/loop-invariant-decorator/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/branch/loop-invariant-decorator/pypy/interpreter/baseobjspace.py	Mon Jan 11 15:20:44 2010
@@ -531,6 +531,7 @@
     def leave_cache_building_mode(self, val):
         "hook for the flow object space"
 
+    @jit.loop_invariant
     def getexecutioncontext(self):
         "Return what we consider to be the active execution context."
         # Important: the annotator must not see a prebuilt ExecutionContext:



More information about the Pypy-commit mailing list