[pypy-commit] pypy jitframe-on-heap: fix those tests

fijal noreply at buildbot.pypy.org
Tue Feb 19 09:44:53 CET 2013


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: jitframe-on-heap
Changeset: r61446:b775d183cd6b
Date: 2013-02-19 10:42 +0200
http://bitbucket.org/pypy/pypy/changeset/b775d183cd6b/

Log:	fix those tests

diff --git a/rpython/jit/backend/arm/test/test_runner.py b/rpython/jit/backend/arm/test/test_runner.py
--- a/rpython/jit/backend/arm/test/test_runner.py
+++ b/rpython/jit/backend/arm/test/test_runner.py
@@ -67,7 +67,7 @@
 
     def test_redirect_call_assembler2(self):
         def assembler_helper(deadframe, virtualizable):
-            x = self.cpu.get_latest_value_int(deadframe, 0)
+            x = self.cpu.get_int_value(deadframe, 0)
             assert x == 11
             return 7
 
@@ -104,11 +104,11 @@
         self.cpu.compile_loop(loop3.inputargs, loop3.operations, lt3)
         self.cpu.compile_loop(loop1.inputargs, loop1.operations, lt1)
         df = self.cpu.execute_token(lt1, 10)
-        assert self.cpu.get_latest_value_int(df, 0) == 7
+        assert self.cpu.get_int_value(df, 0) == 7
 
         self.cpu.redirect_call_assembler(lt2, lt3)
         df = self.cpu.execute_token(lt1, 12)
-        assert self.cpu.get_latest_value_int(df, 0) == 7
+        assert self.cpu.get_int_value(df, 0) == 7
 
     SFloat = lltype.GcForwardReference()
     SFloat.become(lltype.GcStruct('SFloat', ('parent', rclass.OBJECT),
@@ -205,7 +205,7 @@
             RES = lltype.Signed
             args = [i+1 for i in range(numargs)]
             deadframe = self.cpu.execute_token(looptoken, *args)
-            assert self.cpu.get_latest_value_int(deadframe, 0) == sum(args)
+            assert self.cpu.get_int_value(deadframe, 0) == sum(args)
 
     def test_debugger_on(self):
         from rpython.rlib import debug


More information about the pypy-commit mailing list