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/freelist.h" | 8 #include "vm/freelist.h" |
9 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 538 |
539 | 539 |
540 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj, | 540 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj, |
541 ObjectPointerVisitor* visitor) { | 541 ObjectPointerVisitor* visitor) { |
542 // Make sure that we got here with the tagged pointer as this. | 542 // Make sure that we got here with the tagged pointer as this. |
543 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 543 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
544 return ICData::InstanceSize(); | 544 return ICData::InstanceSize(); |
545 } | 545 } |
546 | 546 |
547 | 547 |
| 548 intptr_t RawMegamorphicCache::VisitMegamorphicCachePointers( |
| 549 RawMegamorphicCache* raw_obj, |
| 550 ObjectPointerVisitor* visitor) { |
| 551 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 552 return MegamorphicCache::InstanceSize(); |
| 553 } |
| 554 |
| 555 |
548 intptr_t RawSubtypeTestCache::VisitSubtypeTestCachePointers( | 556 intptr_t RawSubtypeTestCache::VisitSubtypeTestCachePointers( |
549 RawSubtypeTestCache* raw_obj, ObjectPointerVisitor* visitor) { | 557 RawSubtypeTestCache* raw_obj, ObjectPointerVisitor* visitor) { |
550 // Make sure that we got here with the tagged pointer as this. | 558 // Make sure that we got here with the tagged pointer as this. |
551 RawSubtypeTestCache* obj = raw_obj->ptr(); | 559 RawSubtypeTestCache* obj = raw_obj->ptr(); |
552 visitor->VisitPointer(reinterpret_cast<RawObject**>(&obj->cache_)); | 560 visitor->VisitPointer(reinterpret_cast<RawObject**>(&obj->cache_)); |
553 return SubtypeTestCache::InstanceSize(); | 561 return SubtypeTestCache::InstanceSize(); |
554 } | 562 } |
555 | 563 |
556 | 564 |
557 intptr_t RawError::VisitErrorPointers(RawError* raw_obj, | 565 intptr_t RawError::VisitErrorPointers(RawError* raw_obj, |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 | 970 |
963 intptr_t RawWeakProperty::VisitWeakPropertyPointers( | 971 intptr_t RawWeakProperty::VisitWeakPropertyPointers( |
964 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { | 972 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { |
965 // Make sure that we got here with the tagged pointer as this. | 973 // Make sure that we got here with the tagged pointer as this. |
966 ASSERT(raw_obj->IsHeapObject()); | 974 ASSERT(raw_obj->IsHeapObject()); |
967 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 975 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
968 return WeakProperty::InstanceSize(); | 976 return WeakProperty::InstanceSize(); |
969 } | 977 } |
970 | 978 |
971 } // namespace dart | 979 } // namespace dart |
OLD | NEW |