Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: runtime/vm/heap.h

Issue 2953753002: Revert "Inline instance object hash code into object header on 64 bit." (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/freelist.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index a2fa51f8c27613e538ea3addea706fa8c58093d8..1c9968660d3b4a96ce05df568205a7735f400f81 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -33,14 +33,7 @@ class Heap {
kCode,
};
- enum WeakSelector {
- kPeers = 0,
-#if !defined(HASH_IN_OBJECT_HEADER)
- kHashes,
-#endif
- kObjectIds,
- kNumWeakSelectors
- };
+ enum WeakSelector { kPeers = 0, kHashes, kObjectIds, kNumWeakSelectors };
enum ApiCallbacks { kIgnoreApiCallbacks, kInvokeApiCallbacks };
@@ -180,7 +173,6 @@ 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) {
@@ -189,7 +181,6 @@ 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).
« no previous file with comments | « runtime/vm/freelist.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698