[pypy-svn] r41716 - pypy/dist/pypy/translator/jvm

niko at codespeak.net niko at codespeak.net
Fri Mar 30 17:21:00 CEST 2007


Author: niko
Date: Fri Mar 30 17:20:57 2007
New Revision: 41716

Modified:
   pypy/dist/pypy/translator/jvm/generator.py
Log:
implement the branch_if_equal in jvm generator so that rpystone works again

Modified: pypy/dist/pypy/translator/jvm/generator.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/generator.py	(original)
+++ pypy/dist/pypy/translator/jvm/generator.py	Fri Mar 30 17:20:57 2007
@@ -905,6 +905,9 @@
         else:
             self._instr(IFEQ, target_label)
 
+    def branch_if_equal(self, target_label):
+        self._instr(IF_ICMPEQ, target_label)
+
     def call_graph(self, graph):
         mthd = self.db.pending_function(graph)
         mthd.invoke(self)



More information about the Pypy-commit mailing list