| Index: runtime/vm/heap.h
|
| diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
|
| index 64b7499d7962a25f0b85cf721737264c3ca1aa5c..8a21f26143cb26b510eec0c8f4f1b4a438a70291 100644
|
| --- a/runtime/vm/heap.h
|
| +++ b/runtime/vm/heap.h
|
| @@ -33,7 +33,14 @@ class Heap {
|
| kCode,
|
| };
|
|
|
| - enum WeakSelector { kPeers = 0, kHashes, kObjectIds, kNumWeakSelectors };
|
| + enum WeakSelector {
|
| + kPeers = 0,
|
| +#if !defined(HASH_IN_OBJECT_HEADER)
|
| + kHashes,
|
| +#endif
|
| + kObjectIds,
|
| + kNumWeakSelectors
|
| + };
|
|
|
| enum ApiCallbacks { kIgnoreApiCallbacks, kInvokeApiCallbacks };
|
|
|
| @@ -167,6 +174,7 @@ class Heap {
|
| }
|
| int64_t PeerCount() const;
|
|
|
| +#if !defined(HASH_IN_OBJECT_HEADER)
|
| // Associate an identity hashCode with an object. An non-existent hashCode
|
| // is equal to 0.
|
| void SetHash(RawObject* raw_obj, intptr_t hash) {
|
| @@ -175,6 +183,7 @@ class Heap {
|
| intptr_t GetHash(RawObject* raw_obj) const {
|
| return GetWeakEntry(raw_obj, kHashes);
|
| }
|
| +#endif
|
| int64_t HashCount() const;
|
|
|
| // Associate an id with an object (used when serializing an object).
|
|
|