[squeak-dev] The Trunk: Compiler-ct.425.mcz

commits at source.squeak.org commits at source.squeak.org
Sun May 10 07:43:25 UTC 2020


Nicolas Cellier uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-ct.425.mcz

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

Name: Compiler-ct.425
Author: ct
Time: 27 March 2020, 8:10:54.53456 pm
UUID: fc2a2b1f-76bc-3f4e-b971-65899bec23fb
Ancestors: Compiler-ct.424

Fixes a bug regarding decompilation of literal variables

The following did not work before:

	(Object >> #asOrderedCollection) decompile generate valueWithReceiver: 42 arguments: #(). "Error: internal compiler error; should not happen"

Please review. Looking at the result of a manual compilation, I assume that literal variables such as {OrderedCollection} should be decompiled as LiteralVariableNodes. I'm however not 100% sure that this does not break anything other.

=============== Diff against Compiler-ct.424 ===============

Item was changed:
  ----- Method: DecompilerConstructor>>codeAnyLitInd: (in category 'constructor') -----
  codeAnyLitInd: association
  
+ 	^LiteralVariableNode new
- 	^VariableNode new
  		name: association key
  		key: association
+ 		index: nil
- 		index: 0
  		type: LdLitIndType!



More information about the Squeak-dev mailing list