| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef V8_COMPILER_SIMD_SCALAR_LOWERING_H_ | 5 #ifndef V8_COMPILER_SIMD_SCALAR_LOWERING_H_ |
| 6 #define V8_COMPILER_SIMD_SCALAR_LOWERING_H_ | 6 #define V8_COMPILER_SIMD_SCALAR_LOWERING_H_ |
| 7 | 7 |
| 8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
| 9 #include "src/compiler/graph.h" | 9 #include "src/compiler/graph.h" |
| 10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 int GetParameterCountAfterLowering(); | 26 int GetParameterCountAfterLowering(); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 enum class State : uint8_t { kUnvisited, kOnStack, kVisited }; | 29 enum class State : uint8_t { kUnvisited, kOnStack, kVisited }; |
| 30 | 30 |
| 31 enum class SimdType : uint8_t { | 31 enum class SimdType : uint8_t { |
| 32 kFloat32x4, | 32 kFloat32x4, |
| 33 kInt32x4, | 33 kInt32x4, |
| 34 kInt16x8, | 34 kInt16x8, |
| 35 kInt8x16, |
| 35 kSimd1x4, | 36 kSimd1x4, |
| 36 kSimd1x8 | 37 kSimd1x8, |
| 38 kSimd1x16 |
| 37 }; | 39 }; |
| 38 | 40 |
| 39 #if defined(V8_TARGET_BIG_ENDIAN) | 41 #if defined(V8_TARGET_BIG_ENDIAN) |
| 40 static constexpr int kLaneOffsets[16] = {15, 14, 13, 12, 11, 10, 9, 8, | 42 static constexpr int kLaneOffsets[16] = {15, 14, 13, 12, 11, 10, 9, 8, |
| 41 7, 6, 5, 4, 3, 2, 1, 0}; | 43 7, 6, 5, 4, 3, 2, 1, 0}; |
| 42 #else | 44 #else |
| 43 static constexpr int kLaneOffsets[16] = {0, 1, 2, 3, 4, 5, 6, 7, | 45 static constexpr int kLaneOffsets[16] = {0, 1, 2, 3, 4, 5, 6, 7, |
| 44 8, 9, 10, 11, 12, 13, 14, 15}; | 46 8, 9, 10, 11, 12, 13, 14, 15}; |
| 45 #endif | 47 #endif |
| 46 struct Replacement { | 48 struct Replacement { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 Signature<MachineRepresentation>* signature_; | 104 Signature<MachineRepresentation>* signature_; |
| 103 Node* placeholder_; | 105 Node* placeholder_; |
| 104 int parameter_count_after_lowering_; | 106 int parameter_count_after_lowering_; |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace compiler | 109 } // namespace compiler |
| 108 } // namespace internal | 110 } // namespace internal |
| 109 } // namespace v8 | 111 } // namespace v8 |
| 110 | 112 |
| 111 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_ | 113 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_ |
| OLD | NEW |