| 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/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/ast.h" | 10 #include "src/ast.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 // Builders for accessing the function context. | 93 // Builders for accessing the function context. |
| 94 Node* BuildLoadBuiltinsObject(); | 94 Node* BuildLoadBuiltinsObject(); |
| 95 Node* BuildLoadGlobalObject(); | 95 Node* BuildLoadGlobalObject(); |
| 96 Node* BuildLoadGlobalProxy(); | 96 Node* BuildLoadGlobalProxy(); |
| 97 Node* BuildLoadClosure(); | 97 Node* BuildLoadClosure(); |
| 98 Node* BuildLoadObjectField(Node* object, int offset); | 98 Node* BuildLoadObjectField(Node* object, int offset); |
| 99 | 99 |
| 100 // Builders for automatic type conversion. | 100 // Builders for automatic type conversion. |
| 101 Node* BuildToBoolean(Node* value); | 101 Node* BuildToBoolean(Node* value); |
| 102 Node* BuildToName(Node* value); | 102 Node* BuildToName(Node* value, BailoutId bailout_id); |
| 103 | 103 |
| 104 // Builders for error reporting at runtime. | 104 // Builders for error reporting at runtime. |
| 105 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); | 105 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); |
| 106 Node* BuildThrowConstAssignError(BailoutId bailout_id); | 106 Node* BuildThrowConstAssignError(BailoutId bailout_id); |
| 107 | 107 |
| 108 // Builders for dynamic hole-checks at runtime. | 108 // Builders for dynamic hole-checks at runtime. |
| 109 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); | 109 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); |
| 110 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, | 110 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, |
| 111 BailoutId bailout_id); | 111 BailoutId bailout_id); |
| 112 | 112 |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 454 |
| 455 Scope* AstGraphBuilder::current_scope() const { | 455 Scope* AstGraphBuilder::current_scope() const { |
| 456 return execution_context_->scope(); | 456 return execution_context_->scope(); |
| 457 } | 457 } |
| 458 | 458 |
| 459 } // namespace compiler | 459 } // namespace compiler |
| 460 } // namespace internal | 460 } // namespace internal |
| 461 } // namespace v8 | 461 } // namespace v8 |
| 462 | 462 |
| 463 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 463 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |