Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 7fb4bc358faeddba7478307b76cfb0495d68ba25..e28c916f357e5d8383a13d6d340789e4e8d3999d 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -2820,10 +2820,12 @@ void WasmGraphBuilder::BuildWasmInterpreterEntry( |
MachineType load_rep = wasm::WasmOpcodes::MachineTypeFor(wasm::kWasmI32); |
Node* lower = |
graph()->NewNode(jsgraph()->machine()->Load(load_rep), arg_buffer, |
- Int32Constant(0), *effect_, *control_); |
+ Int32Constant(kInt64LowerHalfMemoryOffset), *effect_, |
+ *control_); |
Node* upper = |
graph()->NewNode(jsgraph()->machine()->Load(load_rep), arg_buffer, |
- Int32Constant(sizeof(int32_t)), lower, *control_); |
+ Int32Constant(kInt64UpperHalfMemoryOffset), lower, |
+ *control_); |
*effect_ = upper; |
Return(lower, upper); |
} else { |