[pypy-commit] pypy jitcounter-on-function: fix the build (maybe?)
fijal
noreply at buildbot.pypy.org
Tue Jun 7 19:56:43 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: jitcounter-on-function
Changeset: r44818:dbbfd216cbf1
Date: 2011-06-07 19:57 +0200
http://bitbucket.org/pypy/pypy/changeset/dbbfd216cbf1/
Log: fix the build (maybe?)
diff --git a/pypy/module/pypyjit/interp_jit.py b/pypy/module/pypyjit/interp_jit.py
--- a/pypy/module/pypyjit/interp_jit.py
+++ b/pypy/module/pypyjit/interp_jit.py
@@ -16,6 +16,7 @@
from pypy.interpreter.baseobjspace import ObjSpace, W_Root
from opcode import opmap
from pypy.rlib.objectmodel import we_are_translated
+from pypy.rlib.nonconst import NonConstant
PyFrame._virtualizable2_ = ['last_instr', 'pycode',
'valuestackdepth', 'valuestack_w[*]',
@@ -199,9 +200,10 @@
return space.call_args(w_callable, __args__)
class Cache(object):
+ in_recursion = False
+
def __init__(self, space):
self.w_compile_hook = space.w_None
- self.in_recursion = False
@unwrap_spec(ObjSpace, W_Root)
def set_compile_hook(space, w_hook):
@@ -226,4 +228,5 @@
"""
cache = space.fromcache(Cache)
cache.w_compile_hook = w_hook
+ cache.in_recursion = NonConstant(False)
return space.w_None
More information about the pypy-commit
mailing list