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_REPRESENTATION_CHANGE_H_ | 5 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_ |
6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ | 6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ |
7 | 7 |
8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
9 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
10 | 10 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 private: | 226 private: |
227 JSGraph* jsgraph_; | 227 JSGraph* jsgraph_; |
228 Isolate* isolate_; | 228 Isolate* isolate_; |
229 | 229 |
230 friend class RepresentationChangerTester; // accesses the below fields. | 230 friend class RepresentationChangerTester; // accesses the below fields. |
231 | 231 |
232 bool testing_type_errors_; // If {true}, don't abort on a type error. | 232 bool testing_type_errors_; // If {true}, don't abort on a type error. |
233 bool type_error_; // Set when a type error is detected. | 233 bool type_error_; // Set when a type error is detected. |
234 | 234 |
| 235 Node* GetTaggedSignedRepresentationFor(Node* node, |
| 236 MachineRepresentation output_rep, |
| 237 Type* output_type); |
| 238 Node* GetTaggedPointerRepresentationFor(Node* node, |
| 239 MachineRepresentation output_rep, |
| 240 Type* output_type); |
235 Node* GetTaggedRepresentationFor(Node* node, MachineRepresentation output_rep, | 241 Node* GetTaggedRepresentationFor(Node* node, MachineRepresentation output_rep, |
236 Type* output_type); | 242 Type* output_type); |
237 Node* GetFloat32RepresentationFor(Node* node, | 243 Node* GetFloat32RepresentationFor(Node* node, |
238 MachineRepresentation output_rep, | 244 MachineRepresentation output_rep, |
239 Type* output_type, Truncation truncation); | 245 Type* output_type, Truncation truncation); |
240 Node* GetFloat64RepresentationFor(Node* node, | 246 Node* GetFloat64RepresentationFor(Node* node, |
241 MachineRepresentation output_rep, | 247 MachineRepresentation output_rep, |
242 Type* output_type, Node* use_node, | 248 Type* output_type, Node* use_node, |
243 UseInfo use_info); | 249 UseInfo use_info); |
244 Node* GetWord32RepresentationFor(Node* node, MachineRepresentation output_rep, | 250 Node* GetWord32RepresentationFor(Node* node, MachineRepresentation output_rep, |
(...skipping 19 matching lines...) Expand all Loading... |
264 Factory* factory() const { return isolate()->factory(); } | 270 Factory* factory() const { return isolate()->factory(); } |
265 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 271 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
266 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 272 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
267 }; | 273 }; |
268 | 274 |
269 } // namespace compiler | 275 } // namespace compiler |
270 } // namespace internal | 276 } // namespace internal |
271 } // namespace v8 | 277 } // namespace v8 |
272 | 278 |
273 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ | 279 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ |
OLD | NEW |