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

commits at source.squeak.org commits at source.squeak.org
Tue Dec 3 19:48:26 UTC 2013


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

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

Name: Compiler-eem.276
Author: eem
Time: 3 December 2013, 11:47:59.234 am
UUID: e99950e7-3dd5-4d06-9647-f3742bdc5949
Ancestors: Compiler-cmm.275

Access VariableNode's index inst var directly instead of
reconstructing it form the code inst var.  This removes an
artificial limit of 256 temps in any one method.

=============== Diff against Compiler-cmm.275 ===============

Item was changed:
  ----- Method: VariableNode>>index (in category 'testing') -----
  index
+ 	"If index is nil, this code attempts to reconstruct the index from its encoding in code."
+ 	index ifNotNil:
+ 		[^index].
- 	"This code attempts to reconstruct the index from its encoding in code."
  	code < 0 ifTrue:[^nil].
  	code > 256 ifTrue:
  		[self assert: index = (code \\ 256).
  		^code \\ 256].
  	code >= (CodeBases at: self type) ifTrue:
  		[self assert: index = (code - (CodeBases at: self type)).
  		^code - (CodeBases at: self type)].
  	self assert: index = (code - self type).
  	^code - self type!



More information about the Squeak-dev mailing list