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

Side by Side Diff: src/wasm/wasm-opcodes.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-macro-gen.h ('k') | test/cctest/wasm/test-run-wasm.cc » ('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_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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 V(I32Const, 0x10, _) \ 62 V(I32Const, 0x10, _) \
63 V(I64Const, 0x11, _) \ 63 V(I64Const, 0x11, _) \
64 V(F64Const, 0x12, _) \ 64 V(F64Const, 0x12, _) \
65 V(F32Const, 0x13, _) \ 65 V(F32Const, 0x13, _) \
66 V(GetLocal, 0x14, _) \ 66 V(GetLocal, 0x14, _) \
67 V(SetLocal, 0x15, _) \ 67 V(SetLocal, 0x15, _) \
68 V(CallFunction, 0x16, _) \ 68 V(CallFunction, 0x16, _) \
69 V(CallIndirect, 0x17, _) \ 69 V(CallIndirect, 0x17, _) \
70 V(CallImport, 0x18, _) \ 70 V(CallImport, 0x18, _) \
71 V(I8Const, 0xcb, _) \ 71 V(I8Const, 0xcb, _) \
72 V(LoadGlobal, 0xcc, _) \ 72 V(GetGlobal, 0xbb, _) \
73 V(StoreGlobal, 0xcd, _) 73 V(SetGlobal, 0xbc, _)
74 74
75 // Load memory expressions. 75 // Load memory expressions.
76 #define FOREACH_LOAD_MEM_OPCODE(V) \ 76 #define FOREACH_LOAD_MEM_OPCODE(V) \
77 V(I32LoadMem8S, 0x20, i_i) \ 77 V(I32LoadMem8S, 0x20, i_i) \
78 V(I32LoadMem8U, 0x21, i_i) \ 78 V(I32LoadMem8U, 0x21, i_i) \
79 V(I32LoadMem16S, 0x22, i_i) \ 79 V(I32LoadMem16S, 0x22, i_i) \
80 V(I32LoadMem16U, 0x23, i_i) \ 80 V(I32LoadMem16U, 0x23, i_i) \
81 V(I64LoadMem8S, 0x24, l_i) \ 81 V(I64LoadMem8S, 0x24, l_i) \
82 V(I64LoadMem8U, 0x25, l_i) \ 82 V(I64LoadMem8U, 0x25, l_i) \
83 V(I64LoadMem16S, 0x26, l_i) \ 83 V(I64LoadMem16S, 0x26, l_i) \
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 default: 633 default:
634 return "<unknown>"; 634 return "<unknown>";
635 } 635 }
636 } 636 }
637 }; 637 };
638 } // namespace wasm 638 } // namespace wasm
639 } // namespace internal 639 } // namespace internal
640 } // namespace v8 640 } // namespace v8
641 641
642 #endif // V8_WASM_OPCODES_H_ 642 #endif // V8_WASM_OPCODES_H_
OLDNEW
« no previous file with comments | « src/wasm/wasm-macro-gen.h ('k') | test/cctest/wasm/test-run-wasm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698