[squeak-dev] The Trunk: Compiler-eem.248.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Feb 8 19:34:23 UTC 2013


Eliot Miranda uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-eem.248.mcz

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

Name: Compiler-eem.248
Author: eem
Time: 8 February 2013, 11:33:58.616 am
UUID: c4da1b1b-b487-44bb-b8ef-392432ca421d
Ancestors: Compiler-cwp.247

Slightly less circuitous generation of methods with temp
names.  Since schematic temp names string is computed
during generation, best to generate a method and copy
it with the computed temp names than generate two
separate methods.

=============== Diff against Compiler-cwp.247 ===============

Item was changed:
  ----- Method: MethodNode>>generateWithTempNames (in category 'code generation') -----
  generateWithTempNames
+ 	"Answer a CompiledMethod with temps names encoded in its trailer."
+ 	| methodSansTempNames |
+ 	"The encoder computes the schematic temp names during generation, so 
+ 	 generate a method without temp names first.  If the method is quick there are
+ 	 no temps and hence no temp names."
+ 	methodSansTempNames := self
+ 									generate: CompiledMethodTrailer empty
+ 									using: CompiledMethod.
+ 	^methodSansTempNames
+ 		copyWithTempNames: (methodSansTempNames isQuick
+ 									ifTrue: ['']
+ 									ifFalse: [encoder schematicTempNamesString])!
- 	"Answer a CompiledMethod with temps names encoded in trailer"
- 	^self
- 		generate: (CompiledMethodTrailer new tempNames: self schematicTempNamesString)
- 		using: CompiledMethod!



More information about the Squeak-dev mailing list