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

Unified Diff: pkg/compiler/lib/src/ssa/loop_handler.dart

Issue 2932023003: Refactor LoopHandler to avoid calling KernelAstAdapter.getNode (Closed)
Patch Set: Rebased Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/loop_handler.dart
diff --git a/pkg/compiler/lib/src/ssa/loop_handler.dart b/pkg/compiler/lib/src/ssa/loop_handler.dart
index c312d670f73beb57f59dc11fef58d6e4555adcaf..e22337b4c2b08d4b102bfa1393e60f662f786e4f 100644
--- a/pkg/compiler/lib/src/ssa/loop_handler.dart
+++ b/pkg/compiler/lib/src/ssa/loop_handler.dart
@@ -4,10 +4,10 @@
import 'package:kernel/ast.dart' as ir;
+import '../closure.dart' show LoopClosureRepresentationInfo;
import '../elements/elements.dart' show JumpTarget, LabelDefinition;
import '../io/source_information.dart';
import '../tree/tree.dart' as ast;
-import '../closure.dart' show LoopClosureRepresentationInfo;
import 'builder.dart';
import 'builder_kernel.dart';
@@ -360,7 +360,7 @@ class KernelLoopHandler extends LoopHandler<ir.TreeNode> {
@override
JumpTarget getTargetDefinition(ir.TreeNode node) =>
- astAdapter.getJumpTarget(node);
+ builder.localsMap.getJumpTarget(node);
@override
int loopKind(ir.TreeNode node) => node.accept(new _KernelLoopTypeVisitor());
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698