Commits

Armin Rigo  committed 332b124

Ah ha, found out that there was an assert preventing accesses below the
value of esp, which was just silently killed. Reintroduce the assert
and write comments.

  • Participants
  • Parent commits 515200f
  • Branches fast-slowpath

Comments (0)

Files changed (1)

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

     _location_code = 's'
 
     def __init__(self, value, type):
-        self.value = value
+        assert value >= 0     # accessing values < 0 is forbidden on x86-32.
+        self.value = value    # (on x86-64 we could allow values down to -128)
         self.type = type
 
     def _getregkey(self):