VM Maker: VMMaker.oscog-eem.446.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

VM Maker: VMMaker.oscog-eem.446.mcz

commits-2
 
Eliot Miranda uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-eem.446.mcz

==================== Summary ====================

Name: VMMaker.oscog-eem.446
Author: eem
Time: 9 October 2013, 12:03:08.068 pm
UUID: 7370bf0f-d413-4466-9958-47a808675189
Ancestors: VMMaker.oscog-eem.445

Define Spur imaeg format version number, using 2r10000 flag as per
DTL's prescription.

=============== Diff against VMMaker.oscog-eem.445 ===============

Item was changed:
  ----- Method: StackInterpreter>>imageFormatVersion (in category 'image save/restore') -----
  imageFormatVersion
+ "Return a magic constant that changes when the image format changes.
+ Since the image reading code uses this to detect byte ordering, one
+ must avoid version numbers that are invariant under byte reversal."
+ | isSpurFlag |
+ isSpurFlag := objectMemory hasSpurMemoryManagerAPI ifTrue: [2r10000] ifFalse: [0].
+ ^(BytesPerWord = 4 ifTrue: [6505] ifFalse: [68003])
+  + isSpurFlag!
- "Return a magic constant that changes when the image format changes. Since the image reading code uses this to detect byte ordering, one must avoid version numbers that are invariant under byte reversal."
-
- ^BytesPerWord == 4 ifTrue: [6505] ifFalse: [68003]!