Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: src/compiler/wasm-compiler.cc

Issue 2764583003: [wasm] Fix wasm interpreter entry for 32 bit big endian systems (Closed)
Patch Set: using the kInt64LowerHalfMemoryOffset and kInt64UpperHalfMemoryOffset constants to load the lower and upper half Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698