| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 int slot_number = 0); | 334 int slot_number = 0); |
| 335 | 335 |
| 336 // Builders for error reporting at runtime. | 336 // Builders for error reporting at runtime. |
| 337 Node* BuildThrowError(Node* exception, BailoutId bailout_id); | 337 Node* BuildThrowError(Node* exception, BailoutId bailout_id); |
| 338 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); | 338 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); |
| 339 Node* BuildThrowConstAssignError(BailoutId bailout_id); | 339 Node* BuildThrowConstAssignError(BailoutId bailout_id); |
| 340 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id); | 340 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id); |
| 341 Node* BuildThrowUnsupportedSuperError(BailoutId bailout_id); | 341 Node* BuildThrowUnsupportedSuperError(BailoutId bailout_id); |
| 342 | 342 |
| 343 // Builders for dynamic hole-checks at runtime. | 343 // Builders for dynamic hole-checks at runtime. |
| 344 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); | |
| 345 Node* BuildHoleCheckThenThrow(Node* value, Variable* var, Node* not_hole, | 344 Node* BuildHoleCheckThenThrow(Node* value, Variable* var, Node* not_hole, |
| 346 BailoutId bailout_id); | 345 BailoutId bailout_id); |
| 347 Node* BuildHoleCheckElseThrow(Node* value, Variable* var, Node* for_hole, | 346 Node* BuildHoleCheckElseThrow(Node* value, Variable* var, Node* for_hole, |
| 348 BailoutId bailout_id); | 347 BailoutId bailout_id); |
| 349 | 348 |
| 350 // Builders for conditional errors. | 349 // Builders for conditional errors. |
| 351 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id); | 350 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id); |
| 352 | 351 |
| 353 // Builders for non-local control flow. | 352 // Builders for non-local control flow. |
| 354 Node* BuildReturn(Node* return_value); | 353 Node* BuildReturn(Node* return_value); |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 | 592 |
| 594 // Prepare environment to be used as loop header. | 593 // Prepare environment to be used as loop header. |
| 595 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 594 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
| 596 }; | 595 }; |
| 597 | 596 |
| 598 } // namespace compiler | 597 } // namespace compiler |
| 599 } // namespace internal | 598 } // namespace internal |
| 600 } // namespace v8 | 599 } // namespace v8 |
| 601 | 600 |
| 602 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 601 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |