[Vm-dev] VM Maker: VMMaker.oscog-tfel.1274.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Apr 30 06:01:07 UTC 2015


Tim Felgentreff uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-tfel.1274.mcz

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

Name: VMMaker.oscog-tfel.1274
Author: tfel
Time: 30 April 2015, 7:59:26.741 am
UUID: 11ab491c-b25b-4a4b-bbee-864f39e9d3e7
Ancestors: VMMaker.oscog-rmacnak.1273

Merge from VMMaker-tfel.363. Add primitive 255 as marker to InterpreterProxy>>primitiveFailFor: for RSqueakVM to notice that the simulation is about to fail

=============== Diff against VMMaker.oscog-rmacnak.1273 ===============

Item was changed:
  ----- Method: InterpreterProxy>>primitiveFailFor: (in category 'other') -----
  primitiveFailFor: reasonCode
  	"Set specific primitive failure.
+ 	N.B. primitiveFailFor: PrimNoErr is expected to clear the primFailCode.
+ 	Primitive 255 is called to indicate that we are currently simulating a primitive that should fail and the VM should handle that case appropriately (if supported by the VM)."
+ 	<primitive: 255>
+ 	^ primFailCode := reasonCode!
- 	 N.B. primitiveFailFor: PrimNoErr is expected to clear the primFailCode."
- 	(self confirm:'A primitive is failing -- Stop simulation?') ifTrue:[self halt].
- 	^primFailCode := reasonCode!



More information about the Vm-dev mailing list