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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 // SIMD opcodes. | 169 // SIMD opcodes. |
170 CASE_SIMD_OP(Splat, "splat") | 170 CASE_SIMD_OP(Splat, "splat") |
171 CASE_SIMD_OP(Neg, "neg") | 171 CASE_SIMD_OP(Neg, "neg") |
172 CASE_SIMD_OP(Eq, "eq") | 172 CASE_SIMD_OP(Eq, "eq") |
173 CASE_SIMD_OP(Ne, "ne") | 173 CASE_SIMD_OP(Ne, "ne") |
174 CASE_SIMD_OP(Add, "add") | 174 CASE_SIMD_OP(Add, "add") |
175 CASE_SIMD_OP(Sub, "sub") | 175 CASE_SIMD_OP(Sub, "sub") |
176 CASE_SIMD_OP(Mul, "mul") | 176 CASE_SIMD_OP(Mul, "mul") |
177 CASE_F32x4_OP(Abs, "abs") | 177 CASE_F32x4_OP(Abs, "abs") |
| 178 CASE_F32x4_OP(AddHoriz, "add_horizontal") |
178 CASE_F32x4_OP(Sqrt, "sqrt") | 179 CASE_F32x4_OP(Sqrt, "sqrt") |
179 CASE_F32x4_OP(Div, "div") | 180 CASE_F32x4_OP(Div, "div") |
180 CASE_F32x4_OP(RecipApprox, "recip_approx") | 181 CASE_F32x4_OP(RecipApprox, "recip_approx") |
181 CASE_F32x4_OP(RecipRefine, "recip_refine") | 182 CASE_F32x4_OP(RecipRefine, "recip_refine") |
182 CASE_F32x4_OP(RecipSqrtApprox, "recip_sqrt_approx") | 183 CASE_F32x4_OP(RecipSqrtApprox, "recip_sqrt_approx") |
183 CASE_F32x4_OP(RecipSqrtRefine, "recip_sqrt_refine") | 184 CASE_F32x4_OP(RecipSqrtRefine, "recip_sqrt_refine") |
184 CASE_F32x4_OP(Min, "min") | 185 CASE_F32x4_OP(Min, "min") |
185 CASE_F32x4_OP(Max, "max") | 186 CASE_F32x4_OP(Max, "max") |
186 CASE_F32x4_OP(MinNum, "min_num") | 187 CASE_F32x4_OP(MinNum, "min_num") |
187 CASE_F32x4_OP(MaxNum, "max_num") | 188 CASE_F32x4_OP(MaxNum, "max_num") |
(...skipping 14 matching lines...) Expand all Loading... |
202 CASE_SIMDI_OP(ExtractLane, "extract_lane") | 203 CASE_SIMDI_OP(ExtractLane, "extract_lane") |
203 CASE_SIMDI_OP(ReplaceLane, "replace_lane") | 204 CASE_SIMDI_OP(ReplaceLane, "replace_lane") |
204 CASE_SIGN_OP(SIMDI, Min, "min") | 205 CASE_SIGN_OP(SIMDI, Min, "min") |
205 CASE_SIGN_OP(SIMDI, Max, "max") | 206 CASE_SIGN_OP(SIMDI, Max, "max") |
206 CASE_SIGN_OP(SIMDI, Lt, "lt") | 207 CASE_SIGN_OP(SIMDI, Lt, "lt") |
207 CASE_SIGN_OP(SIMDI, Le, "le") | 208 CASE_SIGN_OP(SIMDI, Le, "le") |
208 CASE_SIGN_OP(SIMDI, Gt, "gt") | 209 CASE_SIGN_OP(SIMDI, Gt, "gt") |
209 CASE_SIGN_OP(SIMDI, Ge, "ge") | 210 CASE_SIGN_OP(SIMDI, Ge, "ge") |
210 CASE_SIGN_OP(SIMDI, Shr, "shr") | 211 CASE_SIGN_OP(SIMDI, Shr, "shr") |
211 CASE_SIMDI_OP(Shl, "shl") | 212 CASE_SIMDI_OP(Shl, "shl") |
| 213 CASE_SIMDI_OP(AddHoriz, "add_horizontal") |
212 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") | 214 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") |
213 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") | 215 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") |
214 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") | 216 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") |
215 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") | 217 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") |
216 CASE_S128_OP(And, "and") | 218 CASE_S128_OP(And, "and") |
217 CASE_S128_OP(Or, "or") | 219 CASE_S128_OP(Or, "or") |
218 CASE_S128_OP(Xor, "xor") | 220 CASE_S128_OP(Xor, "xor") |
219 CASE_S128_OP(Not, "not") | 221 CASE_S128_OP(Not, "not") |
220 CASE_S32x4_OP(ZipLeft, "zip left") | 222 CASE_S32x4_OP(ZipLeft, "zip left") |
221 CASE_S32x4_OP(ZipRight, "zip right") | 223 CASE_S32x4_OP(ZipRight, "zip right") |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 return MessageTemplate::kNone; | 423 return MessageTemplate::kNone; |
422 } | 424 } |
423 } | 425 } |
424 | 426 |
425 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { | 427 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { |
426 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); | 428 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); |
427 } | 429 } |
428 } // namespace wasm | 430 } // namespace wasm |
429 } // namespace internal | 431 } // namespace internal |
430 } // namespace v8 | 432 } // namespace v8 |
OLD | NEW |