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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 Node* BuildLoadGlobalObject(); | 93 Node* BuildLoadGlobalObject(); |
94 Node* BuildLoadGlobalProxy(); | 94 Node* BuildLoadGlobalProxy(); |
95 Node* BuildLoadClosure(); | 95 Node* BuildLoadClosure(); |
96 Node* BuildLoadObjectField(Node* object, int offset); | 96 Node* BuildLoadObjectField(Node* object, int offset); |
97 | 97 |
98 // Builders for automatic type conversion. | 98 // Builders for automatic type conversion. |
99 Node* BuildToBoolean(Node* value); | 99 Node* BuildToBoolean(Node* value); |
100 | 100 |
101 // Builders for error reporting at runtime. | 101 // Builders for error reporting at runtime. |
102 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); | 102 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); |
| 103 Node* BuildThrowConstAssignError(BailoutId bailout_id); |
103 | 104 |
104 // Builders for dynamic hole-checks at runtime. | 105 // Builders for dynamic hole-checks at runtime. |
105 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); | 106 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); |
106 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, | 107 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, |
107 BailoutId bailout_id); | 108 BailoutId bailout_id); |
108 | 109 |
109 // Builders for binary operations. | 110 // Builders for binary operations. |
110 Node* BuildBinaryOp(Node* left, Node* right, Token::Value op); | 111 Node* BuildBinaryOp(Node* left, Node* right, Token::Value op); |
111 | 112 |
112 // Builder for stack-check guards. | 113 // Builder for stack-check guards. |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 | 441 |
441 Scope* AstGraphBuilder::current_scope() const { | 442 Scope* AstGraphBuilder::current_scope() const { |
442 return execution_context_->scope(); | 443 return execution_context_->scope(); |
443 } | 444 } |
444 | 445 |
445 } // namespace compiler | 446 } // namespace compiler |
446 } // namespace internal | 447 } // namespace internal |
447 } // namespace v8 | 448 } // namespace v8 |
448 | 449 |
449 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 450 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |