Chromium Code Reviews

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: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/wasm/ast-decoder.cc
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc
index 78f50739dd8b4d999ac344379b5e5268404d9261..a27c3dca62613a1bd200ebea0debf52ff11548d6 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.aligned);
}
}
@@ -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.aligned, val);
p->tree->node = val;
}
}
« src/compiler/mips/code-generator-mips.cc ('K') | « src/mips/macro-assembler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine