| 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.h" | 8 #include "src/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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 Node* BuildToName(Node* value, BailoutId bailout_id); | 293 Node* BuildToName(Node* value, BailoutId bailout_id); |
| 294 | 294 |
| 295 // Builder for adding the [[HomeObject]] to a value if the value came from a | 295 // Builder for adding the [[HomeObject]] to a value if the value came from a |
| 296 // function literal and needs a home object. Do nothing otherwise. | 296 // function literal and needs a home object. Do nothing otherwise. |
| 297 Node* BuildSetHomeObject(Node* value, Node* home_object, Expression* expr); | 297 Node* BuildSetHomeObject(Node* value, Node* home_object, Expression* expr); |
| 298 | 298 |
| 299 // Builders for error reporting at runtime. | 299 // Builders for error reporting at runtime. |
| 300 Node* BuildThrowError(Node* exception, BailoutId bailout_id); | 300 Node* BuildThrowError(Node* exception, BailoutId bailout_id); |
| 301 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); | 301 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); |
| 302 Node* BuildThrowConstAssignError(BailoutId bailout_id); | 302 Node* BuildThrowConstAssignError(BailoutId bailout_id); |
| 303 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id); |
| 303 | 304 |
| 304 // Builders for dynamic hole-checks at runtime. | 305 // Builders for dynamic hole-checks at runtime. |
| 305 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); | 306 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); |
| 306 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, | 307 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, |
| 307 BailoutId bailout_id); | 308 BailoutId bailout_id); |
| 308 | 309 |
| 309 // Builders for conditional errors. | 310 // Builders for conditional errors. |
| 310 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id); | 311 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id); |
| 311 | 312 |
| 312 // Builders for non-local control flow. | 313 // Builders for non-local control flow. |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 | 508 |
| 508 // Prepare environment to be used as loop header. | 509 // Prepare environment to be used as loop header. |
| 509 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 510 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
| 510 }; | 511 }; |
| 511 | 512 |
| 512 } // namespace compiler | 513 } // namespace compiler |
| 513 } // namespace internal | 514 } // namespace internal |
| 514 } // namespace v8 | 515 } // namespace v8 |
| 515 | 516 |
| 516 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 517 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |