Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: src/full-codegen.h

Issue 10540095: Reland r11753: Fix try..finally. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/assembler.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698