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

Unified Diff: runtime/vm/raw_object.h

Issue 1151523002: VM-internalize the default Map implementation. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Ready for review. Created 5 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/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index 217f30f4bf54851e7e75a45ce60e0de3add2c71d..61fd88135fe15e18ebfdf8b428f1b026da2ceac8 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -1689,11 +1689,15 @@ class RawLinkedHashMap : public RawInstance {
return reinterpret_cast<RawObject**>(&ptr()->type_arguments_);
}
RawTypeArguments* type_arguments_;
- RawInstance* cme_mark_;
RawArray* data_;
+ RawTypedData* index_;
RawObject** to() {
- return reinterpret_cast<RawObject**>(&ptr()->data_);
+ return reinterpret_cast<RawObject**>(&ptr()->index_);
}
+ // No heap object pointers after index_.
+ RawSmi* hash_mask_;
+ RawSmi* used_data_;
+ RawSmi* deleted_keys_;
siva 2015/05/22 16:27:11 We have always put the RawSmi* fields also inside
koda 2015/05/26 12:22:04 Done.
friend class SnapshotReader;
};

Powered by Google App Engine
This is Rietveld 408576698