| Index: pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| index 38902b25916dca1981ad4ca16f8abd3ba0f9c413..f56900f697728d162d943842f0240fffef0c4235 100644
|
| --- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| +++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| @@ -3001,6 +3001,12 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
|
| @override
|
| void visitConstructorInvocation(ir.ConstructorInvocation invocation) {
|
| ir.Constructor target = invocation.target;
|
| + if (invocation.isConst) {
|
| + ConstantValue constant = astAdapter.getConstantFor(invocation);
|
| + stack.add(graph.addConstant(constant, closedWorld));
|
| + return;
|
| + }
|
| +
|
| // TODO(sra): For JS-interop targets, process arguments differently.
|
| List<HInstruction> arguments =
|
| _visitArgumentsForStaticTarget(target.function, invocation.arguments);
|
|
|