| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "platform/assert.h" | 7 #include "platform/assert.h" |
| 8 #include "platform/utils.h" |
| 8 #include "vm/compiler_stats.h" | 9 #include "vm/compiler_stats.h" |
| 9 #include "vm/flags.h" | 10 #include "vm/flags.h" |
| 10 #include "vm/isolate.h" | 11 #include "vm/isolate.h" |
| 11 #include "vm/os.h" | 12 #include "vm/os.h" |
| 12 #include "vm/pages.h" | 13 #include "vm/pages.h" |
| 13 #include "vm/scavenger.h" | 14 #include "vm/scavenger.h" |
| 14 #include "vm/utils.h" | |
| 15 #include "vm/verifier.h" | 15 #include "vm/verifier.h" |
| 16 #include "vm/virtual_memory.h" | 16 #include "vm/virtual_memory.h" |
| 17 | 17 |
| 18 namespace dart { | 18 namespace dart { |
| 19 | 19 |
| 20 DEFINE_FLAG(bool, verbose_gc, false, "Enables verbose GC."); | 20 DEFINE_FLAG(bool, verbose_gc, false, "Enables verbose GC."); |
| 21 DEFINE_FLAG(bool, verify_before_gc, false, | 21 DEFINE_FLAG(bool, verify_before_gc, false, |
| 22 "Enables heap verification before GC."); | 22 "Enables heap verification before GC."); |
| 23 DEFINE_FLAG(bool, verify_after_gc, false, | 23 DEFINE_FLAG(bool, verify_after_gc, false, |
| 24 "Enables heap verification after GC."); | 24 "Enables heap verification after GC."); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 isolate()->IncrementNoGCScopeDepth(); | 187 isolate()->IncrementNoGCScopeDepth(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 | 190 |
| 191 NoGCScope::~NoGCScope() { | 191 NoGCScope::~NoGCScope() { |
| 192 isolate()->DecrementNoGCScopeDepth(); | 192 isolate()->DecrementNoGCScopeDepth(); |
| 193 } | 193 } |
| 194 #endif // defined(DEBUG) | 194 #endif // defined(DEBUG) |
| 195 | 195 |
| 196 } // namespace dart | 196 } // namespace dart |
| OLD | NEW |