| 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 // Non-local control flow support. | 677 // Non-local control flow support. |
| 678 void EnterTryBlock(int handler_index, Label* handler); | 678 void EnterTryBlock(int handler_index, Label* handler); |
| 679 void ExitTryBlock(int handler_index); | 679 void ExitTryBlock(int handler_index); |
| 680 void EnterFinallyBlock(); | 680 void EnterFinallyBlock(); |
| 681 void ExitFinallyBlock(); | 681 void ExitFinallyBlock(); |
| 682 void ClearPendingMessage(); | 682 void ClearPendingMessage(); |
| 683 | 683 |
| 684 void EmitContinue(Statement* target); | 684 void EmitContinue(Statement* target); |
| 685 void EmitBreak(Statement* target); | 685 void EmitBreak(Statement* target); |
| 686 | 686 |
| 687 void EmitIllegalRedeclaration(); |
| 688 |
| 687 // Loop nesting counter. | 689 // Loop nesting counter. |
| 688 int loop_depth() { return loop_depth_; } | 690 int loop_depth() { return loop_depth_; } |
| 689 void increment_loop_depth() { loop_depth_++; } | 691 void increment_loop_depth() { loop_depth_++; } |
| 690 void decrement_loop_depth() { | 692 void decrement_loop_depth() { |
| 691 DCHECK(loop_depth_ > 0); | 693 DCHECK(loop_depth_ > 0); |
| 692 loop_depth_--; | 694 loop_depth_--; |
| 693 } | 695 } |
| 694 | 696 |
| 695 MacroAssembler* masm() const { return masm_; } | 697 MacroAssembler* masm() const { return masm_; } |
| 696 | 698 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1057 Address start_; | 1059 Address start_; |
| 1058 Address instruction_start_; | 1060 Address instruction_start_; |
| 1059 uint32_t length_; | 1061 uint32_t length_; |
| 1060 }; | 1062 }; |
| 1061 | 1063 |
| 1062 | 1064 |
| 1063 } // namespace internal | 1065 } // namespace internal |
| 1064 } // namespace v8 | 1066 } // namespace v8 |
| 1065 | 1067 |
| 1066 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1068 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
| OLD | NEW |