[Vm-dev] VM Maker: VMMaker.oscog-nice.1758.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Apr 3 15:14:38 UTC 2016


Nicolas Cellier uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-nice.1758.mcz

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

Name: VMMaker.oscog-nice.1758
Author: nice
Time: 3 April 2016, 4:26:46.014 pm
UUID: 054160dc-66a2-450c-b22e-b7de8120f78d
Ancestors: VMMaker.oscog-nice.1757

Fix generation of byteSwapped in v3.
Sometimes slang rules are just mysterious...

=============== Diff against VMMaker.oscog-nice.1757 ===============

Item was changed:
  ----- Method: ObjectMemory>>byteSwapped: (in category 'image save/restore') -----
  byteSwapped: w
  	"Answer the given integer with its bytes in the reverse order."
  	<api>
  	<returnTypeC: #sqInt>
+ 	^self cppIf: self wordSize = 4
+ 		ifTrue: [w byteSwap32]
+ 		ifFalse: [w byteSwap64]!
- 	self cppIf: self wordSize = 4
- 		ifTrue: [^w byteSwap32]
- 		ifFalse: [^w byteSwap64]!



More information about the Vm-dev mailing list