[pypy-svn] r65339 - pypy/branch/pyjitpl5/pypy/jit/backend/cli

antocuni at codespeak.net antocuni at codespeak.net
Wed May 20 18:51:57 CEST 2009


Author: antocuni
Date: Wed May 20 18:51:57 2009
New Revision: 65339

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/cli/method.py
Log:
be explicit on which operation we don't expect in the cli backend. Only few "real" operations are left now


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	Wed May 20 18:51:57 2009
@@ -504,21 +504,26 @@
     def not_implemented(self, op):
         raise NotImplementedError
 
-    emit_op_cast_int_to_ptr = not_implemented
     emit_op_guard_nonvirtualized = not_implemented
     emit_op_unicodelen = not_implemented
-    emit_op_setfield_raw = not_implemented
-    emit_op_cast_ptr_to_int = not_implemented
     emit_op_newunicode = not_implemented
     emit_op_new_array = not_implemented
     emit_op_unicodegetitem = not_implemented
     emit_op_strgetitem = not_implemented
-    emit_op_getfield_raw = not_implemented
-    emit_op_unicodesetitem = not_implemented
-    emit_op_getfield_raw_pure = not_implemented
     emit_op_strlen = not_implemented
     emit_op_newstr = not_implemented
-    emit_op_strsetitem = not_implemented
+
+    def lltype_only(self, op):
+        print 'Operation %s is lltype specific, should not get here!' % op.getopname()
+        raise NotImplementedError
+
+    emit_op_setfield_raw = lltype_only
+    emit_op_getfield_raw = lltype_only
+    emit_op_getfield_raw_pure = lltype_only
+    emit_op_strsetitem = lltype_only
+    emit_op_unicodesetitem = lltype_only
+    emit_op_cast_int_to_ptr = lltype_only
+    emit_op_cast_ptr_to_int = lltype_only
 
 
 # --------------------------------------------------------------------



More information about the Pypy-commit mailing list