[pypy-svn] r51377 - in pypy/dist/pypy/jit/codegen/cli: . test
antocuni at codespeak.net
antocuni at codespeak.net
Mon Feb 11 10:36:08 CET 2008
Author: antocuni
Date: Mon Feb 11 10:36:06 2008
New Revision: 51377
Modified:
pypy/dist/pypy/jit/codegen/cli/operation.py
pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py
Log:
implement emit() for unaryops; test_calling_pause_* now pass
Modified: pypy/dist/pypy/jit/codegen/cli/operation.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/cli/operation.py (original)
+++ pypy/dist/pypy/jit/codegen/cli/operation.py Mon Feb 11 10:36:06 2008
@@ -39,6 +39,12 @@
def pushAllArgs(self):
self.gv_x.load(self.il)
+ def emit(self):
+ self.pushAllArgs()
+ self.il.Emit(self.getOpCode())
+ self.storeResult()
+
+
class BinaryOp(Operation):
def __init__(self, il, gv_x, gv_y):
self.il = il
Modified: pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py (original)
+++ pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py Mon Feb 11 10:36:06 2008
@@ -17,6 +17,7 @@
'test_if',
# 'test_switch', # no promotion/flexswitch for now please :-)
'test_fact',
+ 'test_calling_pause',
]
for p in prefixes:
More information about the Pypy-commit
mailing list