[pypy-svn] r46235 - in pypy/dist/pypy/translator/jvm: . test

antocuni at codespeak.net antocuni at codespeak.net
Sat Sep 1 14:35:53 CEST 2007


Author: antocuni
Date: Sat Sep  1 14:35:51 2007
New Revision: 46235

Modified:
   pypy/dist/pypy/translator/jvm/opcodes.py
   pypy/dist/pypy/translator/jvm/test/test_op.py
Log:
all tests in test_op pass!



Modified: pypy/dist/pypy/translator/jvm/opcodes.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/opcodes.py	(original)
+++ pypy/dist/pypy/translator/jvm/opcodes.py	Sat Sep  1 14:35:51 2007
@@ -7,10 +7,11 @@
 
 from pypy.translator.oosupport.metavm import \
      PushArg, PushAllArgs, StoreResult, InstructionList, New, DoNothing, Call,\
-     SetField, GetField, DownCast, RuntimeNew, OOString, CastTo
+     SetField, GetField, DownCast, RuntimeNew, OOString, CastTo, PushPrimitive
 from pypy.translator.jvm.metavm import \
      IndirectCall, JvmCallMethod, TranslateException, NewCustomDict, \
      CastPtrToWeakAddress, CastWeakAddressToPtr
+from pypy.rpython.ootypesystem import ootype
 
 import pypy.translator.jvm.generator as jvmgen
 import pypy.translator.jvm.typesystem as jvmtype
@@ -241,6 +242,7 @@
     'cast_float_to_uint':       jvmgen.PYPYDOUBLETOUINT,
     'truncate_longlong_to_int': jvmgen.L2I,
     'cast_longlong_to_float':   jvmgen.L2D,
+    'is_early_constant':        [PushPrimitive(ootype.Bool, False), StoreResult]
     
 }
 

Modified: pypy/dist/pypy/translator/jvm/test/test_op.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/test_op.py	(original)
+++ pypy/dist/pypy/translator/jvm/test/test_op.py	Sat Sep  1 14:35:51 2007
@@ -5,13 +5,5 @@
 # ====> ../../oosupport/test_template/operations.py
 
 class TestOperations(JvmTest, BaseTestOperations):
-
-    def test_abs(self):
-        py.test.skip("Backend lacks appropriate precision")
-        
-    def test_is_true(self):
-        py.test.skip("VerifyError happens. Accessing uninit reg")
-        
-    def test_is_early_constant(self):
-        py.test.skip("Unknown opcode is_early_constant")
+    pass
         



More information about the Pypy-commit mailing list