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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 CASE_F32x4_OP(Min, "min") | 184 CASE_F32x4_OP(Min, "min") |
185 CASE_F32x4_OP(Max, "max") | 185 CASE_F32x4_OP(Max, "max") |
186 CASE_F32x4_OP(MinNum, "min_num") | 186 CASE_F32x4_OP(MinNum, "min_num") |
187 CASE_F32x4_OP(MaxNum, "max_num") | 187 CASE_F32x4_OP(MaxNum, "max_num") |
188 CASE_F32x4_OP(Lt, "lt") | 188 CASE_F32x4_OP(Lt, "lt") |
189 CASE_F32x4_OP(Le, "le") | 189 CASE_F32x4_OP(Le, "le") |
190 CASE_F32x4_OP(Gt, "gt") | 190 CASE_F32x4_OP(Gt, "gt") |
191 CASE_F32x4_OP(Ge, "ge") | 191 CASE_F32x4_OP(Ge, "ge") |
192 CASE_CONVERT_OP(Convert, F32x4, I32x4, "i32", "convert") | 192 CASE_CONVERT_OP(Convert, F32x4, I32x4, "i32", "convert") |
193 CASE_CONVERT_OP(Convert, I32x4, F32x4, "f32", "convert") | 193 CASE_CONVERT_OP(Convert, I32x4, F32x4, "f32", "convert") |
| 194 CASE_CONVERT_OP(Convert, I32x4, I16x8Low, "i32", "convert") |
| 195 CASE_CONVERT_OP(Convert, I32x4, I16x8High, "i32", "convert") |
| 196 CASE_CONVERT_OP(Convert, I16x8, I32x4, "i32", "convert") |
| 197 CASE_CONVERT_OP(Convert, I16x8, I8x16Low, "i32", "convert") |
| 198 CASE_CONVERT_OP(Convert, I16x8, I8x16High, "i32", "convert") |
| 199 CASE_CONVERT_OP(Convert, I8x16, I16x8, "i32", "convert") |
194 CASE_F32x4_OP(ExtractLane, "extract_lane") | 200 CASE_F32x4_OP(ExtractLane, "extract_lane") |
195 CASE_F32x4_OP(ReplaceLane, "replace_lane") | 201 CASE_F32x4_OP(ReplaceLane, "replace_lane") |
196 CASE_SIMDI_OP(ExtractLane, "extract_lane") | 202 CASE_SIMDI_OP(ExtractLane, "extract_lane") |
197 CASE_SIMDI_OP(ReplaceLane, "replace_lane") | 203 CASE_SIMDI_OP(ReplaceLane, "replace_lane") |
198 CASE_SIGN_OP(SIMDI, Min, "min") | 204 CASE_SIGN_OP(SIMDI, Min, "min") |
199 CASE_SIGN_OP(SIMDI, Max, "max") | 205 CASE_SIGN_OP(SIMDI, Max, "max") |
200 CASE_SIGN_OP(SIMDI, Lt, "lt") | 206 CASE_SIGN_OP(SIMDI, Lt, "lt") |
201 CASE_SIGN_OP(SIMDI, Le, "le") | 207 CASE_SIGN_OP(SIMDI, Le, "le") |
202 CASE_SIGN_OP(SIMDI, Gt, "gt") | 208 CASE_SIGN_OP(SIMDI, Gt, "gt") |
203 CASE_SIGN_OP(SIMDI, Ge, "ge") | 209 CASE_SIGN_OP(SIMDI, Ge, "ge") |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 return MessageTemplate::kNone; | 402 return MessageTemplate::kNone; |
397 } | 403 } |
398 } | 404 } |
399 | 405 |
400 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { | 406 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { |
401 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); | 407 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); |
402 } | 408 } |
403 } // namespace wasm | 409 } // namespace wasm |
404 } // namespace internal | 410 } // namespace internal |
405 } // namespace v8 | 411 } // namespace v8 |
OLD | NEW |