[pypy-svn] r37617 - pypy/dist/pypy/jit/codegen/i386

arigo at codespeak.net arigo at codespeak.net
Tue Jan 30 17:36:44 CET 2007


Author: arigo
Date: Tue Jan 30 17:36:43 2007
New Revision: 37617

Modified:
   pypy/dist/pypy/jit/codegen/i386/rgenop.py
Log:
These two XXX's are actually wrong: the code is right.
The frame locations are always WORD-sized.


Modified: pypy/dist/pypy/jit/codegen/i386/rgenop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/i386/rgenop.py	(original)
+++ pypy/dist/pypy/jit/codegen/i386/rgenop.py	Tue Jan 30 17:36:43 2007
@@ -668,7 +668,6 @@
     @staticmethod
     @specialize.arg(0)
     def read_frame_var(T, base, info, index):
-        # XXX assumes sizeof(T) == WORD
         v = info[index]
         if isinstance(v, StorageInStack):
             value = peek_word_at(base + v.get_offset())
@@ -680,7 +679,6 @@
     @staticmethod
     @specialize.arg(0)
     def write_frame_place(T, base, place, value):
-        # XXX assumes sizeof(T) == WORD
         value = cast_whatever_to_int(T, value)
         poke_word_into(base + place.get_offset(), value)
 



More information about the Pypy-commit mailing list