1. Pypy
  2. Untitled project
  3. pypy

Commits

Maciej Fijalkowski  committed d3bdf7d

fix test_jump

  • Participants
  • Parent commits fbb2583
  • Branches jitframe-on-heap

Comments (0)

Files changed (3)

File pypy/TODO

View file
  • Ignore whitespace
 * 32bit x86
 * ARM
 * shadowstack + asmgcc
-* kill jit2gc on translator
+* kill jit2gc on translator
+* fix test_singlefloats in test_calling_conventions

File pypy/jit/backend/x86/regloc.py

View file
  • Ignore whitespace
         return self.type == FLOAT
 
 class StackLoc(RawStackLoc):
+    _immutable_ = True
+    
     def __init__(self, position, ebp_offset, type):
         from pypy.jit.backend.x86.arch import JITFRAME_FIXED_SIZE, WORD
         
         assert ebp_offset >= 0
         #assert not (0 <= ebp_offset < 8 + 8 * IS_X86_64)
         self.position = position
-        assert (position + JITFRAME_FIXED_SIZE) * WORD == ebp_offset
+        if position != 9999:
+            assert (position + JITFRAME_FIXED_SIZE) * WORD == ebp_offset
         self.value = ebp_offset
         # One of INT, REF, FLOAT
         self.type = type

File pypy/jit/backend/x86/test/test_jump.py

View file
  • Ignore whitespace
 
 def test_overflow_bug():
     CASE = [
-        (-144, -248),   # \ cycle
-        (-248, -144),   # /
-        (-488, -416),   # \ two usages of -488
-        (-488, -480),   # /
-        (-488, -488),   # - one self-application of -488
+        (144, 248),   # \ cycle
+        (248, 144),   # /
+        (488, 416),   # \ two usages of -488
+        (488, 480),   # /
+        (488, 488),   # - one self-application of -488
         ]
     class FakeAssembler:
         def regalloc_mov(self, src, dst):