[pypy-commit] pypy default: kill the key - it does not do what we want it to do

fijal noreply at buildbot.pypy.org
Sun Nov 25 19:38:05 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r59086:ae736e5b56ee
Date: 2012-11-25 19:37 +0100
http://bitbucket.org/pypy/pypy/changeset/ae736e5b56ee/

Log:	kill the key - it does not do what we want it to do

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
@@ -297,13 +297,6 @@
             return space.wrap(self.bridge_no)
         raise OperationError(space.w_TypeError, space.wrap("not a bridge"))
 
-    def descr_get_key(self, space):
-        if space.is_none(self.w_green_key):
-            return space.newtuple([space.wrap(self.type[0]), space.wrap(
-                self.bridge_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)
@@ -339,8 +332,6 @@
                                doc="bridge number (if a bridge)"),
     type = interp_attrproperty('type', cls=W_JitLoopInfo,
                                doc="Loop type"),
-    key = GetSetProperty(W_JitLoopInfo.descr_get_key,
-                         doc="bridge key in counters"),
     __repr__ = interp2app(W_JitLoopInfo.descr_repr),
 )
 W_JitLoopInfo.acceptable_as_base_class = False


More information about the pypy-commit mailing list