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

Unified Diff: test/cctest/compiler/test-graph-reducer.cc

Issue 838783002: [turbofan] Cleanup Graph and related classes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Parameter pack causes compile errors. Created 5 years, 11 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/simplified-operator-reducer.h ('k') | test/cctest/compiler/test-node-cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-graph-reducer.cc
diff --git a/test/cctest/compiler/test-graph-reducer.cc b/test/cctest/compiler/test-graph-reducer.cc
index 70b57b9da99751456864c5f0f3121c08f2b7c0e2..d425c90aae2635c600220805e2189ed133f10dcc 100644
--- a/test/cctest/compiler/test-graph-reducer.cc
+++ b/test/cctest/compiler/test-graph-reducer.cc
@@ -2,10 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <set>
+
#include "src/v8.h"
#include "graph-tester.h"
#include "src/compiler/graph-reducer.h"
+#include "src/compiler/node.h"
+#include "src/compiler/operator.h"
using namespace v8::internal;
using namespace v8::internal::compiler;
@@ -181,6 +185,7 @@ class AB2Sorter : public Reducer {
// Simply records the nodes visited.
class ReducerRecorder : public Reducer {
public:
+ typedef std::set<Node*, std::less<Node*>, zone_allocator<Node*>> NodeSet;
explicit ReducerRecorder(Zone* zone)
: set(NodeSet::key_compare(), NodeSet::allocator_type(zone)) {}
virtual Reduction Reduce(Node* node) {
« no previous file with comments | « src/compiler/simplified-operator-reducer.h ('k') | test/cctest/compiler/test-node-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698