Index: test/cctest/wasm/wasm-run-utils.h |
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h |
index 4045356ff63def74cc5418c36277556c558d80ce..4f997106cad90bc3cc255a5edbd74a2784e0c018 100644 |
--- a/test/cctest/wasm/wasm-run-utils.h |
+++ b/test/cctest/wasm/wasm-run-utils.h |
@@ -355,7 +355,7 @@ class WasmFunctionWrapper : public HandleAndZoneScope, |
} |
if (p1 != MachineType::None()) { |
parameters[parameter_count] = graph()->NewNode( |
- machine()->Load(p0), |
+ machine()->Load(p1), |
graph()->NewNode(common()->Parameter(1), graph()->start()), |
graph()->NewNode(common()->Int32Constant(0)), effect, |
graph()->start()); |
@@ -363,7 +363,7 @@ class WasmFunctionWrapper : public HandleAndZoneScope, |
} |
if (p2 != MachineType::None()) { |
parameters[parameter_count] = graph()->NewNode( |
- machine()->Load(p0), |
+ machine()->Load(p2), |
graph()->NewNode(common()->Parameter(2), graph()->start()), |
graph()->NewNode(common()->Int32Constant(0)), effect, |
graph()->start()); |
@@ -371,7 +371,7 @@ class WasmFunctionWrapper : public HandleAndZoneScope, |
} |
if (p3 != MachineType::None()) { |
parameters[parameter_count] = graph()->NewNode( |
- machine()->Load(p0), |
+ machine()->Load(p3), |
graph()->NewNode(common()->Parameter(3), graph()->start()), |
graph()->NewNode(common()->Int32Constant(0)), effect, |
graph()->start()); |