Index: src/wasm/ast-decoder.cc |
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc |
index 80af396021245b2642b4661a250aa332a8a2f74f..d55fa3995097cc975e8a5e45f263c290a97debf3 100644 |
--- a/src/wasm/ast-decoder.cc |
+++ b/src/wasm/ast-decoder.cc |
@@ -401,7 +401,7 @@ class WasmDecoder : public Decoder { |
FOREACH_STORE_MEM_OPCODE(DECLARE_OPCODE_CASE) |
#undef DECLARE_OPCODE_CASE |
{ |
- MemoryAccessOperand operand(this, pc); |
+ MemoryAccessOperand operand(this, pc, MachineType::None()); |
return 1 + operand.length; |
} |
case kExprBr: |
@@ -1373,7 +1373,8 @@ class WasmFullDecoder : public WasmDecoder { |
} |
int DecodeLoadMem(LocalType type, MachineType mem_type) { |
- MemoryAccessOperand operand(this, pc_); |
+ MemoryAccessOperand operand(this, pc_, mem_type); |
+ |
Value index = Pop(0, kAstI32); |
TFNode* node = BUILD(LoadMem, type, mem_type, index.node, operand.offset, |
operand.alignment, position()); |
@@ -1382,7 +1383,7 @@ class WasmFullDecoder : public WasmDecoder { |
} |
int DecodeStoreMem(LocalType type, MachineType mem_type) { |
- MemoryAccessOperand operand(this, pc_); |
+ MemoryAccessOperand operand(this, pc_, mem_type); |
Value val = Pop(1, type); |
Value index = Pop(0, kAstI32); |
BUILD(StoreMem, mem_type, index.node, operand.offset, operand.alignment, |