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

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 comment Created 6 years, 1 month 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: src/compiler/generic-algorithm.h
diff --git a/src/compiler/generic-algorithm.h b/src/compiler/generic-algorithm.h
index 34423184ad7ed62ad6a456cb7c7725575444922c..96021c6ce2882212758b222bd59df52c2ef5fb22 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;
}

Powered by Google App Engine
This is Rietveld 408576698