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); |