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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // Builder for adding the [[HomeObject]] to a value if the value came from a | 334 // Builder for adding the [[HomeObject]] to a value if the value came from a |
335 // function literal and needs a home object. Do nothing otherwise. | 335 // function literal and needs a home object. Do nothing otherwise. |
336 Node* BuildSetHomeObject(Node* value, Node* home_object, Expression* expr, | 336 Node* BuildSetHomeObject(Node* value, Node* home_object, Expression* expr, |
337 const VectorSlotPair& feedback); | 337 const VectorSlotPair& feedback); |
338 | 338 |
339 // Builders for error reporting at runtime. | 339 // Builders for error reporting at runtime. |
340 Node* BuildThrowError(Node* exception, BailoutId bailout_id); | 340 Node* BuildThrowError(Node* exception, BailoutId bailout_id); |
341 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); | 341 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); |
342 Node* BuildThrowConstAssignError(BailoutId bailout_id); | 342 Node* BuildThrowConstAssignError(BailoutId bailout_id); |
343 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id); | 343 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id); |
| 344 Node* BuildThrowUnsupportedSuperError(BailoutId bailout_id); |
344 | 345 |
345 // Builders for dynamic hole-checks at runtime. | 346 // Builders for dynamic hole-checks at runtime. |
346 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); | 347 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); |
347 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, | 348 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, |
348 BailoutId bailout_id); | 349 BailoutId bailout_id); |
349 | 350 |
350 // Builders for conditional errors. | 351 // Builders for conditional errors. |
351 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id); | 352 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id); |
352 | 353 |
353 // Builders for non-local control flow. | 354 // Builders for non-local control flow. |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 | 553 |
553 // Prepare environment to be used as loop header. | 554 // Prepare environment to be used as loop header. |
554 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 555 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
555 }; | 556 }; |
556 | 557 |
557 } // namespace compiler | 558 } // namespace compiler |
558 } // namespace internal | 559 } // namespace internal |
559 } // namespace v8 | 560 } // namespace v8 |
560 | 561 |
561 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 562 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |