[pypy-svn] r62562 - pypy/branch/pyjitpl5/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Thu Mar 5 10:18:37 CET 2009


Author: arigo
Date: Thu Mar  5 10:18:36 2009
New Revision: 62562

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py
Log:
Remove or comment out old code.


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py	Thu Mar  5 10:18:36 2009
@@ -530,15 +530,15 @@
             self.generate_guard(pc, rop.GUARD_CLASS, box, [clsbox])
         return clsbox
 
-    @arguments("orgpc", "box", "builtin")
-    def opimpl_guard_builtin(self, pc, box, builtin):
-        self.generate_guard(pc, "guard_builtin", box, [builtin])
-
-    @arguments("orgpc", "box", "builtin")
-    def opimpl_guard_len(self, pc, box, builtin):
-        intbox = self.metainterp.cpu.execute_operation(
-            'len', [builtin.len_func, box], 'int')
-        self.generate_guard(pc, "guard_len", box, [intbox])
+##    @arguments("orgpc", "box", "builtin")
+##    def opimpl_guard_builtin(self, pc, box, builtin):
+##        self.generate_guard(pc, "guard_builtin", box, [builtin])
+
+##    @arguments("orgpc", "box", "builtin")
+##    def opimpl_guard_len(self, pc, box, builtin):
+##        intbox = self.metainterp.cpu.execute_operation(
+##            'len', [builtin.len_func, box], 'int')
+##        self.generate_guard(pc, "guard_len", box, [intbox])
 
     @arguments("orgpc", "box", "virtualizabledesc", "constbox")
     def opimpl_guard_nonvirtualized(self, pc, box, vdesc, guard_field):
@@ -680,10 +680,6 @@
         cls = llmemory.cast_ptr_to_adr(obj.typeptr)
         return ConstInt(self.metainterp.cpu.cast_adr_to_int(cls))
 
-    def follow_jump(self):
-        self.pc -= 3
-        self.pc = self.load_3byte()
-
     def execute(self, opnum, argboxes, result_type, pure=False):
         resbox = self.metainterp.history.execute_and_record(opnum, argboxes,
                                                             result_type,



More information about the Pypy-commit mailing list