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

Unified Diff: test/unittests/compiler/typer-unittest.cc

Issue 1362783004: Revert of [turbofan] Checking of input counts on node creation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
Index: test/unittests/compiler/typer-unittest.cc
diff --git a/test/unittests/compiler/typer-unittest.cc b/test/unittests/compiler/typer-unittest.cc
index d04f44e913209fd91e2bc9e446b7a1d09c6a5094..05ec1d9a35366076d3719da6875b9c3c611281bc 100644
--- a/test/unittests/compiler/typer-unittest.cc
+++ b/test/unittests/compiler/typer-unittest.cc
@@ -7,7 +7,6 @@
#include "src/codegen.h"
#include "src/compiler/js-operator.h"
#include "src/compiler/node-properties.h"
-#include "src/compiler/operator-properties.h"
#include "test/cctest/types-fuzz.h"
#include "test/unittests/compiler/graph-unittest.h"
@@ -61,23 +60,8 @@
Node* p1 = Parameter(1);
NodeProperties::SetType(p0, lhs);
NodeProperties::SetType(p1, rhs);
- std::vector<Node*> inputs;
- inputs.push_back(p0);
- inputs.push_back(p1);
- if (OperatorProperties::HasContextInput(op)) {
- inputs.push_back(context_node_);
- }
- for (int i = 0; i < OperatorProperties::GetFrameStateInputCount(op); i++) {
- inputs.push_back(EmptyFrameState());
- }
- for (int i = 0; i < op->EffectInputCount(); i++) {
- inputs.push_back(graph()->start());
- }
- for (int i = 0; i < op->ControlInputCount(); i++) {
- inputs.push_back(graph()->start());
- }
- Node* n = graph()->NewNode(op, static_cast<int>(inputs.size()),
- &(inputs.front()));
+ Node* n = graph()->NewNode(op, p0, p1, context_node_, graph()->start(),
+ graph()->start());
return NodeProperties::GetType(n);
}
« no previous file with comments | « test/unittests/compiler/scheduler-unittest.cc ('k') | test/unittests/compiler/value-numbering-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698