The Trunk: Compiler-eem.276.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Compiler-eem.276.mcz

commits-2
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!