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

Side by Side Diff: src/wasm/wasm-opcodes.h

Issue 1763433002: [wasm] Rework encoding of local declarations. (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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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_OPCODES_H_ 5 #ifndef V8_WASM_OPCODES_H_
6 #define V8_WASM_OPCODES_H_ 6 #define V8_WASM_OPCODES_H_
7 7
8 #include "src/machine-type.h" 8 #include "src/machine-type.h"
9 #include "src/signature.h" 9 #include "src/signature.h"
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 V(I32Const, 0x0a, _) \ 90 V(I32Const, 0x0a, _) \
91 V(I64Const, 0x0b, _) \ 91 V(I64Const, 0x0b, _) \
92 V(F64Const, 0x0c, _) \ 92 V(F64Const, 0x0c, _) \
93 V(F32Const, 0x0d, _) \ 93 V(F32Const, 0x0d, _) \
94 V(GetLocal, 0x0e, _) \ 94 V(GetLocal, 0x0e, _) \
95 V(SetLocal, 0x0f, _) \ 95 V(SetLocal, 0x0f, _) \
96 V(LoadGlobal, 0x10, _) \ 96 V(LoadGlobal, 0x10, _) \
97 V(StoreGlobal, 0x11, _) \ 97 V(StoreGlobal, 0x11, _) \
98 V(CallFunction, 0x12, _) \ 98 V(CallFunction, 0x12, _) \
99 V(CallIndirect, 0x13, _) \ 99 V(CallIndirect, 0x13, _) \
100 V(CallImport, 0x1F, _) 100 V(CallImport, 0x1F, _) \
101 V(DeclLocals, 0x1E, _)
101 102
102 // Load memory expressions. 103 // Load memory expressions.
103 #define FOREACH_LOAD_MEM_OPCODE(V) \ 104 #define FOREACH_LOAD_MEM_OPCODE(V) \
104 V(I32LoadMem8S, 0x20, i_i) \ 105 V(I32LoadMem8S, 0x20, i_i) \
105 V(I32LoadMem8U, 0x21, i_i) \ 106 V(I32LoadMem8U, 0x21, i_i) \
106 V(I32LoadMem16S, 0x22, i_i) \ 107 V(I32LoadMem16S, 0x22, i_i) \
107 V(I32LoadMem16U, 0x23, i_i) \ 108 V(I32LoadMem16U, 0x23, i_i) \
108 V(I64LoadMem8S, 0x24, l_i) \ 109 V(I64LoadMem8S, 0x24, l_i) \
109 V(I64LoadMem8U, 0x25, l_i) \ 110 V(I64LoadMem8U, 0x25, l_i) \
110 V(I64LoadMem16S, 0x26, l_i) \ 111 V(I64LoadMem16S, 0x26, l_i) \
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 default: 470 default:
470 return "<unknown>"; 471 return "<unknown>";
471 } 472 }
472 } 473 }
473 }; 474 };
474 } // namespace wasm 475 } // namespace wasm
475 } // namespace internal 476 } // namespace internal
476 } // namespace v8 477 } // namespace v8
477 478
478 #endif // V8_WASM_OPCODES_H_ 479 #endif // V8_WASM_OPCODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698