OLD | NEW |
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 #include "src/wasm/wasm-opcodes.h" | 5 #include "src/wasm/wasm-opcodes.h" |
6 | 6 |
7 #include <array> | 7 #include <array> |
8 | 8 |
9 #include "src/base/template-utils.h" | 9 #include "src/base/template-utils.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 CASE_I16x8_OP(AddHoriz, "add_horizontal") | 212 CASE_I16x8_OP(AddHoriz, "add_horizontal") |
213 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") | 213 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") |
214 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") | 214 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") |
215 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") | 215 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") |
216 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") | 216 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") |
217 CASE_S128_OP(And, "and") | 217 CASE_S128_OP(And, "and") |
218 CASE_S128_OP(Or, "or") | 218 CASE_S128_OP(Or, "or") |
219 CASE_S128_OP(Xor, "xor") | 219 CASE_S128_OP(Xor, "xor") |
220 CASE_S128_OP(Not, "not") | 220 CASE_S128_OP(Not, "not") |
221 CASE_S128_OP(Select, "select") | 221 CASE_S128_OP(Select, "select") |
222 CASE_S32x4_OP(Shuffle, "shuffle") | |
223 CASE_S16x8_OP(Shuffle, "shuffle") | |
224 CASE_S8x16_OP(Shuffle, "shuffle") | 222 CASE_S8x16_OP(Shuffle, "shuffle") |
225 CASE_S1x4_OP(AnyTrue, "any_true") | 223 CASE_S1x4_OP(AnyTrue, "any_true") |
226 CASE_S1x4_OP(AllTrue, "all_true") | 224 CASE_S1x4_OP(AllTrue, "all_true") |
227 CASE_S1x8_OP(AnyTrue, "any_true") | 225 CASE_S1x8_OP(AnyTrue, "any_true") |
228 CASE_S1x8_OP(AllTrue, "all_true") | 226 CASE_S1x8_OP(AllTrue, "all_true") |
229 CASE_S1x16_OP(AnyTrue, "any_true") | 227 CASE_S1x16_OP(AnyTrue, "any_true") |
230 CASE_S1x16_OP(AllTrue, "all_true") | 228 CASE_S1x16_OP(AllTrue, "all_true") |
231 | 229 |
232 // Atomic operations. | 230 // Atomic operations. |
233 CASE_L32_OP(AtomicAdd, "atomic_add") | 231 CASE_L32_OP(AtomicAdd, "atomic_add") |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 return MessageTemplate::kNone; | 412 return MessageTemplate::kNone; |
415 } | 413 } |
416 } | 414 } |
417 | 415 |
418 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { | 416 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { |
419 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); | 417 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); |
420 } | 418 } |
421 } // namespace wasm | 419 } // namespace wasm |
422 } // namespace internal | 420 } // namespace internal |
423 } // namespace v8 | 421 } // namespace v8 |
OLD | NEW |