| Index: lib/compiler/implementation/ssa/builder.dart
|
| diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
|
| index 92ba9bc873fc4e6294b25808f9f5eb1a28ae10e9..7232549737f45ce91f4f2c4b49be403f815111c4 100644
|
| --- a/lib/compiler/implementation/ssa/builder.dart
|
| +++ b/lib/compiler/implementation/ssa/builder.dart
|
| @@ -2298,6 +2298,13 @@ class SsaBuilder implements Visitor {
|
| }
|
|
|
| visitLiteralList(LiteralList node) {
|
| + if (node.isConst()) {
|
| + ConstantHandler handler = compiler.constantHandler;
|
| + Constant constant = handler.compileNodeWithDefinitions(node, elements);
|
| + stack.add(graph.addConstant(constant));
|
| + return;
|
| + }
|
| +
|
| List<HInstruction> inputs = <HInstruction>[];
|
| for (Link<Node> link = node.elements.nodes;
|
| !link.isEmpty();
|
| @@ -2508,6 +2515,12 @@ class SsaBuilder implements Visitor {
|
| }
|
|
|
| visitLiteralMap(LiteralMap node) {
|
| + if (node.isConst()) {
|
| + ConstantHandler handler = compiler.constantHandler;
|
| + Constant constant = handler.compileNodeWithDefinitions(node, elements);
|
| + stack.add(graph.addConstant(constant));
|
| + return;
|
| + }
|
| List<HInstruction> inputs = <HInstruction>[];
|
| for (Link<Node> link = node.entries.nodes;
|
| !link.isEmpty();
|
|
|