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