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/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 // Non-local control flow support. | 686 // Non-local control flow support. |
687 void EnterTryBlock(int handler_index, Label* handler); | 687 void EnterTryBlock(int handler_index, Label* handler); |
688 void ExitTryBlock(int handler_index); | 688 void ExitTryBlock(int handler_index); |
689 void EnterFinallyBlock(); | 689 void EnterFinallyBlock(); |
690 void ExitFinallyBlock(); | 690 void ExitFinallyBlock(); |
691 void ClearPendingMessage(); | 691 void ClearPendingMessage(); |
692 | 692 |
693 void EmitContinue(Statement* target); | 693 void EmitContinue(Statement* target); |
694 void EmitBreak(Statement* target); | 694 void EmitBreak(Statement* target); |
695 | 695 |
696 void EmitIllegalRedeclaration(); | |
697 | |
698 // Loop nesting counter. | 696 // Loop nesting counter. |
699 int loop_depth() { return loop_depth_; } | 697 int loop_depth() { return loop_depth_; } |
700 void increment_loop_depth() { loop_depth_++; } | 698 void increment_loop_depth() { loop_depth_++; } |
701 void decrement_loop_depth() { | 699 void decrement_loop_depth() { |
702 DCHECK(loop_depth_ > 0); | 700 DCHECK(loop_depth_ > 0); |
703 loop_depth_--; | 701 loop_depth_--; |
704 } | 702 } |
705 | 703 |
706 MacroAssembler* masm() const { return masm_; } | 704 MacroAssembler* masm() const { return masm_; } |
707 | 705 |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 Address start_; | 1053 Address start_; |
1056 Address instruction_start_; | 1054 Address instruction_start_; |
1057 uint32_t length_; | 1055 uint32_t length_; |
1058 }; | 1056 }; |
1059 | 1057 |
1060 | 1058 |
1061 } // namespace internal | 1059 } // namespace internal |
1062 } // namespace v8 | 1060 } // namespace v8 |
1063 | 1061 |
1064 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1062 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |