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

commits at source.squeak.org commits at source.squeak.org
Sat Mar 25 00:27:52 UTC 2017


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

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

Name: VMMaker.oscog-eem.2183
Author: eem
Time: 24 March 2017, 5:27:02.066951 pm
UUID: 737e7483-f203-4279-afe5-d8f28e3d3f46
Ancestors: VMMaker.oscog-eem.2182

Fix the new validBCPC:inMethod: to use a sensible way of determining the initialPC.

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

Item was changed:
  ----- Method: StackInterpreter>>validBCPC:inMethod: (in category 'debug support') -----
  validBCPC: thePC inMethod: aMethod
  	<var: #aMethod type: #usqInt>
  	"Note that we accept anInstrPointer pointing to a callPrimitiveBytecode
  	 at the start of a method that contains a primitive.  This because methods like
  	 Context(Part)>>reset have to be updated to skip the callPrimtiive bytecode otherwise."
+ 	^thePC >= (self startPCOfMethod: aMethod)
- 	"-1 for pre-increment in fetchNextBytecode"
- 	^thePC >= (objectMemory lastPointerOf: aMethod)
  	  and: [thePC < (objectMemory numBytesOfBytes: aMethod)]!



More information about the Vm-dev mailing list