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

Unified Diff: vm/dart_api_state.h

Issue 12118002: Fix for issue-7157 - set the stack marker in the top API local scope just before entering dart code… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 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 | « vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart_api_state.h
===================================================================
--- vm/dart_api_state.h (revision 17877)
+++ vm/dart_api_state.h (working copy)
@@ -569,7 +569,9 @@
}
void UnwindScopes(uword sp) {
- while (top_scope_ != NULL && top_scope_->stack_marker() < sp) {
+ while (top_scope_ != NULL &&
+ top_scope_->stack_marker() != 0 &&
+ top_scope_->stack_marker() <= sp) {
ApiLocalScope* scope = top_scope_;
top_scope_ = top_scope_->previous();
delete scope;
« no previous file with comments | « vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698