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

Unified Diff: src/compiler/generic-algorithm.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/code-generator.cc ('k') | src/compiler/generic-node.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 c4681f95139447805eb9df5ab1fa64990379e81c..c75f9cf335f81cdfb559f4ea33db2f90b8407ffd 100644
--- a/src/compiler/generic-algorithm.h
+++ b/src/compiler/generic-algorithm.h
@@ -5,7 +5,6 @@
#ifndef V8_COMPILER_GENERIC_ALGORITHM_H_
#define V8_COMPILER_GENERIC_ALGORITHM_H_
-#include <deque>
#include <stack>
#include "src/compiler/generic-graph.h"
@@ -45,10 +44,9 @@ class GenericGraphVisit {
typedef typename Traits::Iterator Iterator;
typedef std::pair<Iterator, Iterator> NodeState;
typedef zone_allocator<NodeState> ZoneNodeStateAllocator;
- typedef std::deque<NodeState, ZoneNodeStateAllocator> NodeStateDeque;
- typedef std::stack<NodeState, NodeStateDeque> NodeStateStack;
- NodeStateStack stack((NodeStateDeque(ZoneNodeStateAllocator(zone))));
- BoolVector visited(Traits::max_id(graph), false, ZoneBoolAllocator(zone));
+ typedef std::stack<NodeState, ZoneDeque<NodeState>> NodeStateStack;
+ NodeStateStack stack((ZoneDeque<NodeState>(zone)));
+ BoolVector visited(Traits::max_id(graph), false, zone);
Node* current = *root_begin;
while (true) {
DCHECK(current != NULL);
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/generic-node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698