| OLD | NEW |
| 1 // Copyright (c) 2011, 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 #ifndef VM_HANDLES_IMPL_H_ | 5 #ifndef VM_HANDLES_IMPL_H_ |
| 6 #define VM_HANDLES_IMPL_H_ | 6 #define VM_HANDLES_IMPL_H_ |
| 7 | 7 |
| 8 #include "vm/visitor.h" |
| 9 |
| 8 namespace dart { | 10 namespace dart { |
| 9 | 11 |
| 10 DECLARE_DEBUG_FLAG(bool, trace_handles_count); | 12 DECLARE_DEBUG_FLAG(bool, trace_handles_count); |
| 11 | 13 |
| 12 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> | 14 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> |
| 13 void Handles<kHandleSizeInWords, | 15 void Handles<kHandleSizeInWords, |
| 14 kHandlesPerChunk, | 16 kHandlesPerChunk, |
| 15 kOffsetOfRawPtr>::VisitObjectPointers( | 17 kOffsetOfRawPtr>::VisitObjectPointers( |
| 16 ObjectPointerVisitor* visitor) { | 18 ObjectPointerVisitor* visitor) { |
| 17 // Visit all zone handles. | 19 // Visit all zone handles. |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> | 328 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> |
| 327 int Handles<kHandleSizeInWords, | 329 int Handles<kHandleSizeInWords, |
| 328 kHandlesPerChunk, | 330 kHandlesPerChunk, |
| 329 kOffsetOfRawPtr>::HandlesBlock::HandleCount() const { | 331 kOffsetOfRawPtr>::HandlesBlock::HandleCount() const { |
| 330 return (next_handle_slot_ / kHandleSizeInWords); | 332 return (next_handle_slot_ / kHandleSizeInWords); |
| 331 } | 333 } |
| 332 | 334 |
| 333 } // namespace dart | 335 } // namespace dart |
| 334 | 336 |
| 335 #endif // VM_HANDLES_IMPL_H_ | 337 #endif // VM_HANDLES_IMPL_H_ |
| OLD | NEW |