| 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_H_ | 5 #ifndef V8_FULL_CODEGEN_H_ |
| 6 #define V8_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_H_ |
| 7 | 7 |
| 8 #include "v8.h" | 8 #include "v8.h" |
| 9 | 9 |
| 10 #include "allocation.h" | 10 #include "allocation.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 NestedBlock(FullCodeGenerator* codegen, Block* block) | 209 NestedBlock(FullCodeGenerator* codegen, Block* block) |
| 210 : Breakable(codegen, block) { | 210 : Breakable(codegen, block) { |
| 211 } | 211 } |
| 212 virtual ~NestedBlock() {} | 212 virtual ~NestedBlock() {} |
| 213 | 213 |
| 214 virtual NestedStatement* Exit(int* stack_depth, int* context_length) { | 214 virtual NestedStatement* Exit(int* stack_depth, int* context_length) { |
| 215 if (statement()->AsBlock()->scope() != NULL) { | 215 if (statement()->AsBlock()->scope() != NULL) { |
| 216 ++(*context_length); | 216 ++(*context_length); |
| 217 } | 217 } |
| 218 return previous_; | 218 return previous_; |
| 219 }; | 219 } |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 // The try block of a try/catch statement. | 222 // The try block of a try/catch statement. |
| 223 class TryCatch : public NestedStatement { | 223 class TryCatch : public NestedStatement { |
| 224 public: | 224 public: |
| 225 explicit TryCatch(FullCodeGenerator* codegen) : NestedStatement(codegen) { | 225 explicit TryCatch(FullCodeGenerator* codegen) : NestedStatement(codegen) { |
| 226 } | 226 } |
| 227 virtual ~TryCatch() {} | 227 virtual ~TryCatch() {} |
| 228 | 228 |
| 229 virtual NestedStatement* Exit(int* stack_depth, int* context_length); | 229 virtual NestedStatement* Exit(int* stack_depth, int* context_length); |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 | 938 |
| 939 Address start_; | 939 Address start_; |
| 940 Address instruction_start_; | 940 Address instruction_start_; |
| 941 uint32_t length_; | 941 uint32_t length_; |
| 942 }; | 942 }; |
| 943 | 943 |
| 944 | 944 |
| 945 } } // namespace v8::internal | 945 } } // namespace v8::internal |
| 946 | 946 |
| 947 #endif // V8_FULL_CODEGEN_H_ | 947 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |