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

commits at source.squeak.org commits at source.squeak.org
Mon May 11 00:29:23 UTC 2015


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

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

Name: VMMaker.oscog-eem.1298
Author: eem
Time: 10 May 2015, 5:27:04.768 pm
UUID: da9fd4c2-e7e4-48c1-bfb6-87139d690def
Ancestors: VMMaker.oscog-eem.1297

Doh!  primitiveClass needs to take > 0 args in
Squeak too, for objectClass:.

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

Item was changed:
  ----- Method: InterpreterPrimitives>>primitiveClass (in category 'object access primitives') -----
  primitiveClass
  	| instance |
  	instance := self stackTop.
+ 	argumentCount > 0 ifTrue:
+ 		[instance := objectMemory followMaybeForwarded: instance].
+ 	self pop: argumentCount + 1 thenPush: (objectMemory fetchClassOf: instance)!
- 	NewspeakVM
- 		ifTrue:
- 			[argumentCount > 0 ifTrue:
- 				[instance := objectMemory followMaybeForwarded: instance].
- 			 self pop: argumentCount+1 thenPush: (objectMemory fetchClassOf: instance)]
- 		ifFalse:
- 			[self assert: argumentCount = 0.
- 			 self pop: 1 thenPush: (objectMemory fetchClassOf: instance)]!



More information about the Vm-dev mailing list