OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 #include "src/wasm/wasm-text.h" | 5 #include "src/wasm/wasm-text.h" |
6 | 6 |
7 #include "src/debug/interface-types.h" | 7 #include "src/debug/interface-types.h" |
8 #include "src/objects-inl.h" | 8 #include "src/objects-inl.h" |
9 #include "src/ostreams.h" | 9 #include "src/ostreams.h" |
10 #include "src/vector.h" | 10 #include "src/vector.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 break; | 188 break; |
189 | 189 |
190 // This group is just printed by their internal opcode name, as they | 190 // This group is just printed by their internal opcode name, as they |
191 // should never be shown to end-users. | 191 // should never be shown to end-users. |
192 FOREACH_ASMJS_COMPAT_OPCODE(CASE_OPCODE) | 192 FOREACH_ASMJS_COMPAT_OPCODE(CASE_OPCODE) |
193 // TODO(wasm): Add correct printing for SIMD and atomic opcodes once | 193 // TODO(wasm): Add correct printing for SIMD and atomic opcodes once |
194 // they are publicly available. | 194 // they are publicly available. |
195 FOREACH_SIMD_0_OPERAND_OPCODE(CASE_OPCODE) | 195 FOREACH_SIMD_0_OPERAND_OPCODE(CASE_OPCODE) |
196 FOREACH_SIMD_1_OPERAND_OPCODE(CASE_OPCODE) | 196 FOREACH_SIMD_1_OPERAND_OPCODE(CASE_OPCODE) |
197 FOREACH_SIMD_MASK_OPERAND_OPCODE(CASE_OPCODE) | 197 FOREACH_SIMD_MASK_OPERAND_OPCODE(CASE_OPCODE) |
| 198 FOREACH_SIMD_MEM_OPCODE(CASE_OPCODE) |
198 FOREACH_ATOMIC_OPCODE(CASE_OPCODE) | 199 FOREACH_ATOMIC_OPCODE(CASE_OPCODE) |
199 os << WasmOpcodes::OpcodeName(opcode); | 200 os << WasmOpcodes::OpcodeName(opcode); |
200 break; | 201 break; |
201 | 202 |
202 default: | 203 default: |
203 UNREACHABLE(); | 204 UNREACHABLE(); |
204 break; | 205 break; |
205 } | 206 } |
206 os << '\n'; | 207 os << '\n'; |
207 ++line_nr; | 208 ++line_nr; |
208 } | 209 } |
209 DCHECK_EQ(0, control_depth); | 210 DCHECK_EQ(0, control_depth); |
210 DCHECK(i.ok()); | 211 DCHECK(i.ok()); |
211 } | 212 } |
OLD | NEW |