[Vm-dev] VM Maker: VMMaker.oscog-eem.664.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Apr 3 17:32:58 UTC 2014


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

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

Name: VMMaker.oscog-eem.664
Author: eem
Time: 3 April 2014, 10:30:27.071 am
UUID: c3e36805-b678-46b9-92b2-dd015fa5c970
Ancestors: VMMaker.oscog-eem.663

Move two stragglers into the VMMaker package, as needed for the
new allInstances function in ObjectMemory.

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

Item was added:
+ ----- Method: NewObjectMemory>>minLargeHeaderSize (in category 'primitive support') -----
+ minLargeHeaderSize
+ 	"Answer the smallest byte size requiring a large header."
+ 	^256!

Item was added:
+ ----- Method: NewObjectMemory>>sizeHeader:putBodySize: (in category 'primitive support') -----
+ sizeHeader: obj putBodySize: byteSize
+ 	"Too lazy to set the odd bits right now.  Just insist on a multiple of 4 bytes."
+ 	self assert: byteSize \\ 4 = 0.
+ 	self longAt: obj - (BytesPerWord*2)
+ 		put: ((byteSize + BytesPerWord bitAnd: LongSizeMask)
+ 				bitOr: ((self longAt: obj - (BytesPerWord*2)) bitClear: LongSizeMask))!



More information about the Vm-dev mailing list