Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r59082:bc52921b245a
Date: 2012-11-25 13:44 +0100
http://bitbucket.org/pypy/pypy/changeset/bc52921b245a/
Log: make the key consistent with stats
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
@@ -299,10 +299,11 @@
def descr_get_key(self, space):
if space.is_none(self.w_green_key):
- return space.newtuple([space.wrap(self.type), space.wrap(
+ return space.newtuple([space.wrap(self.type[0]), space.wrap(
self.bridge_no)])
- return space.newtuple([space.wrap(self.type),
space.wrap(self.loop_no)])
-
+ return space.newtuple([space.wrap(self.type[0]),
+ space.wrap(self.loop_no)])
+
@unwrap_spec(loopno=int, asmaddr=int, asmlen=int, loop_no=int,
type=str, jd_name=str, bridge_no=int)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit