Index: runtime/vm/heap.cc |
=================================================================== |
--- runtime/vm/heap.cc (revision 1496) |
+++ runtime/vm/heap.cc (working copy) |
@@ -137,13 +137,13 @@ |
#if defined(DEBUG) |
-NoGCScope::NoGCScope() : StackResource(), isolate_(Isolate::Current()) { |
- isolate_->IncrementNoGCScopeDepth(); |
+NoGCScope::NoGCScope() : StackResource(Isolate::Current()) { |
+ isolate()->IncrementNoGCScopeDepth(); |
} |
NoGCScope::~NoGCScope() { |
- isolate_->DecrementNoGCScopeDepth(); |
+ isolate()->DecrementNoGCScopeDepth(); |
} |
#endif // defined(DEBUG) |