| 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 "platform/assert.h" | 5 #include "platform/assert.h" |
| 6 #include "platform/utils.h" |
| 6 #include "vm/handles.h" | 7 #include "vm/handles.h" |
| 7 #include "vm/flags.h" | 8 #include "vm/flags.h" |
| 8 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
| 9 #include "vm/os.h" | 10 #include "vm/os.h" |
| 10 #include "vm/raw_object.h" | 11 #include "vm/raw_object.h" |
| 11 #include "vm/utils.h" | |
| 12 #include "vm/visitor.h" | 12 #include "vm/visitor.h" |
| 13 #include "vm/zone.h" | 13 #include "vm/zone.h" |
| 14 | 14 |
| 15 #include "vm/handles_impl.h" | 15 #include "vm/handles_impl.h" |
| 16 | 16 |
| 17 namespace dart { | 17 namespace dart { |
| 18 | 18 |
| 19 DEFINE_DEBUG_FLAG(bool, trace_handles_count, | 19 DEFINE_DEBUG_FLAG(bool, trace_handles_count, |
| 20 false, "Trace count of handles allocated."); | 20 false, "Trace count of handles allocated."); |
| 21 | 21 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 isolate->IncrementNoHandleScopeDepth(); | 101 isolate->IncrementNoHandleScopeDepth(); |
| 102 } | 102 } |
| 103 | 103 |
| 104 | 104 |
| 105 NoHandleScope::~NoHandleScope() { | 105 NoHandleScope::~NoHandleScope() { |
| 106 isolate()->DecrementNoHandleScopeDepth(); | 106 isolate()->DecrementNoHandleScopeDepth(); |
| 107 } | 107 } |
| 108 #endif // defined(DEBUG) | 108 #endif // defined(DEBUG) |
| 109 | 109 |
| 110 } // namespace dart | 110 } // namespace dart |
| OLD | NEW |