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_REDUCER_H_ | 5 #ifndef V8_COMPILER_INT64_REDUCER_H_ |
6 #define V8_COMPILER_INT64_REDUCER_H_ | 6 #define V8_COMPILER_INT64_REDUCER_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 21 matching lines...) Expand all Loading... | |
32 }; | 32 }; |
33 | 33 |
34 Zone* zone() const { return zone_; } | 34 Zone* zone() const { return zone_; } |
35 Graph* graph() const { return graph_; } | 35 Graph* graph() const { return graph_; } |
36 MachineOperatorBuilder* machine() const { return machine_; } | 36 MachineOperatorBuilder* machine() const { return machine_; } |
37 CommonOperatorBuilder* common() const { return common_; } | 37 CommonOperatorBuilder* common() const { return common_; } |
38 Signature<MachineRepresentation>* signature() const { return signature_; } | 38 Signature<MachineRepresentation>* signature() const { return signature_; } |
39 | 39 |
40 void LowerNode(Node* node); | 40 void LowerNode(Node* node); |
41 bool DefaultLowering(Node* node); | 41 bool DefaultLowering(Node* node); |
42 void LowerComparisonToLexicographicComparison(Node* node, | |
titzer
2016/02/24 17:41:35
This name is pretty long :)
LowerComparison shoul
ahaas
2016/02/25 11:56:08
Done.
| |
43 const Operator* signed_op, | |
44 const Operator* unsigned_op); | |
42 | 45 |
43 void ReplaceNode(Node* old, Node* new_low, Node* new_high); | 46 void ReplaceNode(Node* old, Node* new_low, Node* new_high); |
44 bool HasReplacementLow(Node* node); | 47 bool HasReplacementLow(Node* node); |
45 Node* GetReplacementLow(Node* node); | 48 Node* GetReplacementLow(Node* node); |
46 bool HasReplacementHigh(Node* node); | 49 bool HasReplacementHigh(Node* node); |
47 Node* GetReplacementHigh(Node* node); | 50 Node* GetReplacementHigh(Node* node); |
48 | 51 |
49 Zone* zone_; | 52 Zone* zone_; |
50 Graph* const graph_; | 53 Graph* const graph_; |
51 MachineOperatorBuilder* machine_; | 54 MachineOperatorBuilder* machine_; |
52 CommonOperatorBuilder* common_; | 55 CommonOperatorBuilder* common_; |
53 NodeMarker<State> state_; | 56 NodeMarker<State> state_; |
54 ZoneStack<Node*> stack_; | 57 ZoneStack<Node*> stack_; |
55 Replacement* replacements_; | 58 Replacement* replacements_; |
56 Signature<MachineRepresentation>* signature_; | 59 Signature<MachineRepresentation>* signature_; |
57 }; | 60 }; |
58 | 61 |
59 } // namespace compiler | 62 } // namespace compiler |
60 } // namespace internal | 63 } // namespace internal |
61 } // namespace v8 | 64 } // namespace v8 |
62 | 65 |
63 #endif // V8_COMPILER_INT64_REDUCER_H_ | 66 #endif // V8_COMPILER_INT64_REDUCER_H_ |
OLD | NEW |