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

Unified Diff: runtime/vm/parser.cc

Issue 10824201: Verify at method exit that stack size is the same as at entry, except for methods with finally clau… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 10341)
+++ runtime/vm/parser.cc (working copy)
@@ -5647,6 +5647,7 @@
SequenceNode* finally_block = NULL;
if (CurrentToken() == Token::kFINALLY) {
current_function().set_is_optimizable(false);
+ current_function().set_has_finally(true);
ConsumeToken(); // Consume the 'finally'.
const intptr_t finally_pos = TokenPos();
// Add the finally block to the exit points recorded so far.
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698