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

Unified Diff: src/compiler/simplified-lowering.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/scheduler.cc ('k') | src/compiler/structured-machine-assembler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index 0ffbdcc192bdc021bc59942687c3c5c59d81a3c0..8f46c62dcd3cc48eb33cfe5707faaa313ed2bc4c 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -4,9 +4,6 @@
#include "src/compiler/simplified-lowering.h"
-#include <deque>
-#include <queue>
-
#include "src/compiler/common-operator.h"
#include "src/compiler/graph-inl.h"
#include "src/compiler/node-properties-inl.h"
@@ -65,13 +62,12 @@ class RepresentationSelector {
: jsgraph_(jsgraph),
count_(jsgraph->graph()->NodeCount()),
info_(zone->NewArray<NodeInfo>(count_)),
- nodes_(NodeVector::allocator_type(zone)),
- replacements_(NodeVector::allocator_type(zone)),
+ nodes_(zone),
+ replacements_(zone),
contains_js_nodes_(false),
phase_(PROPAGATE),
changer_(changer),
- queue_(std::deque<Node*, NodePtrZoneAllocator>(
- NodePtrZoneAllocator(zone))) {
+ queue_(zone) {
memset(info_, 0, sizeof(NodeInfo) * count_);
}
@@ -704,8 +700,7 @@ class RepresentationSelector {
bool contains_js_nodes_; // {true} if a JS operator was seen
Phase phase_; // current phase of algorithm
RepresentationChanger* changer_; // for inserting representation changes
-
- std::queue<Node*, std::deque<Node*, NodePtrZoneAllocator> > queue_;
+ ZoneQueue<Node*> queue_; // queue for traversing the graph
NodeInfo* GetInfo(Node* node) {
DCHECK(node->id() >= 0);
« no previous file with comments | « src/compiler/scheduler.cc ('k') | src/compiler/structured-machine-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698