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

Unified Diff: test/unittests/compiler/value-numbering-reducer-unittest.cc

Issue 644083003: [turbofan] Reduce memory consumption of graph building (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add missing arraysize Created 6 years, 2 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/value-numbering-reducer-unittest.cc
diff --git a/test/unittests/compiler/value-numbering-reducer-unittest.cc b/test/unittests/compiler/value-numbering-reducer-unittest.cc
index 7fa3f55ed57f7a3951f2effcfb05da1021e823cf..5ff3befbc1cdddf57bc17eee44545c5824f009bb 100644
--- a/test/unittests/compiler/value-numbering-reducer-unittest.cc
+++ b/test/unittests/compiler/value-numbering-reducer-unittest.cc
@@ -67,8 +67,8 @@ TEST_F(ValueNumberingReducerTest, OperatorEqualityNotIdentity) {
static const size_t kMaxInputCount = 16;
Node* inputs[kMaxInputCount];
for (size_t i = 0; i < arraysize(inputs); ++i) {
- Operator::Opcode opcode = static_cast<Operator::Opcode>(
- std::numeric_limits<Operator::Opcode>::max() - i);
+ Operator::Opcode opcode =
+ static_cast<Operator::Opcode>(IrOpcode::kLast - i);
Benedikt Meurer 2014/10/27 09:29:14 What is the purpose of this change?
Michael Starzinger 2014/10/27 09:34:19 Is there any particular reason for this change? I
inputs[i] = graph()->NewNode(new (zone()) SimpleOperator(
opcode, Operator::kEliminatable, 0, 1, "Operator"));
}
@@ -95,8 +95,8 @@ TEST_F(ValueNumberingReducerTest, SubsequentReductionsYieldTheSameNode) {
static const size_t kMaxInputCount = 16;
Node* inputs[kMaxInputCount];
for (size_t i = 0; i < arraysize(inputs); ++i) {
- Operator::Opcode opcode = static_cast<Operator::Opcode>(
- std::numeric_limits<Operator::Opcode>::max() - i);
+ Operator::Opcode opcode =
+ static_cast<Operator::Opcode>(IrOpcode::kLast - i);
Benedikt Meurer 2014/10/27 09:29:14 What is the purpose of this change?
inputs[i] = graph()->NewNode(new (zone()) SimpleOperator(
opcode, Operator::kEliminatable, 0, 1, "Operator"));
}
« src/compiler/graph-builder.cc ('K') | « test/cctest/compiler/simplified-graph-builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698