| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 Node* BuildLoadNativeContextField(int index); | 335 Node* BuildLoadNativeContextField(int index); |
| 336 | 336 |
| 337 // Builders for automatic type conversion. | 337 // Builders for automatic type conversion. |
| 338 Node* BuildToBoolean(Node* input, TypeFeedbackId feedback_id); | 338 Node* BuildToBoolean(Node* input, TypeFeedbackId feedback_id); |
| 339 Node* BuildToName(Node* input, BailoutId bailout_id); | 339 Node* BuildToName(Node* input, BailoutId bailout_id); |
| 340 Node* BuildToObject(Node* input, BailoutId bailout_id); | 340 Node* BuildToObject(Node* input, BailoutId bailout_id); |
| 341 | 341 |
| 342 // Builder for adding the [[HomeObject]] to a value if the value came from a | 342 // Builder for adding the [[HomeObject]] to a value if the value came from a |
| 343 // function literal and needs a home object. Do nothing otherwise. | 343 // function literal and needs a home object. Do nothing otherwise. |
| 344 Node* BuildSetHomeObject(Node* value, Node* home_object, | 344 Node* BuildSetHomeObject(Node* value, Node* home_object, |
| 345 ObjectLiteralProperty* property, | 345 LiteralProperty* property, int slot_number = 0); |
| 346 int slot_number = 0); | |
| 347 | 346 |
| 348 // Builders for error reporting at runtime. | 347 // Builders for error reporting at runtime. |
| 349 Node* BuildThrowError(Node* exception, BailoutId bailout_id); | 348 Node* BuildThrowError(Node* exception, BailoutId bailout_id); |
| 350 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); | 349 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); |
| 351 Node* BuildThrowConstAssignError(BailoutId bailout_id); | 350 Node* BuildThrowConstAssignError(BailoutId bailout_id); |
| 352 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id); | 351 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id); |
| 353 Node* BuildThrowUnsupportedSuperError(BailoutId bailout_id); | 352 Node* BuildThrowUnsupportedSuperError(BailoutId bailout_id); |
| 354 | 353 |
| 355 // Builders for dynamic hole-checks at runtime. | 354 // Builders for dynamic hole-checks at runtime. |
| 356 Node* BuildHoleCheckThenThrow(Node* value, Variable* var, Node* not_hole, | 355 Node* BuildHoleCheckThenThrow(Node* value, Variable* var, Node* not_hole, |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 | 604 |
| 606 // Prepare environment to be used as loop header. | 605 // Prepare environment to be used as loop header. |
| 607 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 606 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
| 608 }; | 607 }; |
| 609 | 608 |
| 610 } // namespace compiler | 609 } // namespace compiler |
| 611 } // namespace internal | 610 } // namespace internal |
| 612 } // namespace v8 | 611 } // namespace v8 |
| 613 | 612 |
| 614 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 613 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |