[pypy-svn] r47828 - pypy/dist/pypy/lang/smalltalk
akuhn at codespeak.net
akuhn at codespeak.net
Wed Oct 24 15:15:47 CEST 2007
Author: akuhn
Date: Wed Oct 24 15:15:46 2007
New Revision: 47828
Modified:
pypy/dist/pypy/lang/smalltalk/squeakimage.py
Log:
(akuhn, cfbolz)
filling in also word and byte indexed objects
Modified: pypy/dist/pypy/lang/smalltalk/squeakimage.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/squeakimage.py (original)
+++ pypy/dist/pypy/lang/smalltalk/squeakimage.py Wed Oct 24 15:15:46 2007
@@ -255,11 +255,19 @@
w_pointersobject.w_class = self.g_class.w_object
def fillin_wordsobject(self, w_wordsobject):
+ w_wordsobject.words = self.chunk.data
w_wordsobject.w_class = self.g_class.w_object
def fillin_bytesobject(self, w_bytesobject):
+ bytes = []
+ for each in chunk.data:
+ bytes.append((integer & 0xff000000) >> 24)
+ bytes.append((integer & 0xff000000) >> 16)
+ bytes.append((integer & 0xff000000) >> 8)
+ bytes.append((integer & 0xff000000))
w_bytesobject.w_class = self.g_class.w_object
-
+ w_bytesobject.bytes = bytes[:-(self.format & 3)] # omit odd bytes
+
def fillin_compiledmethod(self, w_compiledmethod):
header = chunk.data[0]
#(index 0) 9 bits: main part of primitive number (#primitive)
More information about the Pypy-commit
mailing list