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(Sqrt, "sqrt") | |
179 CASE_F32x4_OP(Div, "div") | |
180 CASE_F32x4_OP(RecipApprox, "recip_approx") | 178 CASE_F32x4_OP(RecipApprox, "recip_approx") |
181 CASE_F32x4_OP(RecipRefine, "recip_refine") | |
182 CASE_F32x4_OP(RecipSqrtApprox, "recip_sqrt_approx") | 179 CASE_F32x4_OP(RecipSqrtApprox, "recip_sqrt_approx") |
183 CASE_F32x4_OP(RecipSqrtRefine, "recip_sqrt_refine") | |
184 CASE_F32x4_OP(Min, "min") | 180 CASE_F32x4_OP(Min, "min") |
185 CASE_F32x4_OP(Max, "max") | 181 CASE_F32x4_OP(Max, "max") |
186 CASE_F32x4_OP(MinNum, "min_num") | |
187 CASE_F32x4_OP(MaxNum, "max_num") | |
188 CASE_F32x4_OP(Lt, "lt") | 182 CASE_F32x4_OP(Lt, "lt") |
189 CASE_F32x4_OP(Le, "le") | 183 CASE_F32x4_OP(Le, "le") |
190 CASE_F32x4_OP(Gt, "gt") | 184 CASE_F32x4_OP(Gt, "gt") |
191 CASE_F32x4_OP(Ge, "ge") | 185 CASE_F32x4_OP(Ge, "ge") |
192 CASE_CONVERT_OP(Convert, F32x4, I32x4, "i32", "convert") | 186 CASE_CONVERT_OP(Convert, F32x4, I32x4, "i32", "convert") |
193 CASE_CONVERT_OP(Convert, I32x4, F32x4, "f32", "convert") | 187 CASE_CONVERT_OP(Convert, I32x4, F32x4, "f32", "convert") |
194 CASE_CONVERT_OP(Convert, I32x4, I16x8Low, "i32", "convert") | 188 CASE_CONVERT_OP(Convert, I32x4, I16x8Low, "i32", "convert") |
195 CASE_CONVERT_OP(Convert, I32x4, I16x8High, "i32", "convert") | 189 CASE_CONVERT_OP(Convert, I32x4, I16x8High, "i32", "convert") |
196 CASE_CONVERT_OP(Convert, I16x8, I32x4, "i32", "convert") | 190 CASE_CONVERT_OP(Convert, I16x8, I32x4, "i32", "convert") |
197 CASE_CONVERT_OP(Convert, I16x8, I8x16Low, "i32", "convert") | 191 CASE_CONVERT_OP(Convert, I16x8, I8x16Low, "i32", "convert") |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 return MessageTemplate::kNone; | 396 return MessageTemplate::kNone; |
403 } | 397 } |
404 } | 398 } |
405 | 399 |
406 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { | 400 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { |
407 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); | 401 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); |
408 } | 402 } |
409 } // namespace wasm | 403 } // namespace wasm |
410 } // namespace internal | 404 } // namespace internal |
411 } // namespace v8 | 405 } // namespace v8 |
OLD | NEW |