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/become.h" | 7 #include "vm/become.h" |
8 #include "vm/class_table.h" | 8 #include "vm/class_table.h" |
9 #include "vm/dart.h" | 9 #include "vm/dart.h" |
10 #include "vm/freelist.h" | 10 #include "vm/freelist.h" |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 | 628 |
629 | 629 |
630 intptr_t RawContextScope::VisitContextScopePointers( | 630 intptr_t RawContextScope::VisitContextScopePointers( |
631 RawContextScope* raw_obj, ObjectPointerVisitor* visitor) { | 631 RawContextScope* raw_obj, ObjectPointerVisitor* visitor) { |
632 intptr_t num_variables = raw_obj->ptr()->num_variables_; | 632 intptr_t num_variables = raw_obj->ptr()->num_variables_; |
633 visitor->VisitPointers(raw_obj->from(), raw_obj->to(num_variables)); | 633 visitor->VisitPointers(raw_obj->from(), raw_obj->to(num_variables)); |
634 return ContextScope::InstanceSize(num_variables); | 634 return ContextScope::InstanceSize(num_variables); |
635 } | 635 } |
636 | 636 |
637 | 637 |
| 638 intptr_t RawSingleTargetCache::VisitSingleTargetCachePointers( |
| 639 RawSingleTargetCache* raw_obj, ObjectPointerVisitor* visitor) { |
| 640 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 641 return SingleTargetCache::InstanceSize(); |
| 642 } |
| 643 |
| 644 |
638 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj, | 645 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj, |
639 ObjectPointerVisitor* visitor) { | 646 ObjectPointerVisitor* visitor) { |
640 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 647 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
641 return ICData::InstanceSize(); | 648 return ICData::InstanceSize(); |
642 } | 649 } |
643 | 650 |
644 | 651 |
645 intptr_t RawMegamorphicCache::VisitMegamorphicCachePointers( | 652 intptr_t RawMegamorphicCache::VisitMegamorphicCachePointers( |
646 RawMegamorphicCache* raw_obj, | 653 RawMegamorphicCache* raw_obj, |
647 ObjectPointerVisitor* visitor) { | 654 ObjectPointerVisitor* visitor) { |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 intptr_t RawUserTag::VisitUserTagPointers( | 960 intptr_t RawUserTag::VisitUserTagPointers( |
954 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { | 961 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { |
955 // Make sure that we got here with the tagged pointer as this. | 962 // Make sure that we got here with the tagged pointer as this. |
956 ASSERT(raw_obj->IsHeapObject()); | 963 ASSERT(raw_obj->IsHeapObject()); |
957 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 964 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
958 return UserTag::InstanceSize(); | 965 return UserTag::InstanceSize(); |
959 } | 966 } |
960 | 967 |
961 | 968 |
962 } // namespace dart | 969 } // namespace dart |
OLD | NEW |