| 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 2da1e5811649290fd0459f5525fcb02b4d3595f5..5b2ffdcfeee3856ca139c759afdc649148926d2c 100644
|
| --- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| +++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| @@ -3067,9 +3067,8 @@ class KernelSsaGraphBuilder extends ir.Visitor
|
|
|
| @override
|
| visitFunctionNode(ir.FunctionNode node) {
|
| - Local methodElement = localsMap.getLocalFunction(node.parent);
|
| ClosureRepresentationInfo closureInfo =
|
| - closureDataLookup.getClosureRepresentationInfo(methodElement);
|
| + localsMap.getClosureRepresentationInfo(closureDataLookup, node.parent);
|
| ClassEntity closureClassEntity = closureInfo.closureClassEntity;
|
|
|
| List<HInstruction> capturedVariables = <HInstruction>[];
|
| @@ -3088,8 +3087,8 @@ class KernelSsaGraphBuilder extends ir.Visitor
|
| visitFunctionDeclaration(ir.FunctionDeclaration declaration) {
|
| assert(isReachable);
|
| declaration.function.accept(this);
|
| - Local localFunction = localsMap.getLocalFunction(declaration);
|
| - localsHandler.updateLocal(localFunction, pop());
|
| + Local local = localsMap.getLocalVariable(declaration.variable);
|
| + localsHandler.updateLocal(local, pop());
|
| }
|
|
|
| @override
|
|
|