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

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

Issue 539973002: Make MSVC happy again. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/value-numbering-reducer-unittest.cc
diff --git a/src/compiler/value-numbering-reducer-unittest.cc b/src/compiler/value-numbering-reducer-unittest.cc
index 9690b7beca20b445bbc59b8780ca9b5ae58c7537..a1b543561a2a47251c6378b87df8eee91f6c95d0 100644
--- a/src/compiler/value-numbering-reducer-unittest.cc
+++ b/src/compiler/value-numbering-reducer-unittest.cc
@@ -63,14 +63,16 @@ TEST_F(ValueNumberingReducerTest, OperatorEqualityNotIdentity) {
}
TRACED_FORRANGE(size_t, input_count, 0, arraysize(inputs)) {
const SimpleOperator op1(static_cast<Operator::Opcode>(input_count),
- Operator::kNoProperties, input_count, 1, "op");
- Node* n1 = graph()->NewNode(&op1, input_count, inputs);
+ Operator::kNoProperties,
+ static_cast<int>(input_count), 1, "op");
+ Node* n1 = graph()->NewNode(&op1, static_cast<int>(input_count), inputs);
Reduction r1 = Reduce(n1);
EXPECT_FALSE(r1.Changed());
const SimpleOperator op2(static_cast<Operator::Opcode>(input_count),
- Operator::kNoProperties, input_count, 1, "op");
- Node* n2 = graph()->NewNode(&op2, input_count, inputs);
+ Operator::kNoProperties,
+ static_cast<int>(input_count), 1, "op");
+ Node* n2 = graph()->NewNode(&op2, static_cast<int>(input_count), inputs);
Reduction r2 = Reduce(n2);
EXPECT_TRUE(r2.Changed());
EXPECT_EQ(n1, r2.replacement());
@@ -88,16 +90,17 @@ TEST_F(ValueNumberingReducerTest, SubsequentReductionsYieldTheSameNode) {
opcode, Operator::kNoProperties, 0, 1, "Operator"));
}
TRACED_FORRANGE(size_t, input_count, 0, arraysize(inputs)) {
- const SimpleOperator op1(1, Operator::kNoProperties, input_count, 1, "op1");
- Node* n = graph()->NewNode(&op1, input_count, inputs);
+ const SimpleOperator op1(1, Operator::kNoProperties,
+ static_cast<int>(input_count), 1, "op1");
+ Node* n = graph()->NewNode(&op1, static_cast<int>(input_count), inputs);
Reduction r = Reduce(n);
EXPECT_FALSE(r.Changed());
- r = Reduce(graph()->NewNode(&op1, input_count, inputs));
+ r = Reduce(graph()->NewNode(&op1, static_cast<int>(input_count), inputs));
ASSERT_TRUE(r.Changed());
EXPECT_EQ(n, r.replacement());
- r = Reduce(graph()->NewNode(&op1, input_count, inputs));
+ r = Reduce(graph()->NewNode(&op1, static_cast<int>(input_count), inputs));
ASSERT_TRUE(r.Changed());
EXPECT_EQ(n, r.replacement());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698