| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 340 |
| 341 // Builders for error reporting at runtime. | 341 // Builders for error reporting at runtime. |
| 342 Node* BuildThrowError(Node* exception, BailoutId bailout_id); | 342 Node* BuildThrowError(Node* exception, BailoutId bailout_id); |
| 343 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); | 343 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); |
| 344 Node* BuildThrowConstAssignError(BailoutId bailout_id); | 344 Node* BuildThrowConstAssignError(BailoutId bailout_id); |
| 345 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id); | 345 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id); |
| 346 Node* BuildThrowUnsupportedSuperError(BailoutId bailout_id); | 346 Node* BuildThrowUnsupportedSuperError(BailoutId bailout_id); |
| 347 | 347 |
| 348 // Builders for dynamic hole-checks at runtime. | 348 // Builders for dynamic hole-checks at runtime. |
| 349 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); | 349 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); |
| 350 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, | 350 Node* BuildHoleCheckThenThrow(Node* value, Variable* var, Node* not_hole, |
| 351 BailoutId bailout_id); | 351 BailoutId bailout_id); |
| 352 Node* BuildHoleCheckElseThrow(Node* value, Variable* var, Node* for_hole, |
| 353 BailoutId bailout_id); |
| 352 | 354 |
| 353 // Builders for conditional errors. | 355 // Builders for conditional errors. |
| 354 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id); | 356 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id); |
| 355 | 357 |
| 356 // Builders for non-local control flow. | 358 // Builders for non-local control flow. |
| 357 Node* BuildReturn(Node* return_value); | 359 Node* BuildReturn(Node* return_value); |
| 358 Node* BuildThrow(Node* exception_value); | 360 Node* BuildThrow(Node* exception_value); |
| 359 | 361 |
| 360 // Builders for binary operations. | 362 // Builders for binary operations. |
| 361 Node* BuildBinaryOp(Node* left, Node* right, Token::Value op); | 363 Node* BuildBinaryOp(Node* left, Node* right, Token::Value op); |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 560 |
| 559 // Prepare environment to be used as loop header. | 561 // Prepare environment to be used as loop header. |
| 560 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 562 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
| 561 }; | 563 }; |
| 562 | 564 |
| 563 } // namespace compiler | 565 } // namespace compiler |
| 564 } // namespace internal | 566 } // namespace internal |
| 565 } // namespace v8 | 567 } // namespace v8 |
| 566 | 568 |
| 567 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 569 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |