[Vm-dev] VM Maker: Cog-eem.103.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Oct 2 22:59:05 UTC 2013


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

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

Name: Cog-eem.103
Author: eem
Time: 2 October 2013, 3:58:36.289 pm
UUID: dee822ad-85bc-4b49-92ba-15ffe4bc6998
Ancestors: Cog-eem.102

Make the hack Cogit launch of the bootstraped Spur image move
the primTraceLog to memory.

=============== Diff against Cog-eem.102 ===============

Item was changed:
  ----- Method: SpurBootstrap>>launch:simulatorClass:headerFlags: (in category 'testing') -----
  launch: heap simulatorClass: simulatorClass headerFlags: headerFlags
+ 	| sim methodCacheSize |
- 	| sim |
  	sim := simulatorClass onObjectMemory: heap.
  	heap coInterpreter: sim.
  	(sim class allInstVarNames includes: 'cogCodeSize')
  		ifTrue:
+ 			[sim initializeInterpreter: 0.
+ 			 methodCacheSize := sim methodCache size * heap wordSize.
+ 			 sim instVarNamed: 'heapBase' put: heap startOfMemory;
- 			[sim
- 				initializeInterpreter: 0;
- 				instVarNamed: 'heapBase' put: heap startOfMemory;
  				instVarNamed: 'numStackPages' put: 8;
  				instVarNamed: 'cogCodeSize' put: 1024*1024;
  				moveMethodCacheToMemoryAt: sim cogCodeSize + sim computeStackZoneSize;
+ 				movePrimTraceLogToMemoryAt: sim cogCodeSize + sim computeStackZoneSize + methodCacheSize;
  			 	initializeCodeGenerator]
  		ifFalse:
  			[sim initializeInterpreter: 0].
  	sim
  		setImageHeaderFlagsFrom: headerFlags;
  		imageName: ImageName;
  		flushExternalPrimitives;
  		openAsMorph;
  		transcript: Transcript. "deep copy copies this"
  	"sim
  		instVarNamed: 'printSends' put: true;
  		instVarNamed: 'printReturns' put: true;
  		instVarNamed: 'methodDictLinearSearchLimit' put: SmallInteger maxVal." "for now"
  	heap
  		setCheckForLeaks: 15;
  		runLeakCheckerForFullGC: true.
  
  	sim halt; run!



More information about the Vm-dev mailing list