[pypy-svn] r65031 - in pypy/branch/pyjitpl5/pypy/jit/backend/cli: . test

antocuni at codespeak.net antocuni at codespeak.net
Mon May 4 18:48:53 CEST 2009


Author: antocuni
Date: Mon May  4 18:48:52 2009
New Revision: 65031

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/cli/method.py
   pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_runner.py
Log:
add support for PushArg.  test_overflow_operations finally passes :-)



Modified: pypy/branch/pyjitpl5/pypy/jit/backend/cli/method.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/cli/method.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/cli/method.py	Mon May  4 18:48:52 2009
@@ -192,6 +192,9 @@
         for box in op.args:
             box.load(self)
 
+    def push_arg(self, op, n):
+        op.args[n].load(self)
+
     def store_result(self, op):
         op.result.store(self)
 
@@ -291,7 +294,7 @@
             func = getattr(Method, methname).im_func
         else:
             instrlist = opcodes.opcodes[key]
-            func = render_op(methname, instrlist, False)
+            func = render_op(methname, instrlist)
         operations[value] = func
     return operations
 
@@ -307,6 +310,8 @@
             lines.append('self.push_all_args(op)')
         elif instr == opcodes.StoreResult:
             lines.append('self.store_result(op)')
+        elif isinstance(instr, opcodes.PushArg):
+            lines.append('self.push_arg(op, %d)' % instr.n)
         else:
             if not isinstance(instr, str):
                 print 'WARNING: unknown instruction %s' % instr

Modified: pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_runner.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_runner.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_runner.py	Mon May  4 18:48:52 2009
@@ -26,8 +26,4 @@
 
 
 class TestRunner(CliJitMixin, OOtypeBackendTest):
-
-    def skip(self):
-        py.test.skip('in-progress')
-
-    test_ovf_operations = skip
+    pass



More information about the Pypy-commit mailing list