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

Unified Diff: pkg/compiler/lib/src/kernel/element_map.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 | « no previous file | pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/element_map.dart
diff --git a/pkg/compiler/lib/src/kernel/element_map.dart b/pkg/compiler/lib/src/kernel/element_map.dart
index 84904aeae9b21a98313bc63e61e8ec5d9a1f1373..d68d0c5fd7e989be523e4f922316fb9db25a2004 100644
--- a/pkg/compiler/lib/src/kernel/element_map.dart
+++ b/pkg/compiler/lib/src/kernel/element_map.dart
@@ -4,6 +4,7 @@
import 'package:kernel/ast.dart' as ir;
+import '../closure.dart';
import '../common.dart';
import '../common/names.dart';
import '../constants/constructors.dart';
@@ -1037,4 +1038,9 @@ abstract class KernelToLocalsMap {
/// Returns the [JumpTarget] for the branch in [node].
// TODO(johnniwinther): Split this by kind of [node]?
JumpTarget getJumpTarget(ir.TreeNode node, {bool isContinueTarget: false});
+
+ /// Returns the [LoopClosureRepresentationInfo] for the loop [node] in
+ /// [closureClassMaps].
+ LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop(
+ ClosureClassMaps closureClassMaps, ir.TreeNode node);
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698