Commits

Sven Hager committed 285f2e5

emit some information when hitting not implemented operations

Comments (0)

Files changed (2)

pypy/jit/backend/ppc/ppc_assembler.py

             assert 0, "not implemented yet"
 
 def notimplemented_op(self, op, arglocs, regalloc):
-    raise NotImplementedError, op
+    print "[PPC/asm] %s not implemented" % op.getopname()
+    raise NotImplementedError(op)
 
 def notimplemented_op_with_guard(self, op, guard_op, arglocs, regalloc):
-    raise NotImplementedError, op
+    print "[PPC/asm] %s with guard %s not implemented" % \
+            (op.getopname(), guard_op.getopname())
+    raise NotImplementedError(op)
 
 operations = [notimplemented_op] * (rop._LAST + 1)
 operations_with_guard = [notimplemented_op_with_guard] * (rop._LAST + 1)

pypy/jit/backend/ppc/regalloc.py

     return lambda self, op: fn(self, op, None)
 
 def notimplemented(self, op):
-    raise NotImplementedError, op
+    print "[PPC/regalloc] %s not implemented" % op.getopname()
+    raise NotImplementedError(op)
 
 def notimplemented_with_guard(self, op, guard_op):
+    print "[PPC/regalloc] %s with guard %s not implemented" % \
+            (op.getopname(), guard_op.getopname())
+    raise NotImplementedError(op)
 
-    raise NotImplementedError, op
+
 
 operations = [notimplemented] * (rop._LAST + 1)
 operations_with_guard = [notimplemented_with_guard] * (rop._LAST + 1)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.