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

Side by Side Diff: src/wasm/wasm-macro-gen.h

Issue 2209433002: [wasm] Make LoadGlobal/StoreGlobal opcodes match what is coming in binary 0xC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « src/wasm/wasm-interpreter.cc ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_WASM_MACRO_GEN_H_ 5 #ifndef V8_WASM_MACRO_GEN_H_
6 #define V8_WASM_MACRO_GEN_H_ 6 #define V8_WASM_MACRO_GEN_H_
7 7
8 #include "src/wasm/wasm-opcodes.h" 8 #include "src/wasm/wasm-opcodes.h"
9 9
10 #include "src/zone-containers.h" 10 #include "src/zone-containers.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 kExprF64Const, static_cast<byte>(bit_cast<uint64_t>(val)), \ 336 kExprF64Const, static_cast<byte>(bit_cast<uint64_t>(val)), \
337 static_cast<byte>(bit_cast<uint64_t>(val) >> 8), \ 337 static_cast<byte>(bit_cast<uint64_t>(val) >> 8), \
338 static_cast<byte>(bit_cast<uint64_t>(val) >> 16), \ 338 static_cast<byte>(bit_cast<uint64_t>(val) >> 16), \
339 static_cast<byte>(bit_cast<uint64_t>(val) >> 24), \ 339 static_cast<byte>(bit_cast<uint64_t>(val) >> 24), \
340 static_cast<byte>(bit_cast<uint64_t>(val) >> 32), \ 340 static_cast<byte>(bit_cast<uint64_t>(val) >> 32), \
341 static_cast<byte>(bit_cast<uint64_t>(val) >> 40), \ 341 static_cast<byte>(bit_cast<uint64_t>(val) >> 40), \
342 static_cast<byte>(bit_cast<uint64_t>(val) >> 48), \ 342 static_cast<byte>(bit_cast<uint64_t>(val) >> 48), \
343 static_cast<byte>(bit_cast<uint64_t>(val) >> 56) 343 static_cast<byte>(bit_cast<uint64_t>(val) >> 56)
344 #define WASM_GET_LOCAL(index) kExprGetLocal, static_cast<byte>(index) 344 #define WASM_GET_LOCAL(index) kExprGetLocal, static_cast<byte>(index)
345 #define WASM_SET_LOCAL(index, val) val, kExprSetLocal, static_cast<byte>(index) 345 #define WASM_SET_LOCAL(index, val) val, kExprSetLocal, static_cast<byte>(index)
346 #define WASM_LOAD_GLOBAL(index) kExprLoadGlobal, static_cast<byte>(index) 346 #define WASM_GET_GLOBAL(index) kExprGetGlobal, static_cast<byte>(index)
347 #define WASM_STORE_GLOBAL(index, val) \ 347 #define WASM_SET_GLOBAL(index, val) \
348 val, kExprStoreGlobal, static_cast<byte>(index) 348 val, kExprSetGlobal, static_cast<byte>(index)
349 #define WASM_LOAD_MEM(type, index) \ 349 #define WASM_LOAD_MEM(type, index) \
350 index, static_cast<byte>( \ 350 index, static_cast<byte>( \
351 v8::internal::wasm::WasmOpcodes::LoadStoreOpcodeOf(type, false)), \ 351 v8::internal::wasm::WasmOpcodes::LoadStoreOpcodeOf(type, false)), \
352 ZERO_ALIGNMENT, ZERO_OFFSET 352 ZERO_ALIGNMENT, ZERO_OFFSET
353 #define WASM_STORE_MEM(type, index, val) \ 353 #define WASM_STORE_MEM(type, index, val) \
354 index, val, \ 354 index, val, \
355 static_cast<byte>( \ 355 static_cast<byte>( \
356 v8::internal::wasm::WasmOpcodes::LoadStoreOpcodeOf(type, true)), \ 356 v8::internal::wasm::WasmOpcodes::LoadStoreOpcodeOf(type, true)), \
357 ZERO_ALIGNMENT, ZERO_OFFSET 357 ZERO_ALIGNMENT, ZERO_OFFSET
358 #define WASM_LOAD_MEM_OFFSET(type, offset, index) \ 358 #define WASM_LOAD_MEM_OFFSET(type, offset, index) \
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 #define SIG_ENTRY_x(r) kWasmFunctionTypeForm, 0, 1, r 599 #define SIG_ENTRY_x(r) kWasmFunctionTypeForm, 0, 1, r
600 #define SIG_ENTRY_x_x(r, a) kWasmFunctionTypeForm, 1, a, 1, r 600 #define SIG_ENTRY_x_x(r, a) kWasmFunctionTypeForm, 1, a, 1, r
601 #define SIG_ENTRY_x_xx(r, a, b) kWasmFunctionTypeForm, 2, a, b, 1, r 601 #define SIG_ENTRY_x_xx(r, a, b) kWasmFunctionTypeForm, 2, a, b, 1, r
602 #define SIG_ENTRY_x_xxx(r, a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 1, r 602 #define SIG_ENTRY_x_xxx(r, a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 1, r
603 #define SIZEOF_SIG_ENTRY_x 4 603 #define SIZEOF_SIG_ENTRY_x 4
604 #define SIZEOF_SIG_ENTRY_x_x 5 604 #define SIZEOF_SIG_ENTRY_x_x 5
605 #define SIZEOF_SIG_ENTRY_x_xx 6 605 #define SIZEOF_SIG_ENTRY_x_xx 6
606 #define SIZEOF_SIG_ENTRY_x_xxx 7 606 #define SIZEOF_SIG_ENTRY_x_xxx 7
607 607
608 #endif // V8_WASM_MACRO_GEN_H_ 608 #endif // V8_WASM_MACRO_GEN_H_
OLDNEW
« no previous file with comments | « src/wasm/wasm-interpreter.cc ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698