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

Side by Side Diff: runtime/vm/raw_object.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/raw_object.h" 5 #include "vm/raw_object.h"
6 6
7 #include "vm/class_table.h" 7 #include "vm/class_table.h"
8 #include "vm/dart.h" 8 #include "vm/dart.h"
9 #include "vm/freelist.h" 9 #include "vm/freelist.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 } 766 }
767 767
768 768
769 intptr_t RawGrowableObjectArray::VisitGrowableObjectArrayPointers( 769 intptr_t RawGrowableObjectArray::VisitGrowableObjectArrayPointers(
770 RawGrowableObjectArray* raw_obj, ObjectPointerVisitor* visitor) { 770 RawGrowableObjectArray* raw_obj, ObjectPointerVisitor* visitor) {
771 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 771 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
772 return GrowableObjectArray::InstanceSize(); 772 return GrowableObjectArray::InstanceSize();
773 } 773 }
774 774
775 775
776 intptr_t RawLinkedHashMap::VisitLinkedHashMapPointers(
777 RawLinkedHashMap* raw_obj, ObjectPointerVisitor* visitor) {
778 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
779 return LinkedHashMap::InstanceSize();
780 }
781
782
776 intptr_t RawFloat32x4::VisitFloat32x4Pointers( 783 intptr_t RawFloat32x4::VisitFloat32x4Pointers(
777 RawFloat32x4* raw_obj, 784 RawFloat32x4* raw_obj,
778 ObjectPointerVisitor* visitor) { 785 ObjectPointerVisitor* visitor) {
779 ASSERT(raw_obj->IsHeapObject()); 786 ASSERT(raw_obj->IsHeapObject());
780 return Float32x4::InstanceSize(); 787 return Float32x4::InstanceSize();
781 } 788 }
782 789
783 790
784 intptr_t RawInt32x4::VisitInt32x4Pointers( 791 intptr_t RawInt32x4::VisitInt32x4Pointers(
785 RawInt32x4* raw_obj, 792 RawInt32x4* raw_obj,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 intptr_t RawUserTag::VisitUserTagPointers( 888 intptr_t RawUserTag::VisitUserTagPointers(
882 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { 889 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) {
883 // Make sure that we got here with the tagged pointer as this. 890 // Make sure that we got here with the tagged pointer as this.
884 ASSERT(raw_obj->IsHeapObject()); 891 ASSERT(raw_obj->IsHeapObject());
885 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 892 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
886 return UserTag::InstanceSize(); 893 return UserTag::InstanceSize();
887 } 894 }
888 895
889 896
890 } // namespace dart 897 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698