[pypy-svn] r66006 - pypy/branch/pyjitpl5-2/pypy/interpreter
fijal at codespeak.net
fijal at codespeak.net
Sat Jun 27 01:20:49 CEST 2009
Author: fijal
Date: Sat Jun 27 01:20:46 2009
New Revision: 66006
Modified:
pypy/branch/pyjitpl5-2/pypy/interpreter/executioncontext.py
pypy/branch/pyjitpl5-2/pypy/interpreter/miscutils.py
Log:
(fijal, cfbolz)
* Rename PseudoStack to PseudoFrameStack as it relies on f_back
* Kill specialization as it's instantiated only in one place
* Add sanity check
Modified: pypy/branch/pyjitpl5-2/pypy/interpreter/executioncontext.py
==============================================================================
--- pypy/branch/pyjitpl5-2/pypy/interpreter/executioncontext.py (original)
+++ pypy/branch/pyjitpl5-2/pypy/interpreter/executioncontext.py Sat Jun 27 01:20:46 2009
@@ -1,11 +1,11 @@
import sys
-from pypy.interpreter.miscutils import PseudoStack
+from pypy.interpreter.miscutils import PseudoFrameStack
from pypy.interpreter.error import OperationError
from pypy.rlib.rarithmetic import LONG_BIT
from pypy.rlib.unroll import unrolling_iterable
def new_framestack():
- return PseudoStack()
+ return PseudoFrameStack()
def app_profile_call(space, w_callable, frame, event, w_arg):
space.call_function(w_callable,
Modified: pypy/branch/pyjitpl5-2/pypy/interpreter/miscutils.py
==============================================================================
--- pypy/branch/pyjitpl5-2/pypy/interpreter/miscutils.py (original)
+++ pypy/branch/pyjitpl5-2/pypy/interpreter/miscutils.py Sat Jun 27 01:20:46 2009
@@ -9,8 +9,7 @@
class RootStack:
pass
-class PseudoStack(RootStack):
- _annspecialcase_ = 'specialize:ctr_location'
+class PseudoFrameStack(RootStack):
def __init__(self):
self._top = None
@@ -24,6 +23,7 @@
return next
def push(self, next):
+ assert next.f_back is self._top
self._top = next
self._depth += 1
More information about the Pypy-commit
mailing list