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

Unified Diff: src/compiler/verifier.cc

Issue 505133003: Introduce subclass wrappers for STL containers that make them a lot easier (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | « src/compiler/structured-machine-assembler.cc ('k') | src/zone-containers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/verifier.cc
diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc
index 9b06e3140eab4c6af39b54dddbffc00ce8bb6ac7..8b780e9320558e441afc6e79d94945444c3e3521 100644
--- a/src/compiler/verifier.cc
+++ b/src/compiler/verifier.cc
@@ -320,9 +320,9 @@ void ScheduleVerifier::Run(Schedule* schedule) {
}
// Verify that all blocks reachable from start are in the RPO.
- BoolVector marked(count, false, BoolVector::allocator_type(zone));
+ BoolVector marked(count, false, zone);
{
- std::queue<BasicBlock*> queue;
+ ZoneQueue<BasicBlock*> queue(zone);
queue.push(start);
marked[start->id()] = true;
while (!queue.empty()) {
@@ -358,7 +358,7 @@ void ScheduleVerifier::Run(Schedule* schedule) {
// Compute a set of all the nodes that dominate a given node by using
// a forward fixpoint. O(n^2).
- std::queue<BasicBlock*> queue;
+ ZoneQueue<BasicBlock*> queue(zone);
queue.push(start);
dominators[start->id()] = new (zone) BitVector(count, zone);
while (!queue.empty()) {
« no previous file with comments | « src/compiler/structured-machine-assembler.cc ('k') | src/zone-containers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698