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

Unified Diff: src/compiler/graph.h

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/generic-node-inl.h ('k') | src/compiler/graph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph.h
diff --git a/src/compiler/graph.h b/src/compiler/graph.h
index 65ea3b30a42c4a1dc286832f55ea86003cd2f41e..0b80507e2f4bc580e9d7dd9c083e3500985a33c0 100644
--- a/src/compiler/graph.h
+++ b/src/compiler/graph.h
@@ -72,16 +72,14 @@ class Graph : public GenericGraph<Node> {
}
void RemoveDecorator(GraphDecorator* decorator) {
- DecoratorVector::iterator it =
+ ZoneVector<GraphDecorator*>::iterator it =
std::find(decorators_.begin(), decorators_.end(), decorator);
DCHECK(it != decorators_.end());
decorators_.erase(it, it + 1);
}
private:
- typedef std::vector<GraphDecorator*, zone_allocator<GraphDecorator*> >
- DecoratorVector;
- DecoratorVector decorators_;
+ ZoneVector<GraphDecorator*> decorators_;
};
« no previous file with comments | « src/compiler/generic-node-inl.h ('k') | src/compiler/graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698