Author: Maciej Fijalkowski <[email protected]>
Branch: jit-threshold-hooks
Changeset: r66320:2f2a03b5daee
Date: 2013-08-26 17:05 +0100
http://bitbucket.org/pypy/pypy/changeset/2f2a03b5daee/
Log: remove the ckecksum for now - we might not need it
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
@@ -293,13 +293,6 @@
bridge_no = 0
asmaddr = 0
asmlen = 0
- checksum = 0
-
- def _compute_checksum(self, ops):
- s = 5381
- for op in ops:
- s = intmask(((s << 5) + s) + op.getopnum())
- return s
def __init__(self, space, debug_info, is_bridge=False):
logops = debug_info.logger._make_log_operations()
@@ -309,8 +302,6 @@
ofs = {}
self.w_ops = space.newlist(
wrap_oplist(space, logops, debug_info.operations, ofs))
- self.checksum = self._compute_checksum(debug_info.operations)
-
self.jd_name = debug_info.get_jitdriver().name
self.type = debug_info.type
if is_bridge:
@@ -377,7 +368,6 @@
doc="bridge number (if a bridge)"),
type = interp_attrproperty('type', cls=W_JitLoopInfo,
doc="Loop type"),
- checksum = interp_attrproperty('checksum', cls=W_JitLoopInfo),
__repr__ = interp2app(W_JitLoopInfo.descr_repr),
)
W_JitLoopInfo.acceptable_as_base_class = False
diff --git a/pypy/module/pypyjit/test/test_jit_hook.py
b/pypy/module/pypyjit/test/test_jit_hook.py
--- a/pypy/module/pypyjit/test/test_jit_hook.py
+++ b/pypy/module/pypyjit/test/test_jit_hook.py
@@ -262,7 +262,6 @@
assert descr.threshold == 0
descr.threshold = 1
assert descr.threshold == 1
- assert all[0].checksum == 6382428994
def test_get_stats_snapshot(self):
skip("a bit no idea how to test it")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit