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

Unified Diff: pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart

Issue 1743283002: dart2js cps: Use definitions by default, not references. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix doc comments and long lines Created 4 years, 10 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
Index: pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart
diff --git a/pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart b/pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart
index 897a44edd8d7c510df1c2db525a3eed2ef42cfc3..57d71207a0d9de14c3149cee5dbd5f17e23c37da 100644
--- a/pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart
+++ b/pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart
@@ -118,14 +118,14 @@ class LoopHierarchy {
Continuation target;
if (node is InvokeContinuation) {
if (node.isRecursive) {
- target = node.continuation.definition;
+ target = node.continuation;
} else {
- target = loopTarget[node.continuation.definition];
+ target = loopTarget[node.continuation];
}
} else if (node is Branch) {
target = _markInnerLoop(
- loopTarget[node.trueContinuation.definition],
- loopTarget[node.falseContinuation.definition]);
+ loopTarget[node.trueContinuation],
+ loopTarget[node.falseContinuation]);
} else if (node == null) {
// If the code ends abruptly, use the exit loop provided in [update].
target = _exitLoop;

Powered by Google App Engine
This is Rietveld 408576698