[pypy-svn] r74548 - in pypy/branch/blackhole-improvement/pypy/jit/codewriter: . test

arigo at codespeak.net arigo at codespeak.net
Tue May 18 18:56:22 CEST 2010


Author: arigo
Date: Tue May 18 18:56:20 2010
New Revision: 74548

Modified:
   pypy/branch/blackhole-improvement/pypy/jit/codewriter/flatten.py
   pypy/branch/blackhole-improvement/pypy/jit/codewriter/test/test_flatten.py
Log:
Fix.


Modified: pypy/branch/blackhole-improvement/pypy/jit/codewriter/flatten.py
==============================================================================
--- pypy/branch/blackhole-improvement/pypy/jit/codewriter/flatten.py	(original)
+++ pypy/branch/blackhole-improvement/pypy/jit/codewriter/flatten.py	Tue May 18 18:56:20 2010
@@ -254,7 +254,7 @@
                 # many of them -- a chain of int_eq comparisons is fine
                 assert kind == 'int'    # XXX
                 color = self.getcolor(block.exitswitch)
-                self.emitline('int_guard_value', color, color)
+                self.emitline('int_guard_value', color)
                 for switch in switches:
                     # make the case described by 'switch'
                     self.emitline('goto_if_not_int_eq',

Modified: pypy/branch/blackhole-improvement/pypy/jit/codewriter/test/test_flatten.py
==============================================================================
--- pypy/branch/blackhole-improvement/pypy/jit/codewriter/test/test_flatten.py	(original)
+++ pypy/branch/blackhole-improvement/pypy/jit/codewriter/test/test_flatten.py	Tue May 18 18:56:20 2010
@@ -209,7 +209,7 @@
             elif n == 7: return 1212
             else:        return 42
         self.encoding_test(f, [65], """
-            int_guard_value %i0, %i0
+            int_guard_value %i0
             goto_if_not_int_eq %i0, $-5, L1
             int_return $12
             L1:



More information about the Pypy-commit mailing list