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

Unified Diff: src/compiler/generic-algorithm.h

Issue 765983002: Clean up node iteration (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix windows build Created 6 years 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 | « src/compiler/control-reducer.cc ('k') | src/compiler/generic-algorithm-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/generic-algorithm.h
diff --git a/src/compiler/generic-algorithm.h b/src/compiler/generic-algorithm.h
index a755d2486033033f8b33a06e401b2a52c0255dfc..4b695c714d851ca93c52e2d7229351dadb80384f 100644
--- a/src/compiler/generic-algorithm.h
+++ b/src/compiler/generic-algorithm.h
@@ -70,13 +70,13 @@ class GenericGraphVisit {
post_order_node = Traits::from(stack.top().first);
visit = true;
} else {
- visitor->PreEdge(Traits::from(top.first), top.first.edge().index(),
+ visitor->PreEdge(Traits::from(top.first), (*top.first).index(),
Traits::to(top.first));
current = Traits::to(top.first);
if (!GetVisited(&visited, current->id())) break;
}
top = stack.top();
- visitor->PostEdge(Traits::from(top.first), top.first.edge().index(),
+ visitor->PostEdge(Traits::from(top.first), (*top.first).index(),
Traits::to(top.first));
++stack.top().first;
}
« no previous file with comments | « src/compiler/control-reducer.cc ('k') | src/compiler/generic-algorithm-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698