[pypy-svn] r64038 - pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Mon Apr 13 23:25:58 CEST 2009


Author: fijal
Date: Mon Apr 13 23:25:56 2009
New Revision: 64038

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py
Log:
kill some dead code and also use the new box as a fail path to call


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py	Mon Apr 13 23:25:56 2009
@@ -244,12 +244,6 @@
         elif isinstance(box, BoxPtr):
             box.value = self.cast_int_to_gcref(fail_boxes[index])
 
-    def new_box_of_type(self, box, index, fail_boxes):
-        if isinstance(box, BoxInt):
-            return BoxInt(fail_boxes[index])
-        elif isinstance(box, BoxPtr):
-            return BoxPtr(self.cast_int_to_gcref(fail_boxes[index]))
-
     def _new_box(self, ptr):
         if ptr:
             return BoxPtr(lltype.nullptr(llmemory.GCREF.TO))
@@ -261,6 +255,7 @@
             box = self._new_box(ptr)
             loop.operations[0].result = box
             loop.operations[-1].args[0] = box
+            loop.operations[1].suboperations[0].args[0] = box
             return loop
         except KeyError:
             pass



More information about the Pypy-commit mailing list