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

commits at source.squeak.org commits at source.squeak.org
Fri Mar 27 19:11:04 UTC 2020

Christoph Thiede uploaded a new version of Compiler to project The Inbox:

==================== 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