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

Unified Diff: test/cctest/compiler/test-machine-operator-reducer.cc

Issue 437183002: Make start node a value input to parameter nodes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add start node as input to parameter nodes. 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 | « test/cctest/compiler/test-js-typed-lowering.cc ('k') | test/cctest/compiler/test-phi-reducer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-machine-operator-reducer.cc
diff --git a/test/cctest/compiler/test-machine-operator-reducer.cc b/test/cctest/compiler/test-machine-operator-reducer.cc
index ab0855fd153fb251a50952982e9d4557654f136d..634e72e53b1d191d209079851328f1d1d56d6dc2 100644
--- a/test/cctest/compiler/test-machine-operator-reducer.cc
+++ b/test/cctest/compiler/test-machine-operator-reducer.cc
@@ -30,14 +30,17 @@ Operator* NewConstantOperator<double>(CommonOperatorBuilder* common,
class ReducerTester : public HandleAndZoneScope {
public:
- ReducerTester()
+ explicit ReducerTester(int num_parameters = 0)
: isolate(main_isolate()),
binop(NULL),
unop(NULL),
machine(main_zone()),
common(main_zone()),
graph(main_zone()),
- maxuint32(Constant<int32_t>(kMaxUInt32)) {}
+ maxuint32(Constant<int32_t>(kMaxUInt32)) {
+ Node* s = graph.NewNode(common.Start(num_parameters));
+ graph.SetStart(s);
+ }
Isolate* isolate;
Operator* binop;
@@ -168,7 +171,7 @@ class ReducerTester : public HandleAndZoneScope {
}
Node* Parameter(int32_t index = 0) {
- return graph.NewNode(common.Parameter(index));
+ return graph.NewNode(common.Parameter(index), graph.start());
}
};
« no previous file with comments | « test/cctest/compiler/test-js-typed-lowering.cc ('k') | test/cctest/compiler/test-phi-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698