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

Unified Diff: runtime/vm/handles.cc

Issue 1242343002: Remove more uses of Isolate::current_zone. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Access isolate via thread. 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/dart_api_state.h ('k') | runtime/vm/handles_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/handles.cc
diff --git a/runtime/vm/handles.cc b/runtime/vm/handles.cc
index f636fdd29171a1d6d6747da37717c655090f22c7..c0535423cc27528ff9a15a1fbc351812bd6aec4e 100644
--- a/runtime/vm/handles.cc
+++ b/runtime/vm/handles.cc
@@ -76,17 +76,17 @@ bool VMHandles::IsZoneHandle(uword handle) {
int VMHandles::ScopedHandleCount() {
- Isolate* isolate = Isolate::Current();
- ASSERT(isolate->current_zone() != NULL);
- VMHandles* handles = isolate->current_zone()->handles();
+ Thread* thread = Thread::Current();
+ ASSERT(thread->zone() != NULL);
+ VMHandles* handles = thread->zone()->handles();
return handles->CountScopedHandles();
}
int VMHandles::ZoneHandleCount() {
- Isolate* isolate = Isolate::Current();
- ASSERT(isolate->current_zone() != NULL);
- VMHandles* handles = isolate->current_zone()->handles();
+ Thread* thread = Thread::Current();
+ ASSERT(thread->zone() != NULL);
+ VMHandles* handles = thread->zone()->handles();
return handles->CountZoneHandles();
}
« no previous file with comments | « runtime/vm/dart_api_state.h ('k') | runtime/vm/handles_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698