| 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 #include "src/messages.h" | 6 #include "src/messages.h" |
| 7 #include "src/runtime/runtime.h" | 7 #include "src/runtime/runtime.h" |
| 8 #include "src/signature.h" | 8 #include "src/signature.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 CASE_I32x4_OP(AddHoriz, "add_horizontal") | 207 CASE_I32x4_OP(AddHoriz, "add_horizontal") |
| 208 CASE_I16x8_OP(AddHoriz, "add_horizontal") | 208 CASE_I16x8_OP(AddHoriz, "add_horizontal") |
| 209 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") | 209 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") |
| 210 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") | 210 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") |
| 211 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") | 211 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") |
| 212 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") | 212 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") |
| 213 CASE_S128_OP(And, "and") | 213 CASE_S128_OP(And, "and") |
| 214 CASE_S128_OP(Or, "or") | 214 CASE_S128_OP(Or, "or") |
| 215 CASE_S128_OP(Xor, "xor") | 215 CASE_S128_OP(Xor, "xor") |
| 216 CASE_S128_OP(Not, "not") | 216 CASE_S128_OP(Not, "not") |
| 217 CASE_S32x4_OP(ZipLeft, "zip left") | 217 CASE_S32x4_OP(Shuffle, "shuffle") |
| 218 CASE_S32x4_OP(ZipRight, "zip right") | |
| 219 CASE_S32x4_OP(UnzipLeft, "unzip left") | |
| 220 CASE_S32x4_OP(UnzipRight, "unzip right") | |
| 221 CASE_S32x4_OP(TransposeLeft, "transpose left") | |
| 222 CASE_S32x4_OP(TransposeRight, "transpose right") | |
| 223 CASE_S32x4_OP(Select, "select") | 218 CASE_S32x4_OP(Select, "select") |
| 224 CASE_S16x8_OP(ZipLeft, "zip left") | 219 CASE_S16x8_OP(Shuffle, "shuffle") |
| 225 CASE_S16x8_OP(ZipRight, "zip right") | |
| 226 CASE_S16x8_OP(UnzipLeft, "unzip left") | |
| 227 CASE_S16x8_OP(UnzipRight, "unzip right") | |
| 228 CASE_S16x8_OP(TransposeLeft, "transpose left") | |
| 229 CASE_S16x8_OP(TransposeRight, "transpose right") | |
| 230 CASE_S16x8_OP(Select, "select") | 220 CASE_S16x8_OP(Select, "select") |
| 231 CASE_S8x16_OP(ZipLeft, "zip left") | 221 CASE_S8x16_OP(Shuffle, "shuffle") |
| 232 CASE_S8x16_OP(ZipRight, "zip right") | |
| 233 CASE_S8x16_OP(UnzipLeft, "unzip left") | |
| 234 CASE_S8x16_OP(UnzipRight, "unzip right") | |
| 235 CASE_S8x16_OP(TransposeLeft, "transpose left") | |
| 236 CASE_S8x16_OP(TransposeRight, "transpose right") | |
| 237 CASE_S8x16_OP(Select, "select") | 222 CASE_S8x16_OP(Select, "select") |
| 238 CASE_S8x16_OP(Concat, "concat") | |
| 239 CASE_OP(S32x2Reverse, "32x2 reverse") | |
| 240 CASE_OP(S16x4Reverse, "16x4 reverse") | |
| 241 CASE_OP(S16x2Reverse, "16x2 reverse") | |
| 242 CASE_OP(S8x8Reverse, "8x8 reverse") | |
| 243 CASE_OP(S8x4Reverse, "8x4 reverse") | |
| 244 CASE_OP(S8x2Reverse, "8x2 reverse") | |
| 245 CASE_S1x4_OP(And, "and") | 223 CASE_S1x4_OP(And, "and") |
| 246 CASE_S1x4_OP(Or, "or") | 224 CASE_S1x4_OP(Or, "or") |
| 247 CASE_S1x4_OP(Xor, "xor") | 225 CASE_S1x4_OP(Xor, "xor") |
| 248 CASE_S1x4_OP(Not, "not") | 226 CASE_S1x4_OP(Not, "not") |
| 249 CASE_S1x4_OP(AnyTrue, "any_true") | 227 CASE_S1x4_OP(AnyTrue, "any_true") |
| 250 CASE_S1x4_OP(AllTrue, "all_true") | 228 CASE_S1x4_OP(AllTrue, "all_true") |
| 251 CASE_S1x8_OP(And, "and") | 229 CASE_S1x8_OP(And, "and") |
| 252 CASE_S1x8_OP(Or, "or") | 230 CASE_S1x8_OP(Or, "or") |
| 253 CASE_S1x8_OP(Xor, "xor") | 231 CASE_S1x8_OP(Xor, "xor") |
| 254 CASE_S1x8_OP(Not, "not") | 232 CASE_S1x8_OP(Not, "not") |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 return MessageTemplate::kNone; | 420 return MessageTemplate::kNone; |
| 443 } | 421 } |
| 444 } | 422 } |
| 445 | 423 |
| 446 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { | 424 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { |
| 447 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); | 425 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); |
| 448 } | 426 } |
| 449 } // namespace wasm | 427 } // namespace wasm |
| 450 } // namespace internal | 428 } // namespace internal |
| 451 } // namespace v8 | 429 } // namespace v8 |
| OLD | NEW |