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 #ifndef VM_HANDLES_IMPL_H_ | 5 #ifndef RUNTIME_VM_HANDLES_IMPL_H_ |
6 #define VM_HANDLES_IMPL_H_ | 6 #define RUNTIME_VM_HANDLES_IMPL_H_ |
7 | 7 |
8 #include "vm/heap.h" | 8 #include "vm/heap.h" |
9 #include "vm/thread.h" | 9 #include "vm/thread.h" |
10 #include "vm/visitor.h" | 10 #include "vm/visitor.h" |
11 | 11 |
12 namespace dart { | 12 namespace dart { |
13 | 13 |
14 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> | 14 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> |
15 void Handles<kHandleSizeInWords, | 15 void Handles<kHandleSizeInWords, |
16 kHandlesPerChunk, | 16 kHandlesPerChunk, |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 361 |
362 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> | 362 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> |
363 int Handles<kHandleSizeInWords, | 363 int Handles<kHandleSizeInWords, |
364 kHandlesPerChunk, | 364 kHandlesPerChunk, |
365 kOffsetOfRawPtr>::HandlesBlock::HandleCount() const { | 365 kOffsetOfRawPtr>::HandlesBlock::HandleCount() const { |
366 return (next_handle_slot_ / kHandleSizeInWords); | 366 return (next_handle_slot_ / kHandleSizeInWords); |
367 } | 367 } |
368 | 368 |
369 } // namespace dart | 369 } // namespace dart |
370 | 370 |
371 #endif // VM_HANDLES_IMPL_H_ | 371 #endif // RUNTIME_VM_HANDLES_IMPL_H_ |
OLD | NEW |