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_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ | 5 #ifndef V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ |
6 #define V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ | 6 #define V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ |
7 | 7 |
8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/graph-builder.h" | 9 #include "src/compiler/graph-builder.h" |
10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 Node* StringEqual(Node* a, Node* b) { | 86 Node* StringEqual(Node* a, Node* b) { |
87 return NewNode(simplified()->StringEqual(), a, b); | 87 return NewNode(simplified()->StringEqual(), a, b); |
88 } | 88 } |
89 Node* StringLessThan(Node* a, Node* b) { | 89 Node* StringLessThan(Node* a, Node* b) { |
90 return NewNode(simplified()->StringLessThan(), a, b); | 90 return NewNode(simplified()->StringLessThan(), a, b); |
91 } | 91 } |
92 Node* StringLessThanOrEqual(Node* a, Node* b) { | 92 Node* StringLessThanOrEqual(Node* a, Node* b) { |
93 return NewNode(simplified()->StringLessThanOrEqual(), a, b); | 93 return NewNode(simplified()->StringLessThanOrEqual(), a, b); |
94 } | 94 } |
95 Node* StringAdd(Node* a, Node* b) { | |
96 return NewNode(simplified()->StringAdd(), a, b); | |
97 } | |
98 | 95 |
99 Node* ChangeTaggedToInt32(Node* a) { | 96 Node* ChangeTaggedToInt32(Node* a) { |
100 return NewNode(simplified()->ChangeTaggedToInt32(), a); | 97 return NewNode(simplified()->ChangeTaggedToInt32(), a); |
101 } | 98 } |
102 Node* ChangeTaggedToUint32(Node* a) { | 99 Node* ChangeTaggedToUint32(Node* a) { |
103 return NewNode(simplified()->ChangeTaggedToUint32(), a); | 100 return NewNode(simplified()->ChangeTaggedToUint32(), a); |
104 } | 101 } |
105 Node* ChangeTaggedToFloat64(Node* a) { | 102 Node* ChangeTaggedToFloat64(Node* a) { |
106 return NewNode(simplified()->ChangeTaggedToFloat64(), a); | 103 return NewNode(simplified()->ChangeTaggedToFloat64(), a); |
107 } | 104 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 CommonOperatorBuilder* common_; | 142 CommonOperatorBuilder* common_; |
146 MachineOperatorBuilder* machine_; | 143 MachineOperatorBuilder* machine_; |
147 SimplifiedOperatorBuilder* simplified_; | 144 SimplifiedOperatorBuilder* simplified_; |
148 }; | 145 }; |
149 | 146 |
150 } // namespace compiler | 147 } // namespace compiler |
151 } // namespace internal | 148 } // namespace internal |
152 } // namespace v8 | 149 } // namespace v8 |
153 | 150 |
154 #endif // V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ | 151 #endif // V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ |
OLD | NEW |