Author: Maciej Fijalkowski <[email protected]>
Branch: opcode-tracing-experiment
Changeset: r56391:72713c5edb3c
Date: 2012-07-22 17:26 +0200
http://bitbucket.org/pypy/pypy/changeset/72713c5edb3c/
Log: another fix
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
@@ -26,10 +26,10 @@
JUMP_ABSOLUTE = opmap['JUMP_ABSOLUTE']
-def get_printable_location(next_instr, is_being_profiled, bytecode):
+def get_printable_location(is_profiled, co):
from pypy.tool.stdlib_opcode import opcode_method_names
- name = opcode_method_names[ord(bytecode.co_code[next_instr])]
- return '%s #%d %s' % (bytecode.get_repr(), next_instr, name)
+ name = opcode_method_names[ord(co)]
+ return name
def get_jitcell_at(next_instr, is_being_profiled, bytecode):
return bytecode.jit_cells.get((next_instr, is_being_profiled), None)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit