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

Unified Diff: runtime/vm/become.h

Issue 2912863006: Inline instance object hash code into object header on 64 bit. (Closed)
Patch Set: Use visitor to give objects in VM isolate hash codes. Created 3 years, 7 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
Index: runtime/vm/become.h
diff --git a/runtime/vm/become.h b/runtime/vm/become.h
index 1784d22edb3e1f5373839c5d04c6f258f250e70e..33363ca539481eff648797f6e64857ce6a43f9f6 100644
--- a/runtime/vm/become.h
+++ b/runtime/vm/become.h
@@ -52,7 +52,10 @@ class ForwardingCorpse {
private:
// This layout mirrors the layout of RawObject.
- uword tags_;
+ uint32_t tags_;
+#if !defined(HASH_IN_OBJECT_HEADER)
+ int32_t hash_;
+#endif
RawObject* target_;
// Returns the address of the embedded size.
« no previous file with comments | « runtime/lib/object_patch.dart ('k') | runtime/vm/become.cc » ('j') | runtime/vm/heap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698