Author: Maciej Fijalkowski <[email protected]>
Branch: jit-threshold-hooks
Changeset: r66327:fe12d4657961
Date: 2013-08-26 17:58 +0100
http://bitbucket.org/pypy/pypy/changeset/fe12d4657961/

Log:    another go

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
@@ -175,9 +175,9 @@
     For testing. Set the threshold for this code object at position pos
     at value given.
     """
-    ref = w_code.jit_cells[pos << 1]
-    if not ref:
+    jitcell = w_code.jit_cells[pos << 1]
+    if not jitcell:
         ref = jit_hooks.new_jitcell()
-        w_code.jit_cells[pos << 1] = cast_base_ptr_to_instance(BaseJitCell, 
ref)
-    jitcell = cast_base_ptr_to_instance(BaseJitCell, ref)
+        jitcell = cast_base_ptr_to_instance(BaseJitCell, ref)
+        w_code.jit_cells[pos << 1] = jitcell
     jitcell.counter = value
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to