| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 CASE_I32x4_OP(AddHoriz, "add_horizontal") | 211 CASE_I32x4_OP(AddHoriz, "add_horizontal") |
| 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_S32x4_OP(Shuffle, "shuffle") | 222 CASE_S32x4_OP(Shuffle, "shuffle") |
| 222 CASE_S32x4_OP(Select, "select") | |
| 223 CASE_S16x8_OP(Shuffle, "shuffle") | 223 CASE_S16x8_OP(Shuffle, "shuffle") |
| 224 CASE_S16x8_OP(Select, "select") | |
| 225 CASE_S8x16_OP(Shuffle, "shuffle") | 224 CASE_S8x16_OP(Shuffle, "shuffle") |
| 226 CASE_S8x16_OP(Select, "select") | |
| 227 CASE_S1x4_OP(And, "and") | |
| 228 CASE_S1x4_OP(Or, "or") | |
| 229 CASE_S1x4_OP(Xor, "xor") | |
| 230 CASE_S1x4_OP(Not, "not") | |
| 231 CASE_S1x4_OP(AnyTrue, "any_true") | 225 CASE_S1x4_OP(AnyTrue, "any_true") |
| 232 CASE_S1x4_OP(AllTrue, "all_true") | 226 CASE_S1x4_OP(AllTrue, "all_true") |
| 233 CASE_S1x8_OP(And, "and") | |
| 234 CASE_S1x8_OP(Or, "or") | |
| 235 CASE_S1x8_OP(Xor, "xor") | |
| 236 CASE_S1x8_OP(Not, "not") | |
| 237 CASE_S1x8_OP(AnyTrue, "any_true") | 227 CASE_S1x8_OP(AnyTrue, "any_true") |
| 238 CASE_S1x8_OP(AllTrue, "all_true") | 228 CASE_S1x8_OP(AllTrue, "all_true") |
| 239 CASE_S1x16_OP(And, "and") | |
| 240 CASE_S1x16_OP(Or, "or") | |
| 241 CASE_S1x16_OP(Xor, "xor") | |
| 242 CASE_S1x16_OP(Not, "not") | |
| 243 CASE_S1x16_OP(AnyTrue, "any_true") | 229 CASE_S1x16_OP(AnyTrue, "any_true") |
| 244 CASE_S1x16_OP(AllTrue, "all_true") | 230 CASE_S1x16_OP(AllTrue, "all_true") |
| 245 | 231 |
| 246 // Atomic operations. | 232 // Atomic operations. |
| 247 CASE_L32_OP(AtomicAdd, "atomic_add") | 233 CASE_L32_OP(AtomicAdd, "atomic_add") |
| 248 CASE_L32_OP(AtomicAnd, "atomic_and") | 234 CASE_L32_OP(AtomicAnd, "atomic_and") |
| 249 CASE_L32_OP(AtomicCompareExchange, "atomic_cmpxchng") | 235 CASE_L32_OP(AtomicCompareExchange, "atomic_cmpxchng") |
| 250 CASE_L32_OP(AtomicExchange, "atomic_xchng") | 236 CASE_L32_OP(AtomicExchange, "atomic_xchng") |
| 251 CASE_L32_OP(AtomicOr, "atomic_or") | 237 CASE_L32_OP(AtomicOr, "atomic_or") |
| 252 CASE_L32_OP(AtomicSub, "atomic_sub") | 238 CASE_L32_OP(AtomicSub, "atomic_sub") |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 return MessageTemplate::kNone; | 414 return MessageTemplate::kNone; |
| 429 } | 415 } |
| 430 } | 416 } |
| 431 | 417 |
| 432 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { | 418 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { |
| 433 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); | 419 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); |
| 434 } | 420 } |
| 435 } // namespace wasm | 421 } // namespace wasm |
| 436 } // namespace internal | 422 } // namespace internal |
| 437 } // namespace v8 | 423 } // namespace v8 |
| OLD | NEW |