[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:
rayb 2017-03-22 10:48:24 -07:00 committed by Commit bot
parent 9377fd1a46
commit 04440d2869

View File

@ -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 {