Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: pkg/compiler/lib/src/ssa/builder_kernel.dart

Issue 2960633002: Split KernelToElementMap into sub-interfaces (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../common.dart'; 8 import '../common.dart';
9 import '../common/codegen.dart' show CodegenRegistry; 9 import '../common/codegen.dart' show CodegenRegistry;
10 import '../common/names.dart'; 10 import '../common/names.dart';
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 final Compiler compiler; 81 final Compiler compiler;
82 82
83 @override 83 @override
84 JavaScriptBackend get backend => compiler.backend; 84 JavaScriptBackend get backend => compiler.backend;
85 85
86 @override 86 @override
87 TreeElements get elements => astAdapter.elements; 87 TreeElements get elements => astAdapter.elements;
88 88
89 SourceInformationBuilder sourceInformationBuilder; 89 SourceInformationBuilder sourceInformationBuilder;
90 final KernelToElementMap _elementMap; 90 final KernelToElementMapForBuilding _elementMap;
91 final KernelToTypeInferenceMap _typeInferenceMap; 91 final KernelToTypeInferenceMap _typeInferenceMap;
92 final KernelToLocalsMap localsMap; 92 final KernelToLocalsMap localsMap;
93 LoopHandler<ir.Node> loopHandler; 93 LoopHandler<ir.Node> loopHandler;
94 TypeBuilder typeBuilder; 94 TypeBuilder typeBuilder;
95 95
96 final Map<ir.VariableDeclaration, HInstruction> letBindings = 96 final Map<ir.VariableDeclaration, HInstruction> letBindings =
97 <ir.VariableDeclaration, HInstruction>{}; 97 <ir.VariableDeclaration, HInstruction>{};
98 98
99 /// True if we are visiting the expression of a throw statement; we assume 99 /// True if we are visiting the expression of a throw statement; we assume
100 /// this is a slow path. 100 /// this is a slow path.
(...skipping 3382 matching lines...) Expand 10 before | Expand all | Expand 10 after
3483 enterBlock.setBlockFlow( 3483 enterBlock.setBlockFlow(
3484 new HTryBlockInformation( 3484 new HTryBlockInformation(
3485 kernelBuilder.wrapStatementGraph(bodyGraph), 3485 kernelBuilder.wrapStatementGraph(bodyGraph),
3486 exception, 3486 exception,
3487 kernelBuilder.wrapStatementGraph(catchGraph), 3487 kernelBuilder.wrapStatementGraph(catchGraph),
3488 kernelBuilder.wrapStatementGraph(finallyGraph)), 3488 kernelBuilder.wrapStatementGraph(finallyGraph)),
3489 exitBlock); 3489 exitBlock);
3490 kernelBuilder.inTryStatement = previouslyInTryStatement; 3490 kernelBuilder.inTryStatement = previouslyInTryStatement;
3491 } 3491 }
3492 } 3492 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698