OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 233 |
234 virtual NestedStatement* Exit(int* stack_depth, int* context_length); | 234 virtual NestedStatement* Exit(int* stack_depth, int* context_length); |
235 | 235 |
236 private: | 236 private: |
237 Label* finally_entry_; | 237 Label* finally_entry_; |
238 }; | 238 }; |
239 | 239 |
240 // The finally block of a try/finally statement. | 240 // The finally block of a try/finally statement. |
241 class Finally : public NestedStatement { | 241 class Finally : public NestedStatement { |
242 public: | 242 public: |
243 static const int kElementCount = 2; | 243 static const int kElementCount = 5; |
244 | 244 |
245 explicit Finally(FullCodeGenerator* codegen) : NestedStatement(codegen) { } | 245 explicit Finally(FullCodeGenerator* codegen) : NestedStatement(codegen) { } |
246 virtual ~Finally() {} | 246 virtual ~Finally() {} |
247 | 247 |
248 virtual NestedStatement* Exit(int* stack_depth, int* context_length) { | 248 virtual NestedStatement* Exit(int* stack_depth, int* context_length) { |
249 *stack_depth += kElementCount; | 249 *stack_depth += kElementCount; |
250 return previous_; | 250 return previous_; |
251 } | 251 } |
252 }; | 252 }; |
253 | 253 |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 } | 816 } |
817 | 817 |
818 private: | 818 private: |
819 Zone* zone_; | 819 Zone* zone_; |
820 }; | 820 }; |
821 | 821 |
822 | 822 |
823 } } // namespace v8::internal | 823 } } // namespace v8::internal |
824 | 824 |
825 #endif // V8_FULL_CODEGEN_H_ | 825 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |