[pypy-commit] pypy better-jit-hooks: obscure translation fix and a real fix

fijal noreply at buildbot.pypy.org
Sun Jan 8 20:57:34 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: better-jit-hooks
Changeset: r51145:6014710c801a
Date: 2012-01-08 21:57 +0200
http://bitbucket.org/pypy/pypy/changeset/6014710c801a/

Log:	obscure translation fix and a real fix

diff --git a/pypy/module/pypyjit/interp_resop.py b/pypy/module/pypyjit/interp_resop.py
--- a/pypy/module/pypyjit/interp_resop.py
+++ b/pypy/module/pypyjit/interp_resop.py
@@ -17,6 +17,7 @@
     def __init__(self, space):
         self.w_compile_hook = space.w_None
         self.w_abort_hook = space.w_None
+        self.w_optimize_hook = space.w_None
 
 def wrap_greenkey(space, jitdriver, greenkey):
     if jitdriver.name == 'pypyjit':
@@ -174,6 +175,7 @@
 
     @unwrap_spec(box=WrappedBox)
     def descr_setresult(self, space, box):
+        assert isinstance(box, WrappedBox)
         jit_hooks.resop_setresult(self.op, box.llbox)
         return space.w_None
 


More information about the pypy-commit mailing list