| 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_AST_GRAPH_BUILDER_H_ | 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ | 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| 7 | 7 |
| 8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
| 10 #include "src/compiler/liveness-analyzer.h" | 10 #include "src/compiler/liveness-analyzer.h" |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // Builders for accessing the function context. | 314 // Builders for accessing the function context. |
| 315 Node* BuildLoadGlobalObject(); | 315 Node* BuildLoadGlobalObject(); |
| 316 Node* BuildLoadNativeContextField(int index); | 316 Node* BuildLoadNativeContextField(int index); |
| 317 Node* BuildLoadFeedbackVector(); | 317 Node* BuildLoadFeedbackVector(); |
| 318 | 318 |
| 319 // Builder for accessing a (potentially immutable) object field. | 319 // Builder for accessing a (potentially immutable) object field. |
| 320 Node* BuildLoadObjectField(Node* object, int offset); | 320 Node* BuildLoadObjectField(Node* object, int offset); |
| 321 Node* BuildLoadImmutableObjectField(Node* object, int offset); | 321 Node* BuildLoadImmutableObjectField(Node* object, int offset); |
| 322 | 322 |
| 323 // Builders for automatic type conversion. | 323 // Builders for automatic type conversion. |
| 324 Node* BuildToBoolean(Node* input); | 324 Node* BuildToBoolean(Node* input, TypeFeedbackId feedback_id); |
| 325 Node* BuildToName(Node* input, BailoutId bailout_id); | 325 Node* BuildToName(Node* input, BailoutId bailout_id); |
| 326 Node* BuildToObject(Node* input, BailoutId bailout_id); | 326 Node* BuildToObject(Node* input, BailoutId bailout_id); |
| 327 | 327 |
| 328 // Builder for adding the [[HomeObject]] to a value if the value came from a | 328 // Builder for adding the [[HomeObject]] to a value if the value came from a |
| 329 // function literal and needs a home object. Do nothing otherwise. | 329 // function literal and needs a home object. Do nothing otherwise. |
| 330 Node* BuildSetHomeObject(Node* value, Node* home_object, | 330 Node* BuildSetHomeObject(Node* value, Node* home_object, |
| 331 ObjectLiteralProperty* property, | 331 ObjectLiteralProperty* property, |
| 332 int slot_number = 0); | 332 int slot_number = 0); |
| 333 | 333 |
| 334 // Builders for error reporting at runtime. | 334 // Builders for error reporting at runtime. |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 | 581 |
| 582 // Prepare environment to be used as loop header. | 582 // Prepare environment to be used as loop header. |
| 583 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 583 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
| 584 }; | 584 }; |
| 585 | 585 |
| 586 } // namespace compiler | 586 } // namespace compiler |
| 587 } // namespace internal | 587 } // namespace internal |
| 588 } // namespace v8 | 588 } // namespace v8 |
| 589 | 589 |
| 590 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 590 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |