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

Unified Diff: src/wasm/ast-decoder.cc

Issue 1779713009: Implement optional turbofan UnalignedLoad and UnalignedStore operators (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix failures in cctest/test-run-wasm-64/Run_Wasm_LoadStoreI64_sx due to missing implementation of U… Created 4 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
Index: src/wasm/ast-decoder.cc
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc
index 9e943b0fa534b8b643aff485d6f6e04f8279288d..fd22713805a530d9453e6275687068750ce189ac 100644
--- a/src/wasm/ast-decoder.cc
+++ b/src/wasm/ast-decoder.cc
@@ -1316,8 +1316,8 @@ class SR_WasmDecoder : public WasmDecoder {
TypeCheckLast(p, kAstI32); // index
if (build()) {
MemoryAccessOperand operand(this, p->pc());
- p->tree->node =
- builder_->LoadMem(type, mem_type, p->last()->node, operand.offset);
+ p->tree->node = builder_->LoadMem(type, mem_type, p->last()->node,
+ operand.offset, operand.alignment);
}
}
@@ -1331,7 +1331,7 @@ class SR_WasmDecoder : public WasmDecoder {
MemoryAccessOperand operand(this, p->pc());
TFNode* val = p->tree->children[1]->node;
builder_->StoreMem(mem_type, p->tree->children[0]->node, operand.offset,
- val);
+ operand.alignment, val);
p->tree->node = val;
}
}

Powered by Google App Engine
This is Rietveld 408576698