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 | 10 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 Node* BuildLoadBuiltinsObject(); | 220 Node* BuildLoadBuiltinsObject(); |
221 Node* BuildLoadGlobalObject(); | 221 Node* BuildLoadGlobalObject(); |
222 Node* BuildLoadGlobalProxy(); | 222 Node* BuildLoadGlobalProxy(); |
223 Node* BuildLoadClosure(); | 223 Node* BuildLoadClosure(); |
224 Node* BuildLoadObjectField(Node* object, int offset); | 224 Node* BuildLoadObjectField(Node* object, int offset); |
225 | 225 |
226 // Builders for automatic type conversion. | 226 // Builders for automatic type conversion. |
227 Node* BuildToBoolean(Node* value); | 227 Node* BuildToBoolean(Node* value); |
228 Node* BuildToName(Node* value, BailoutId bailout_id); | 228 Node* BuildToName(Node* value, BailoutId bailout_id); |
229 | 229 |
230 // Adds the [[HomeObject]] to a value if the value came from a function | |
231 // literal that needs a home object. | |
232 void AddHomeObjectIfNeeded(Expression* expr, Node* function, | |
Michael Starzinger
2015/02/16 18:17:50
Single "Add" method not adhering to description in
| |
233 Node* home_object); | |
234 | |
230 // Builders for error reporting at runtime. | 235 // Builders for error reporting at runtime. |
231 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); | 236 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); |
232 Node* BuildThrowConstAssignError(BailoutId bailout_id); | 237 Node* BuildThrowConstAssignError(BailoutId bailout_id); |
233 | 238 |
234 // Builders for dynamic hole-checks at runtime. | 239 // Builders for dynamic hole-checks at runtime. |
235 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); | 240 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); |
236 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, | 241 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, |
237 BailoutId bailout_id); | 242 BailoutId bailout_id); |
238 | 243 |
239 // Builders for non-local control flow. | 244 // Builders for non-local control flow. |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
450 | 455 |
451 // Prepare environment to be used as loop header. | 456 // Prepare environment to be used as loop header. |
452 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 457 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
453 }; | 458 }; |
454 | 459 |
455 } // namespace compiler | 460 } // namespace compiler |
456 } // namespace internal | 461 } // namespace internal |
457 } // namespace v8 | 462 } // namespace v8 |
458 | 463 |
459 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 464 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |