Index: test/unittests/compiler/escape-analysis-unittest.cc |
diff --git a/test/unittests/compiler/escape-analysis-unittest.cc b/test/unittests/compiler/escape-analysis-unittest.cc |
index c40dbab47bd0469588c292d1a3dc8dc1d7e79544..3a233d6872f9baacebd9f5491b516ae6f90028b6 100644 |
--- a/test/unittests/compiler/escape-analysis-unittest.cc |
+++ b/test/unittests/compiler/escape-analysis-unittest.cc |
@@ -119,9 +119,8 @@ |
if (!control) { |
control = control_; |
} |
- Node* zero = graph()->NewNode(common()->Int32Constant(0)); |
- return control_ = graph()->NewNode(common()->Return(), zero, value, effect, |
- control); |
+ return control_ = |
+ graph()->NewNode(common()->Return(), value, effect, control); |
} |
void EndGraph() { |
@@ -225,7 +224,7 @@ |
Transformation(); |
- ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 1)); |
+ ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 0)); |
} |
@@ -251,7 +250,7 @@ |
Transformation(); |
- ASSERT_EQ(load, NodeProperties::GetValueInput(result, 1)); |
+ ASSERT_EQ(load, NodeProperties::GetValueInput(result, 0)); |
} |
@@ -273,7 +272,7 @@ |
Transformation(); |
- ASSERT_EQ(allocation, NodeProperties::GetValueInput(result, 1)); |
+ ASSERT_EQ(allocation, NodeProperties::GetValueInput(result, 0)); |
} |
@@ -301,7 +300,7 @@ |
Transformation(); |
- ASSERT_EQ(finish1, NodeProperties::GetValueInput(result, 1)); |
+ ASSERT_EQ(finish1, NodeProperties::GetValueInput(result, 0)); |
} |
@@ -334,7 +333,7 @@ |
Transformation(); |
- ASSERT_EQ(replacement_phi, NodeProperties::GetValueInput(result, 1)); |
+ ASSERT_EQ(replacement_phi, NodeProperties::GetValueInput(result, 0)); |
} |
@@ -366,7 +365,7 @@ |
Transformation(); |
- ASSERT_EQ(load, NodeProperties::GetValueInput(result, 1)); |
+ ASSERT_EQ(load, NodeProperties::GetValueInput(result, 0)); |
} |
@@ -401,7 +400,7 @@ |
Transformation(); |
- ASSERT_EQ(allocation, NodeProperties::GetValueInput(result, 1)); |
+ ASSERT_EQ(allocation, NodeProperties::GetValueInput(result, 0)); |
} |
@@ -426,7 +425,7 @@ |
Transformation(); |
- ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 1)); |
+ ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 0)); |
} |
@@ -462,7 +461,7 @@ |
Transformation(); |
- ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 1)); |
+ ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 0)); |
Node* object_state = NodeProperties::GetValueInput(state_values1, 0); |
ASSERT_EQ(object_state->opcode(), IrOpcode::kObjectState); |
ASSERT_EQ(1, object_state->op()->ValueInputCount()); |
@@ -502,7 +501,7 @@ |
Transformation(); |
- ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 1)); |
+ ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 0)); |
Node* object_state = NodeProperties::GetValueInput(state_values1, 0); |
ASSERT_EQ(object_state->opcode(), IrOpcode::kObjectState); |