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

Unified Diff: runtime/vm/raw_object.h

Issue 380333002: Add VM class for Map/LinkedHashMap. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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/object_store.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 38576)
+++ runtime/vm/raw_object.h (working copy)
@@ -72,6 +72,7 @@
V(JSRegExp) \
V(WeakProperty) \
V(MirrorReference) \
+ V(LinkedHashMap) \
V(UserTag) \
#define CLASS_LIST_ARRAYS(V) \
@@ -1498,6 +1499,7 @@
friend class RawImmutableArray;
friend class SnapshotReader;
friend class GrowableObjectArray;
+ friend class LinkedHashMap;
friend class Object;
friend class ICData; // For high performance access.
friend class SubtypeTestCache; // For high performance access.
@@ -1528,6 +1530,23 @@
};
+class RawLinkedHashMap : public RawInstance {
+ RAW_HEAP_OBJECT_IMPLEMENTATION(LinkedHashMap);
+
+ RawObject** from() {
+ return reinterpret_cast<RawObject**>(&ptr()->type_arguments_);
+ }
+ RawTypeArguments* type_arguments_;
+ RawInstance* cme_mark_;
+ RawArray* data_;
+ RawObject** to() {
+ return reinterpret_cast<RawObject**>(&ptr()->data_);
+ }
+
+ friend class SnapshotReader;
+};
+
+
class RawFloat32x4 : public RawInstance {
RAW_HEAP_OBJECT_IMPLEMENTATION(Float32x4);
« no previous file with comments | « runtime/vm/object_store.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698