Index: runtime/vm/handles_impl.h |
diff --git a/runtime/vm/handles_impl.h b/runtime/vm/handles_impl.h |
index a299b45e7fd43e7a913c40d1136cba9b12220ca1..370b34e440d7dee6a03f6097477a67599f4ed1bd 100644 |
--- a/runtime/vm/handles_impl.h |
+++ b/runtime/vm/handles_impl.h |
@@ -96,10 +96,8 @@ uword Handles<kHandleSizeInWords, |
#if defined(DEBUG) |
Thread* thread = Thread::Current(); |
ASSERT(thread->zone() == zone); |
- Isolate* isolate = thread->isolate(); |
- ASSERT(isolate != NULL); |
- ASSERT(isolate->top_handle_scope() != NULL); |
- ASSERT(isolate->no_handle_scope_depth() == 0); |
+ ASSERT(thread->top_handle_scope() != NULL); |
+ ASSERT(thread->no_handle_scope_depth() == 0); |
#endif // DEBUG |
Handles* handles = zone->handles(); |
ASSERT(handles != NULL); |
@@ -116,9 +114,7 @@ uword Handles<kHandleSizeInWords, |
#if defined(DEBUG) |
Thread* thread = Thread::Current(); |
ASSERT(thread->zone() == zone); |
- Isolate* isolate = thread->isolate(); |
- ASSERT(isolate != NULL); |
- ASSERT(isolate->no_handle_scope_depth() == 0); |
+ ASSERT(thread->no_handle_scope_depth() == 0); |
#endif // DEBUG |
Handles* handles = zone->handles(); |
ASSERT(handles != NULL); |