| Index: runtime/vm/heap.h
|
| diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
|
| index 0c0a444dabc34ebfbfe441fd718079d3daab81fd..d2f02f392a885d96b8c0058ec4b7b05627aaa928 100644
|
| --- a/runtime/vm/heap.h
|
| +++ b/runtime/vm/heap.h
|
| @@ -156,6 +156,17 @@ class Heap {
|
|
|
| static const char* GCReasonToString(GCReason gc_reason);
|
|
|
| + // Associates a peer with an object. If an object has a peer, it is
|
| + // replaced. A value of NULL disassociate an object from its peer.
|
| + void SetPeer(RawObject* raw_obj, void* peer);
|
| +
|
| + // Retrieves the peer associated with an object. Returns NULL if
|
| + // there is no association.
|
| + void* GetPeer(RawObject* raw_obj);
|
| +
|
| + // Returns the number of objects with a peer.
|
| + int64_t PeerCount() const;
|
| +
|
| private:
|
| Heap();
|
|
|
|
|