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

commits at source.squeak.org commits at source.squeak.org
Wed Apr 22 17:41:10 UTC 2015


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

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

Name: VMMaker.oscog-eem.1239
Author: eem
Time: 22 April 2015, 10:37:54.358 am
UUID: ef1b96fd-5ad1-4f23-84ba-5d5e7a6a3812
Ancestors: VMMaker.oscog-eem.1238

And fix another glitch...

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

Item was changed:
  ----- Method: VMMaker>>generateCogitFileFor: (in category 'generate sources') -----
  generateCogitFileFor: cogitClass
+ 	"Translate the Smalltalk description of the Cogit into C, if required.  Ensure that
+ 	 inferTypesForImplicitlyTypedVariablesAndMethods was done, and answer the code generator."
- 	"Translate the Smalltalk description of the virtual machine into C.  If 'self doInlining' is true, small method bodies are inlined to reduce procedure call overhead.  On the PPC, this results in a factor of three speedup with only 30% increase in code size.  Subclasses can use specialised versions of CCodeGenerator and interpreterClass."
  
  	| cg |
  	cg := [self buildCodeGeneratorForCogit]
  			on: Notification
  			do: [:ex|
  				ex tag == #getVMMaker
  					ifTrue: [ex resume: self]
  					ifFalse: [(ex respondsTo: #rearmHandlerDuring:)
  								ifTrue: [ex rearmHandlerDuring: [ex pass]]
  								ifFalse: [ex pass]]].
- 	self needsToRegenerateCogitFile ifFalse: [^cg].
  
  	cg inferTypesForImplicitlyTypedVariablesAndMethods.
+ 	self needsToRegenerateCogitFile ifFalse: [^nil].
  
  	cg vmClass preGenerationHook: cg.
  	cg storeCodeOnFile: (self sourceFilePathFor: cogitClass processorSpecificSourceFileName) doInlining: cogitClass doInlining.
  	^cg!



More information about the Vm-dev mailing list