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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 Node* BuildVariableAssignment(Variable* var, Node* value, Token::Value op, | 81 Node* BuildVariableAssignment(Variable* var, Node* value, Token::Value op, |
82 BailoutId bailout_id); | 82 BailoutId bailout_id); |
83 Node* BuildVariableDelete(Variable* var); | 83 Node* BuildVariableDelete(Variable* var); |
84 Node* BuildVariableLoad(Variable* var, BailoutId bailout_id, | 84 Node* BuildVariableLoad(Variable* var, BailoutId bailout_id, |
85 ContextualMode mode = CONTEXTUAL); | 85 ContextualMode mode = CONTEXTUAL); |
86 | 86 |
87 // Builders for accessing the function context. | 87 // Builders for accessing the function context. |
88 Node* BuildLoadBuiltinsObject(); | 88 Node* BuildLoadBuiltinsObject(); |
89 Node* BuildLoadGlobalObject(); | 89 Node* BuildLoadGlobalObject(); |
90 Node* BuildLoadClosure(); | 90 Node* BuildLoadClosure(); |
| 91 Node* BuildLoadObjectField(Node* object, int offset); |
91 | 92 |
92 // Builders for automatic type conversion. | 93 // Builders for automatic type conversion. |
93 Node* BuildToBoolean(Node* value); | 94 Node* BuildToBoolean(Node* value); |
94 | 95 |
95 // Builders for error reporting at runtime. | 96 // Builders for error reporting at runtime. |
96 Node* BuildThrowReferenceError(Variable* var); | 97 Node* BuildThrowReferenceError(Variable* var); |
97 | 98 |
98 // Builders for dynamic hole-checks at runtime. | 99 // Builders for dynamic hole-checks at runtime. |
99 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); | 100 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); |
100 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole); | 101 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole); |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 }; | 420 }; |
420 | 421 |
421 Scope* AstGraphBuilder::current_scope() const { | 422 Scope* AstGraphBuilder::current_scope() const { |
422 return execution_context_->scope(); | 423 return execution_context_->scope(); |
423 } | 424 } |
424 } | 425 } |
425 } | 426 } |
426 } // namespace v8::internal::compiler | 427 } // namespace v8::internal::compiler |
427 | 428 |
428 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 429 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |