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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 RawExternalTypedData* raw_obj = | 236 RawExternalTypedData* raw_obj = |
237 reinterpret_cast<RawExternalTypedData*>(this); | 237 reinterpret_cast<RawExternalTypedData*>(this); |
238 size = RawExternalTypedData::VisitExternalTypedDataPointers(raw_obj, | 238 size = RawExternalTypedData::VisitExternalTypedDataPointers(raw_obj, |
239 visitor); | 239 visitor); |
240 break; | 240 break; |
241 } | 241 } |
242 #undef RAW_VISITPOINTERS | 242 #undef RAW_VISITPOINTERS |
243 #define RAW_VISITPOINTERS(clazz) \ | 243 #define RAW_VISITPOINTERS(clazz) \ |
244 case kTypedData##clazz##ViewCid: | 244 case kTypedData##clazz##ViewCid: |
245 CLASS_LIST_TYPED_DATA(RAW_VISITPOINTERS) | 245 CLASS_LIST_TYPED_DATA(RAW_VISITPOINTERS) |
246 case kByteDataViewCid: { | 246 case kByteDataViewCid: |
| 247 case kByteBufferCid: { |
247 RawInstance* raw_obj = reinterpret_cast<RawInstance*>(this); | 248 RawInstance* raw_obj = reinterpret_cast<RawInstance*>(this); |
248 size = RawInstance::VisitInstancePointers(raw_obj, visitor); | 249 size = RawInstance::VisitInstancePointers(raw_obj, visitor); |
249 break; | 250 break; |
250 } | 251 } |
251 #undef RAW_VISITPOINTERS | 252 #undef RAW_VISITPOINTERS |
252 case kFreeListElement: { | 253 case kFreeListElement: { |
253 uword addr = RawObject::ToAddr(const_cast<RawObject*>(this)); | 254 uword addr = RawObject::ToAddr(const_cast<RawObject*>(this)); |
254 FreeListElement* element = reinterpret_cast<FreeListElement*>(addr); | 255 FreeListElement* element = reinterpret_cast<FreeListElement*>(addr); |
255 size = element->Size(); | 256 size = element->Size(); |
256 break; | 257 break; |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 intptr_t RawUserTag::VisitUserTagPointers( | 880 intptr_t RawUserTag::VisitUserTagPointers( |
880 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { | 881 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { |
881 // Make sure that we got here with the tagged pointer as this. | 882 // Make sure that we got here with the tagged pointer as this. |
882 ASSERT(raw_obj->IsHeapObject()); | 883 ASSERT(raw_obj->IsHeapObject()); |
883 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 884 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
884 return UserTag::InstanceSize(); | 885 return UserTag::InstanceSize(); |
885 } | 886 } |
886 | 887 |
887 | 888 |
888 } // namespace dart | 889 } // namespace dart |
OLD | NEW |