| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 os << WasmOpcodes::OpcodeName(opcode); | 187 os << WasmOpcodes::OpcodeName(opcode); |
| 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_ATOMIC_OPCODE(CASE_OPCODE) | 198 FOREACH_ATOMIC_OPCODE(CASE_OPCODE) |
| 198 os << WasmOpcodes::OpcodeName(opcode); | 199 os << WasmOpcodes::OpcodeName(opcode); |
| 199 break; | 200 break; |
| 200 | 201 |
| 201 default: | 202 default: |
| 202 UNREACHABLE(); | 203 UNREACHABLE(); |
| 203 break; | 204 break; |
| 204 } | 205 } |
| 205 os << '\n'; | 206 os << '\n'; |
| 206 ++line_nr; | 207 ++line_nr; |
| 207 } | 208 } |
| 208 DCHECK_EQ(0, control_depth); | 209 DCHECK_EQ(0, control_depth); |
| 209 DCHECK(i.ok()); | 210 DCHECK(i.ok()); |
| 210 } | 211 } |
| OLD | NEW |