Commit 04440d28 authored by rayb's avatar rayb Committed by Commit bot

[wasm] Fix wasm interpreter entry for 32 bit big endian systems

The order of the return values are wrong for 32 bit big endian machines.

BUG=none
R=titzer@chromium.org, clemensh@chromium.org,

Review-Url: https://codereview.chromium.org/2764583003
Cr-Commit-Position: refs/heads/master@{#44041}
parent 9377fd1a
...@@ -2820,10 +2820,12 @@ void WasmGraphBuilder::BuildWasmInterpreterEntry( ...@@ -2820,10 +2820,12 @@ void WasmGraphBuilder::BuildWasmInterpreterEntry(
MachineType load_rep = wasm::WasmOpcodes::MachineTypeFor(wasm::kWasmI32); MachineType load_rep = wasm::WasmOpcodes::MachineTypeFor(wasm::kWasmI32);
Node* lower = Node* lower =
graph()->NewNode(jsgraph()->machine()->Load(load_rep), arg_buffer, graph()->NewNode(jsgraph()->machine()->Load(load_rep), arg_buffer,
Int32Constant(0), *effect_, *control_); Int32Constant(kInt64LowerHalfMemoryOffset), *effect_,
*control_);
Node* upper = Node* upper =
graph()->NewNode(jsgraph()->machine()->Load(load_rep), arg_buffer, graph()->NewNode(jsgraph()->machine()->Load(load_rep), arg_buffer,
Int32Constant(sizeof(int32_t)), lower, *control_); Int32Constant(kInt64UpperHalfMemoryOffset), lower,
*control_);
*effect_ = upper; *effect_ = upper;
Return(lower, upper); Return(lower, upper);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment