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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 | 829 |
830 | 830 |
831 intptr_t RawMirrorReference::VisitMirrorReferencePointers( | 831 intptr_t RawMirrorReference::VisitMirrorReferencePointers( |
832 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { | 832 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { |
833 // Make sure that we got here with the tagged pointer as this. | 833 // Make sure that we got here with the tagged pointer as this. |
834 ASSERT(raw_obj->IsHeapObject()); | 834 ASSERT(raw_obj->IsHeapObject()); |
835 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 835 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
836 return MirrorReference::InstanceSize(); | 836 return MirrorReference::InstanceSize(); |
837 } | 837 } |
838 | 838 |
| 839 |
| 840 intptr_t RawUserTag::VisitUserTagPointers( |
| 841 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { |
| 842 // Make sure that we got here with the tagged pointer as this. |
| 843 ASSERT(raw_obj->IsHeapObject()); |
| 844 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 845 return UserTag::InstanceSize(); |
| 846 } |
| 847 |
| 848 |
839 } // namespace dart | 849 } // namespace dart |
OLD | NEW |