[Vm-dev] VM Maker: VMMaker.oscog-eem.605.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Feb 4 18:36:13 UTC 2014
Eliot Miranda uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-eem.605.mcz
==================== Summary ====================
Name: VMMaker.oscog-eem.605
Author: eem
Time: 4 February 2014, 10:32:47.2 am
UUID: 8ccb5e9c-1a6e-455f-8a97-1c30cca3ea1a
Ancestors: VMMaker.oscog-eem.604
Confine primitiveTestShortenIndexableSize to a TestingPrimitives ghetto.
=============== Diff against VMMaker.oscog-eem.604 ===============
Item was changed:
----- Method: InterpreterPrimitives>>primitiveTestShortenIndexableSize (in category 'object access primitives') -----
primitiveTestShortenIndexableSize
"Given an object with indexable pointer fields, reduce the size of the indexable fields
to the requested size. Answer the number of bytes freed, or zero if the object cannot
be shortened."
+ <option: #TestingPrimitives>
-
<export: true>
| array newSize bytesFreed |
newSize := self stackIntegerValue: 0.
array := self stackValue: 1.
self pop: argumentCount + 1.
bytesFreed := self shorten: array toIndexableSize: newSize.
self pushInteger: bytesFreed!
More information about the Vm-dev
mailing list