OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_FULL_CODEGEN_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/ast.h" | 10 #include "src/ast.h" |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 InsertBreak insert_break = INSERT_BREAK); | 655 InsertBreak insert_break = INSERT_BREAK); |
656 void SetExpressionPosition(Expression* expr, | 656 void SetExpressionPosition(Expression* expr, |
657 InsertBreak insert_break = SKIP_BREAK); | 657 InsertBreak insert_break = SKIP_BREAK); |
658 | 658 |
659 // Consider an expression a statement. As such, we also insert a break. | 659 // Consider an expression a statement. As such, we also insert a break. |
660 // This is used in loop headers where we want to break for each iteration. | 660 // This is used in loop headers where we want to break for each iteration. |
661 void SetExpressionAsStatementPosition(Expression* expr); | 661 void SetExpressionAsStatementPosition(Expression* expr); |
662 | 662 |
663 void SetCallPosition(Expression* expr, int argc); | 663 void SetCallPosition(Expression* expr, int argc); |
664 | 664 |
665 void SetConstructCallPosition(Expression* expr); | 665 void SetConstructCallPosition(Expression* expr, int argc); |
666 | 666 |
667 // Non-local control flow support. | 667 // Non-local control flow support. |
668 void EnterTryBlock(int handler_index, Label* handler); | 668 void EnterTryBlock(int handler_index, Label* handler); |
669 void ExitTryBlock(int handler_index); | 669 void ExitTryBlock(int handler_index); |
670 void EnterFinallyBlock(); | 670 void EnterFinallyBlock(); |
671 void ExitFinallyBlock(); | 671 void ExitFinallyBlock(); |
672 void ClearPendingMessage(); | 672 void ClearPendingMessage(); |
673 | 673 |
674 // Loop nesting counter. | 674 // Loop nesting counter. |
675 int loop_depth() { return loop_depth_; } | 675 int loop_depth() { return loop_depth_; } |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 Address start_; | 1045 Address start_; |
1046 Address instruction_start_; | 1046 Address instruction_start_; |
1047 uint32_t length_; | 1047 uint32_t length_; |
1048 }; | 1048 }; |
1049 | 1049 |
1050 | 1050 |
1051 } // namespace internal | 1051 } // namespace internal |
1052 } // namespace v8 | 1052 } // namespace v8 |
1053 | 1053 |
1054 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1054 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |