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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 return NewNode(simplified()->LoadElement(access), object, index, length); | 132 return NewNode(simplified()->LoadElement(access), object, index, length); |
133 } | 133 } |
134 Node* StoreElement(const ElementAccess& access, Node* object, Node* index, | 134 Node* StoreElement(const ElementAccess& access, Node* object, Node* index, |
135 Node* length, Node* value) { | 135 Node* length, Node* value) { |
136 return NewNode(simplified()->StoreElement(access), object, index, length, | 136 return NewNode(simplified()->StoreElement(access), object, index, length, |
137 value); | 137 value); |
138 } | 138 } |
139 | 139 |
140 protected: | 140 protected: |
141 virtual Node* MakeNode(const Operator* op, int value_input_count, | 141 virtual Node* MakeNode(const Operator* op, int value_input_count, |
142 Node** value_inputs) FINAL; | 142 Node** value_inputs, bool incomplete) FINAL; |
143 | 143 |
144 private: | 144 private: |
145 Node* effect_; | 145 Node* effect_; |
146 Node* return_; | 146 Node* return_; |
147 CommonOperatorBuilder* common_; | 147 CommonOperatorBuilder* common_; |
148 MachineOperatorBuilder* machine_; | 148 MachineOperatorBuilder* machine_; |
149 SimplifiedOperatorBuilder* simplified_; | 149 SimplifiedOperatorBuilder* simplified_; |
150 }; | 150 }; |
151 | 151 |
152 } // namespace compiler | 152 } // namespace compiler |
153 } // namespace internal | 153 } // namespace internal |
154 } // namespace v8 | 154 } // namespace v8 |
155 | 155 |
156 #endif // V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ | 156 #endif // V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ |
OLD | NEW |