Author: Maciej Fijalkowski <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit