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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 | 800 |
801 | 801 |
802 intptr_t RawWeakProperty::VisitWeakPropertyPointers( | 802 intptr_t RawWeakProperty::VisitWeakPropertyPointers( |
803 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { | 803 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { |
804 // Make sure that we got here with the tagged pointer as this. | 804 // Make sure that we got here with the tagged pointer as this. |
805 ASSERT(raw_obj->IsHeapObject()); | 805 ASSERT(raw_obj->IsHeapObject()); |
806 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 806 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
807 return WeakProperty::InstanceSize(); | 807 return WeakProperty::InstanceSize(); |
808 } | 808 } |
809 | 809 |
| 810 |
| 811 intptr_t RawMirrorReference::VisitMirrorReferencePointers( |
| 812 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { |
| 813 // Make sure that we got here with the tagged pointer as this. |
| 814 ASSERT(raw_obj->IsHeapObject()); |
| 815 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 816 return MirrorReference::InstanceSize(); |
| 817 } |
| 818 |
810 } // namespace dart | 819 } // namespace dart |
OLD | NEW |