| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 RUNTIME_VM_OBJECT_ID_RING_H_ | 5 #ifndef RUNTIME_VM_OBJECT_ID_RING_H_ |
| 6 #define RUNTIME_VM_OBJECT_ID_RING_H_ | 6 #define RUNTIME_VM_OBJECT_ID_RING_H_ |
| 7 | 7 |
| 8 #include "platform/globals.h" |
| 9 |
| 8 namespace dart { | 10 namespace dart { |
| 9 | 11 |
| 10 // Forward declarations. | 12 // Forward declarations. |
| 11 class RawObject; | 13 class RawObject; |
| 12 class Isolate; | 14 class Isolate; |
| 13 class ObjectPointerVisitor; | 15 class ObjectPointerVisitor; |
| 14 class JSONStream; | 16 class JSONStream; |
| 15 | 17 |
| 16 // A ring buffer of object pointers that have been given an id. An object | 18 // A ring buffer of object pointers that have been given an id. An object |
| 17 // may be pointed to by multiple ids. Objects contained in the ring will | 19 // may be pointed to by multiple ids. Objects contained in the ring will |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 int32_t IdOfIndex(int32_t index); | 78 int32_t IdOfIndex(int32_t index); |
| 77 bool IsValidContiguous(int32_t id); | 79 bool IsValidContiguous(int32_t id); |
| 78 bool IsValidId(int32_t id); | 80 bool IsValidId(int32_t id); |
| 79 | 81 |
| 80 DISALLOW_COPY_AND_ASSIGN(ObjectIdRing); | 82 DISALLOW_COPY_AND_ASSIGN(ObjectIdRing); |
| 81 }; | 83 }; |
| 82 | 84 |
| 83 } // namespace dart | 85 } // namespace dart |
| 84 | 86 |
| 85 #endif // RUNTIME_VM_OBJECT_ID_RING_H_ | 87 #endif // RUNTIME_VM_OBJECT_ID_RING_H_ |
| OLD | NEW |