Author: Maciej Fijalkowski <[email protected]>
Branch: jitframe-on-heap
Changeset: r61726:cd6cffda17eb
Date: 2013-02-24 11:02 +0200
http://bitbucket.org/pypy/pypy/changeset/cd6cffda17eb/
Log: remove _x86_debug_checksum, save 1 word on resume data
diff --git a/rpython/jit/backend/x86/assembler.py
b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -450,7 +450,6 @@
_ll_function_addr (address of the generated func, as an int)
_ll_loop_code (debug: addr of the start of the ResOps)
_x86_fullsize (debug: full size including failure)
- _x86_debug_checksum
'''
# XXX this function is too longish and contains some code
# duplication with assemble_bridge(). Also, we should think
@@ -729,7 +728,6 @@
s = 0
for op in operations:
s += op.getopnum()
- looptoken._x86_debug_checksum = s
newoperations = []
self._append_debugging_code(newoperations, tp, number,
diff --git a/rpython/jit/backend/x86/test/test_runner.py
b/rpython/jit/backend/x86/test/test_runner.py
--- a/rpython/jit/backend/x86/test/test_runner.py
+++ b/rpython/jit/backend/x86/test/test_runner.py
@@ -565,21 +565,3 @@
l1 = ('debug_print', preambletoken.repr_of_descr() + ':1')
l2 = ('debug_print', targettoken.repr_of_descr() + ':9')
assert ('jit-backend-counts', [l0, l1, l2]) in dlog
-
- def test_debugger_checksum(self):
- loop = """
- [i0]
- label(i0, descr=targettoken)
- debug_merge_point('xyz', 0, 0)
- i1 = int_add(i0, 1)
- i2 = int_ge(i1, 10)
- guard_false(i2) []
- jump(i1, descr=targettoken)
- """
- ops = parse(loop, namespace={'targettoken': TargetToken()})
- self.cpu.assembler.set_debug(True)
- looptoken = JitCellToken()
- self.cpu.compile_loop(ops.inputargs, ops.operations, looptoken)
- self.cpu.execute_token(looptoken, 0)
- assert looptoken._x86_debug_checksum == sum([op.getopnum()
- for op in ops.operations])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit