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

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: Unaligned access simulate using load/shift/or and store/shift/and Created 4 years, 8 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 0d0c6e0fb0f3e83433895e408b02ee0a376cc938..be306097bbc54864bad4cb781014845b340d65a5 100644
--- a/src/wasm/ast-decoder.cc
+++ b/src/wasm/ast-decoder.cc
@@ -1323,8 +1323,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);
}
}
@@ -1338,7 +1338,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