| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "vm/heap.h" | 5 #include "vm/heap.h" | 
| 6 | 6 | 
| 7 #include "vm/assert.h" | 7 #include "vm/assert.h" | 
| 8 #include "vm/compiler_stats.h" | 8 #include "vm/compiler_stats.h" | 
| 9 #include "vm/flags.h" | 9 #include "vm/flags.h" | 
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" | 
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 130   return reinterpret_cast<uword>(new_space_->TopAddress()); | 130   return reinterpret_cast<uword>(new_space_->TopAddress()); | 
| 131 } | 131 } | 
| 132 | 132 | 
| 133 | 133 | 
| 134 uword Heap::EndAddress() { | 134 uword Heap::EndAddress() { | 
| 135   return reinterpret_cast<uword>(new_space_->EndAddress()); | 135   return reinterpret_cast<uword>(new_space_->EndAddress()); | 
| 136 } | 136 } | 
| 137 | 137 | 
| 138 | 138 | 
| 139 #if defined(DEBUG) | 139 #if defined(DEBUG) | 
| 140 NoGCScope::NoGCScope() : StackResource(), isolate_(Isolate::Current()) { | 140 NoGCScope::NoGCScope() : StackResource(Isolate::Current()) { | 
| 141   isolate_->IncrementNoGCScopeDepth(); | 141   isolate()->IncrementNoGCScopeDepth(); | 
| 142 } | 142 } | 
| 143 | 143 | 
| 144 | 144 | 
| 145 NoGCScope::~NoGCScope() { | 145 NoGCScope::~NoGCScope() { | 
| 146   isolate_->DecrementNoGCScopeDepth(); | 146   isolate()->DecrementNoGCScopeDepth(); | 
| 147 } | 147 } | 
| 148 #endif  // defined(DEBUG) | 148 #endif  // defined(DEBUG) | 
| 149 | 149 | 
| 150 }  // namespace dart | 150 }  // namespace dart | 
| OLD | NEW | 
|---|