[pypy-svn] r65969 - pypy/branch/pyjitpl5/pypy/jit/tl
fijal at codespeak.net
fijal at codespeak.net
Thu Jun 25 21:42:21 CEST 2009
Author: fijal
Date: Thu Jun 25 21:42:18 2009
New Revision: 65969
Modified:
pypy/branch/pyjitpl5/pypy/jit/tl/tl.py
pypy/branch/pyjitpl5/pypy/jit/tl/tlc.py
Log:
Fix tests. Support virtualizables in tl correct way, disable
them in tlc (they were not working anyway)
Modified: pypy/branch/pyjitpl5/pypy/jit/tl/tl.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/tl.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/tl.py Thu Jun 25 21:42:18 2009
@@ -11,9 +11,7 @@
return t
class Stack(object):
- _virtualizable2_ = True
-
- _always_virtual_ = ['stack']
+ _virtualizable2_ = ['stackpos', 'stack[*]']
def __init__(self, size):
self.stack = [0] * size
Modified: pypy/branch/pyjitpl5/pypy/jit/tl/tlc.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/tlc.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/tlc.py Thu Jun 25 21:42:18 2009
@@ -217,7 +217,6 @@
return t
class Frame(object):
- _virtualizable2_ = True
def __init__(self, args, pc):
assert isinstance(pc, int)
@@ -228,8 +227,8 @@
def make_interp(supports_call, jitted=True):
myjitdriver = JitDriver(greens = ['code', 'pc'],
- reds = ['frame', 'pool'],
- virtualizables = ['frame'])
+ reds = ['frame', 'pool'])
+
def interp(code='', pc=0, inputarg=0, pool=None):
if not isinstance(code,str):
raise TypeError("code '%s' should be a string" % str(code))
More information about the Pypy-commit
mailing list