| 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/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 void LowerGraph(); | 24 void LowerGraph(); |
| 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 { kInt32, kFloat32 }; | 31 enum class SimdType : uint8_t { kInt32, kFloat32 }; |
| 32 | 32 |
| 33 static const size_t kMaxLanes = 4; | 33 static const int kMaxLanes = 4; |
| 34 | 34 |
| 35 struct Replacement { | 35 struct Replacement { |
| 36 Node* node[kMaxLanes]; | 36 Node* node[kMaxLanes]; |
| 37 SimdType type; // represents what input type is expected | 37 SimdType type; // represents what input type is expected |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 Zone* zone() const { return zone_; } | 40 Zone* zone() const { return zone_; } |
| 41 Graph* graph() const { return graph_; } | 41 Graph* graph() const { return graph_; } |
| 42 MachineOperatorBuilder* machine() const { return machine_; } | 42 MachineOperatorBuilder* machine() const { return machine_; } |
| 43 CommonOperatorBuilder* common() const { return common_; } | 43 CommonOperatorBuilder* common() const { return common_; } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 69 Signature<MachineRepresentation>* signature_; | 69 Signature<MachineRepresentation>* signature_; |
| 70 Node* placeholder_; | 70 Node* placeholder_; |
| 71 int parameter_count_after_lowering_; | 71 int parameter_count_after_lowering_; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace compiler | 74 } // namespace compiler |
| 75 } // namespace internal | 75 } // namespace internal |
| 76 } // namespace v8 | 76 } // namespace v8 |
| 77 | 77 |
| 78 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_ | 78 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_ |
| OLD | NEW |