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

Unified Diff: runtime/vm/allocation.cc

Issue 1261873005: Migrate stack resource unwinding to Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Simulators. Created 5 years, 5 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 | « runtime/vm/allocation.h ('k') | runtime/vm/cha.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/allocation.cc
diff --git a/runtime/vm/allocation.cc b/runtime/vm/allocation.cc
index b6ca73e10ff4c731729644ebfa673d682c6eafd8..92e288539d8b91aef7d0bb4efba8279d6ff6cb37 100644
--- a/runtime/vm/allocation.cc
+++ b/runtime/vm/allocation.cc
@@ -30,11 +30,11 @@ void* ZoneAllocated::operator new(uword size, Zone* zone) {
}
-void StackResource::UnwindAbove(Isolate* isolate, StackResource* new_top) {
- StackResource* current_resource = isolate->top_resource();
+void StackResource::UnwindAbove(Thread* thread, StackResource* new_top) {
+ StackResource* current_resource = thread->top_resource();
while (current_resource != new_top) {
current_resource->~StackResource();
- current_resource = isolate->top_resource();
+ current_resource = thread->top_resource();
}
}
« no previous file with comments | « runtime/vm/allocation.h ('k') | runtime/vm/cha.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698