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

Unified Diff: runtime/vm/code_descriptors.h

Issue 847613002: Fix issue 21795. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | tests/language/regress_21795_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_descriptors.h
===================================================================
--- runtime/vm/code_descriptors.h (revision 42786)
+++ runtime/vm/code_descriptors.h (working copy)
@@ -135,7 +135,7 @@
list_[try_index].pc_offset = pc_offset;
ASSERT(handler_types.IsZoneHandle());
list_[try_index].handler_types = &handler_types;
- list_[try_index].needs_stacktrace = needs_stacktrace;
+ list_[try_index].needs_stacktrace |= needs_stacktrace;
}
@@ -145,7 +145,10 @@
if (try_index == CatchClauseNode::kInvalidTryIndex) {
return;
}
- ASSERT((0 <= try_index) && (try_index < Length()));
+ ASSERT(try_index >= 0);
+ while (Length() <= try_index) {
+ AddPlaceHolder();
+ }
list_[try_index].needs_stacktrace = true;
}
« no previous file with comments | « no previous file | tests/language/regress_21795_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698