Index: test/unittests/compiler/int64-lowering-unittest.cc |
diff --git a/test/unittests/compiler/int64-lowering-unittest.cc b/test/unittests/compiler/int64-lowering-unittest.cc |
index fb6c76b1ea1814e3949bb79a8fd92757ba2b6c1a..400eafb4dc69c24ac33754c9c78f2c4b7b419b13 100644 |
--- a/test/unittests/compiler/int64-lowering-unittest.cc |
+++ b/test/unittests/compiler/int64-lowering-unittest.cc |
@@ -40,8 +40,9 @@ class Int64LoweringTest : public GraphTest { |
MachineOperatorBuilder* machine() { return &machine_; } |
void LowerGraph(Node* node, Signature<MachineRepresentation>* signature) { |
- Node* ret = graph()->NewNode(common()->Return(), node, graph()->start(), |
- graph()->start()); |
+ Node* zero = graph()->NewNode(common()->Int32Constant(0)); |
+ Node* ret = graph()->NewNode(common()->Return(), zero, node, |
+ graph()->start(), graph()->start()); |
NodeProperties::MergeControlToEnd(graph(), common(), ret); |
Int64Lowering lowering(graph(), machine(), common(), zone(), signature); |
@@ -216,7 +217,8 @@ TEST_F(Int64LoweringTest, UnalignedInt64Load) { |
Int32Constant(base), Int32Constant(index), \ |
Int64Constant(value(0)), start(), start()); \ |
\ |
- Node* ret = graph()->NewNode(common()->Return(), \ |
+ Node* zero = graph()->NewNode(common()->Int32Constant(0)); \ |
+ Node* ret = graph()->NewNode(common()->Return(), zero, \ |
Int32Constant(return_value), store, start()); \ |
\ |
NodeProperties::MergeControlToEnd(graph(), common(), ret); \ |
@@ -313,7 +315,7 @@ TEST_F(Int64LoweringTest, CallI64Return) { |
CompareCallDescriptors( |
OpParameter<const CallDescriptor*>( |
- graph()->end()->InputAt(1)->InputAt(0)->InputAt(0)), |
+ graph()->end()->InputAt(1)->InputAt(1)->InputAt(0)), |
wasm::ModuleEnv::GetI32WasmCallDescriptor(zone(), desc)); |
} |
@@ -347,7 +349,7 @@ TEST_F(Int64LoweringTest, CallI64Parameter) { |
CompareCallDescriptors( |
OpParameter<const CallDescriptor*>( |
- graph()->end()->InputAt(1)->InputAt(0)), |
+ graph()->end()->InputAt(1)->InputAt(1)), |
wasm::ModuleEnv::GetI32WasmCallDescriptor(zone(), desc)); |
} |