OLD | NEW |
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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 } | 749 } |
750 | 750 |
751 | 751 |
752 intptr_t RawGrowableObjectArray::VisitGrowableObjectArrayPointers( | 752 intptr_t RawGrowableObjectArray::VisitGrowableObjectArrayPointers( |
753 RawGrowableObjectArray* raw_obj, ObjectPointerVisitor* visitor) { | 753 RawGrowableObjectArray* raw_obj, ObjectPointerVisitor* visitor) { |
754 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 754 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
755 return GrowableObjectArray::InstanceSize(); | 755 return GrowableObjectArray::InstanceSize(); |
756 } | 756 } |
757 | 757 |
758 | 758 |
| 759 intptr_t RawLinkedHashMap::VisitLinkedHashMapPointers( |
| 760 RawLinkedHashMap* raw_obj, ObjectPointerVisitor* visitor) { |
| 761 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 762 return LinkedHashMap::InstanceSize(); |
| 763 } |
| 764 |
| 765 |
759 intptr_t RawFloat32x4::VisitFloat32x4Pointers( | 766 intptr_t RawFloat32x4::VisitFloat32x4Pointers( |
760 RawFloat32x4* raw_obj, | 767 RawFloat32x4* raw_obj, |
761 ObjectPointerVisitor* visitor) { | 768 ObjectPointerVisitor* visitor) { |
762 ASSERT(raw_obj->IsHeapObject()); | 769 ASSERT(raw_obj->IsHeapObject()); |
763 return Float32x4::InstanceSize(); | 770 return Float32x4::InstanceSize(); |
764 } | 771 } |
765 | 772 |
766 | 773 |
767 intptr_t RawInt32x4::VisitInt32x4Pointers( | 774 intptr_t RawInt32x4::VisitInt32x4Pointers( |
768 RawInt32x4* raw_obj, | 775 RawInt32x4* raw_obj, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 intptr_t RawUserTag::VisitUserTagPointers( | 871 intptr_t RawUserTag::VisitUserTagPointers( |
865 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { | 872 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { |
866 // Make sure that we got here with the tagged pointer as this. | 873 // Make sure that we got here with the tagged pointer as this. |
867 ASSERT(raw_obj->IsHeapObject()); | 874 ASSERT(raw_obj->IsHeapObject()); |
868 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 875 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
869 return UserTag::InstanceSize(); | 876 return UserTag::InstanceSize(); |
870 } | 877 } |
871 | 878 |
872 | 879 |
873 } // namespace dart | 880 } // namespace dart |
OLD | NEW |