[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}
This commit is contained in:
parent
9377fd1a46
commit
04440d2869
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user