[pypy-svn] r66208 - pypy/branch/pyjitpl5/pypy/jit/tl/tla

arigo at codespeak.net arigo at codespeak.net
Tue Jul 14 14:55:02 CEST 2009


Author: arigo
Date: Tue Jul 14 14:55:01 2009
New Revision: 66208

Modified:
   pypy/branch/pyjitpl5/pypy/jit/tl/tla/tla.py
Log:
The need for hint(promote=True) is gone now, since r66204.


Modified: pypy/branch/pyjitpl5/pypy/jit/tl/tla/tla.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/tla/tla.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/tla/tla.py	Tue Jul 14 14:55:01 2009
@@ -1,5 +1,5 @@
 
-from pypy.rlib.jit import JitDriver, hint
+from pypy.rlib.jit import JitDriver
 
 
 class W_Object:
@@ -84,12 +84,11 @@
         self.stackpos = 0
 
     def push(self, w_x):
-        stackpos = hint(self.stackpos, promote=True)
-        self.stack[stackpos] = w_x
-        self.stackpos = stackpos + 1
+        self.stack[self.stackpos] = w_x
+        self.stackpos += 1
 
     def pop(self):
-        stackpos = hint(self.stackpos, promote=True) - 1
+        stackpos = self.stackpos - 1
         assert stackpos >= 0
         self.stackpos = stackpos
         return self.stack[stackpos]



More information about the Pypy-commit mailing list