Index: src/wasm/wasm-macro-gen.h |
diff --git a/src/wasm/wasm-macro-gen.h b/src/wasm/wasm-macro-gen.h |
index beb94316c3297a583a08e257949fcdac9c82307f..6245f341bf76e4a3860d342ea47ace7cc05ef80b 100644 |
--- a/src/wasm/wasm-macro-gen.h |
+++ b/src/wasm/wasm-macro-gen.h |
@@ -19,6 +19,9 @@ |
#define FUNC_INDEX(v) U32V_1(v) |
#define NAME_OFFSET(v) U32_LE(v) |
+#define ZERO_ALIGNMENT 0 |
+#define ZERO_OFFSET 0 |
+ |
#define BR_TARGET(v) U32_LE(v) |
#define MASK_7 ((1 << 7) - 1) |
@@ -325,21 +328,19 @@ class LocalDeclEncoder { |
#define WASM_LOAD_MEM(type, index) \ |
static_cast<byte>( \ |
v8::internal::wasm::WasmOpcodes::LoadStoreOpcodeOf(type, false)), \ |
- v8::internal::wasm::WasmOpcodes::LoadStoreAccessOf(false), index |
+ ZERO_ALIGNMENT, ZERO_OFFSET, index |
#define WASM_STORE_MEM(type, index, val) \ |
static_cast<byte>( \ |
v8::internal::wasm::WasmOpcodes::LoadStoreOpcodeOf(type, true)), \ |
- v8::internal::wasm::WasmOpcodes::LoadStoreAccessOf(false), index, val |
+ ZERO_ALIGNMENT, ZERO_OFFSET, index, val |
#define WASM_LOAD_MEM_OFFSET(type, offset, index) \ |
static_cast<byte>( \ |
v8::internal::wasm::WasmOpcodes::LoadStoreOpcodeOf(type, false)), \ |
- v8::internal::wasm::WasmOpcodes::LoadStoreAccessOf(true), \ |
- static_cast<byte>(offset), index |
+ ZERO_ALIGNMENT, U32V_1(offset), index |
#define WASM_STORE_MEM_OFFSET(type, offset, index, val) \ |
static_cast<byte>( \ |
v8::internal::wasm::WasmOpcodes::LoadStoreOpcodeOf(type, true)), \ |
- v8::internal::wasm::WasmOpcodes::LoadStoreAccessOf(true), \ |
- static_cast<byte>(offset), index, val |
+ ZERO_ALIGNMENT, U32V_1(offset), index, val |
#define WASM_CALL_FUNCTION(index, ...) \ |
kExprCallFunction, static_cast<byte>(index), __VA_ARGS__ |
#define WASM_CALL_IMPORT(index, ...) \ |