[pypy-svn] r70322 - pypy/branch/jit-delayed-write/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Tue Dec 29 09:44:34 CET 2009


Author: arigo
Date: Tue Dec 29 09:44:32 2009
New Revision: 70322

Modified:
   pypy/branch/jit-delayed-write/pypy/jit/metainterp/optimizeopt.py
Log:
Revert now-pointless changes left behind.


Modified: pypy/branch/jit-delayed-write/pypy/jit/metainterp/optimizeopt.py
==============================================================================
--- pypy/branch/jit-delayed-write/pypy/jit/metainterp/optimizeopt.py	(original)
+++ pypy/branch/jit-delayed-write/pypy/jit/metainterp/optimizeopt.py	Tue Dec 29 09:44:32 2009
@@ -63,9 +63,6 @@
     def get_args_for_fail(self, modifier):
         pass
 
-    def get_backstore(self):
-        return (None, None)
-
     def make_virtual_info(self, modifier, fieldnums):
         raise NotImplementedError # should not be called on this level
 
@@ -175,11 +172,6 @@
     def _make_virtual(self, modifier):
         raise NotImplementedError("abstract base")
 
-    def register_virtual_fields(self, modifier, fieldboxes):
-        modifier.register_virtual_fields(self.keybox, fieldboxes)
-        parentbox, parentdescr = self.get_backstore()
-        if parentdescr is not None:
-            modifier.register_box(parentbox)
 
 def get_fielddescrlist_cache(cpu):
     if not hasattr(cpu, '_optimizeopt_fielddescrlist_cache'):
@@ -246,7 +238,7 @@
             # we have already seen the very same keybox
             lst = self._get_field_descr_list()
             fieldboxes = [self._fields[ofs].get_key_box() for ofs in lst]
-            self.register_virtual_fields(modifier, fieldboxes)
+            modifier.register_virtual_fields(self.keybox, fieldboxes)
             for ofs in lst:
                 fieldvalue = self._fields[ofs]
                 fieldvalue.get_args_for_fail(modifier)
@@ -314,7 +306,7 @@
             itemboxes = []
             for itemvalue in self._items:
                 itemboxes.append(itemvalue.get_key_box())
-            self.register_virtual_fields(modifier, itemboxes)
+            modifier.register_virtual_fields(self.keybox, itemboxes)
             for itemvalue in self._items:
                 if itemvalue is not self.constvalue:
                     itemvalue.get_args_for_fail(modifier)



More information about the Pypy-commit mailing list