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/compiler/wasm-compiler.h" | 5 #include "src/compiler/wasm-compiler.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "src/assembler-inl.h" | 9 #include "src/assembler-inl.h" |
10 #include "src/base/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
(...skipping 3362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3373 case wasm::kExprF32x4Abs: | 3373 case wasm::kExprF32x4Abs: |
3374 return graph()->NewNode(jsgraph()->machine()->Float32x4Abs(), inputs[0]); | 3374 return graph()->NewNode(jsgraph()->machine()->Float32x4Abs(), inputs[0]); |
3375 case wasm::kExprF32x4Neg: | 3375 case wasm::kExprF32x4Neg: |
3376 return graph()->NewNode(jsgraph()->machine()->Float32x4Neg(), inputs[0]); | 3376 return graph()->NewNode(jsgraph()->machine()->Float32x4Neg(), inputs[0]); |
3377 case wasm::kExprF32x4Add: | 3377 case wasm::kExprF32x4Add: |
3378 return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0], | 3378 return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0], |
3379 inputs[1]); | 3379 inputs[1]); |
3380 case wasm::kExprF32x4Sub: | 3380 case wasm::kExprF32x4Sub: |
3381 return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0], | 3381 return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0], |
3382 inputs[1]); | 3382 inputs[1]); |
| 3383 case wasm::kExprF32x4Mul: |
| 3384 return graph()->NewNode(jsgraph()->machine()->Float32x4Mul(), inputs[0], |
| 3385 inputs[1]); |
| 3386 case wasm::kExprF32x4Div: |
| 3387 return graph()->NewNode(jsgraph()->machine()->Float32x4Div(), inputs[0], |
| 3388 inputs[1]); |
| 3389 case wasm::kExprF32x4Min: |
| 3390 return graph()->NewNode(jsgraph()->machine()->Float32x4Min(), inputs[0], |
| 3391 inputs[1]); |
| 3392 case wasm::kExprF32x4Max: |
| 3393 return graph()->NewNode(jsgraph()->machine()->Float32x4Max(), inputs[0], |
| 3394 inputs[1]); |
3383 case wasm::kExprF32x4Eq: | 3395 case wasm::kExprF32x4Eq: |
3384 return graph()->NewNode(jsgraph()->machine()->Float32x4Equal(), inputs[0], | 3396 return graph()->NewNode(jsgraph()->machine()->Float32x4Equal(), inputs[0], |
3385 inputs[1]); | 3397 inputs[1]); |
3386 case wasm::kExprF32x4Ne: | 3398 case wasm::kExprF32x4Ne: |
3387 return graph()->NewNode(jsgraph()->machine()->Float32x4NotEqual(), | 3399 return graph()->NewNode(jsgraph()->machine()->Float32x4NotEqual(), |
3388 inputs[0], inputs[1]); | 3400 inputs[0], inputs[1]); |
3389 case wasm::kExprI32x4Splat: | 3401 case wasm::kExprI32x4Splat: |
3390 return graph()->NewNode(jsgraph()->machine()->Int32x4Splat(), inputs[0]); | 3402 return graph()->NewNode(jsgraph()->machine()->Int32x4Splat(), inputs[0]); |
3391 case wasm::kExprI32x4SConvertF32x4: | 3403 case wasm::kExprI32x4SConvertF32x4: |
3392 return graph()->NewNode(jsgraph()->machine()->Int32x4FromFloat32x4(), | 3404 return graph()->NewNode(jsgraph()->machine()->Int32x4FromFloat32x4(), |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4139 function_->code_end_offset - function_->code_start_offset, | 4151 function_->code_end_offset - function_->code_start_offset, |
4140 codegen_ms); | 4152 codegen_ms); |
4141 } | 4153 } |
4142 | 4154 |
4143 return code; | 4155 return code; |
4144 } | 4156 } |
4145 | 4157 |
4146 } // namespace compiler | 4158 } // namespace compiler |
4147 } // namespace internal | 4159 } // namespace internal |
4148 } // namespace v8 | 4160 } // namespace v8 |
OLD | NEW |