OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_INT64_LOWERING_H_ | 5 #ifndef V8_COMPILER_INT64_LOWERING_H_ |
6 #define V8_COMPILER_INT64_LOWERING_H_ | 6 #define V8_COMPILER_INT64_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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 Zone* zone() const { return zone_; } | 41 Zone* zone() const { return zone_; } |
42 Graph* graph() const { return graph_; } | 42 Graph* graph() const { return graph_; } |
43 MachineOperatorBuilder* machine() const { return machine_; } | 43 MachineOperatorBuilder* machine() const { return machine_; } |
44 CommonOperatorBuilder* common() const { return common_; } | 44 CommonOperatorBuilder* common() const { return common_; } |
45 Signature<MachineRepresentation>* signature() const { return signature_; } | 45 Signature<MachineRepresentation>* signature() const { return signature_; } |
46 | 46 |
47 void PrepareReplacements(Node* node); | 47 void PrepareReplacements(Node* node); |
48 void PushNode(Node* node); | 48 void PushNode(Node* node); |
49 void LowerNode(Node* node); | 49 void LowerNode(Node* node); |
50 bool DefaultLowering(Node* node); | 50 bool DefaultLowering(Node* node, bool low_word_only = false); |
51 void LowerComparison(Node* node, const Operator* signed_op, | 51 void LowerComparison(Node* node, const Operator* signed_op, |
52 const Operator* unsigned_op); | 52 const Operator* unsigned_op); |
53 void PrepareProjectionReplacements(Node* node); | 53 void PrepareProjectionReplacements(Node* node); |
54 | 54 |
55 void ReplaceNode(Node* old, Node* new_low, Node* new_high); | 55 void ReplaceNode(Node* old, Node* new_low, Node* new_high); |
56 bool HasReplacementLow(Node* node); | 56 bool HasReplacementLow(Node* node); |
57 Node* GetReplacementLow(Node* node); | 57 Node* GetReplacementLow(Node* node); |
58 bool HasReplacementHigh(Node* node); | 58 bool HasReplacementHigh(Node* node); |
59 Node* GetReplacementHigh(Node* node); | 59 Node* GetReplacementHigh(Node* node); |
60 void PreparePhiReplacement(Node* phi); | 60 void PreparePhiReplacement(Node* phi); |
(...skipping 13 matching lines...) Expand all Loading... |
74 Replacement* replacements_; | 74 Replacement* replacements_; |
75 Signature<MachineRepresentation>* signature_; | 75 Signature<MachineRepresentation>* signature_; |
76 Node* placeholder_; | 76 Node* placeholder_; |
77 }; | 77 }; |
78 | 78 |
79 } // namespace compiler | 79 } // namespace compiler |
80 } // namespace internal | 80 } // namespace internal |
81 } // namespace v8 | 81 } // namespace v8 |
82 | 82 |
83 #endif // V8_COMPILER_INT64_LOWERING_H_ | 83 #endif // V8_COMPILER_INT64_LOWERING_H_ |
OLD | NEW |