The Inbox: Compiler-ct.425.mcz

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

The Inbox: Compiler-ct.425.mcz

commits-2
Christoph Thiede uploaded a new version of Compiler to project The Inbox:
http://source.squeak.org/inbox/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!