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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 } | 294 } |
295 | 295 |
296 | 296 |
297 intptr_t RawType::VisitTypePointers( | 297 intptr_t RawType::VisitTypePointers( |
298 RawType* raw_obj, ObjectPointerVisitor* visitor) { | 298 RawType* raw_obj, ObjectPointerVisitor* visitor) { |
299 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 299 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
300 return Type::InstanceSize(); | 300 return Type::InstanceSize(); |
301 } | 301 } |
302 | 302 |
303 | 303 |
| 304 intptr_t RawTypeRef::VisitTypeRefPointers( |
| 305 RawTypeRef* raw_obj, ObjectPointerVisitor* visitor) { |
| 306 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 307 return TypeRef::InstanceSize(); |
| 308 } |
| 309 |
| 310 |
304 intptr_t RawTypeParameter::VisitTypeParameterPointers( | 311 intptr_t RawTypeParameter::VisitTypeParameterPointers( |
305 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { | 312 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { |
306 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 313 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
307 return TypeParameter::InstanceSize(); | 314 return TypeParameter::InstanceSize(); |
308 } | 315 } |
309 | 316 |
310 | 317 |
311 intptr_t RawBoundedType::VisitBoundedTypePointers( | 318 intptr_t RawBoundedType::VisitBoundedTypePointers( |
312 RawBoundedType* raw_obj, ObjectPointerVisitor* visitor) { | 319 RawBoundedType* raw_obj, ObjectPointerVisitor* visitor) { |
313 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 320 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 | 843 |
837 intptr_t RawMirrorReference::VisitMirrorReferencePointers( | 844 intptr_t RawMirrorReference::VisitMirrorReferencePointers( |
838 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { | 845 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { |
839 // Make sure that we got here with the tagged pointer as this. | 846 // Make sure that we got here with the tagged pointer as this. |
840 ASSERT(raw_obj->IsHeapObject()); | 847 ASSERT(raw_obj->IsHeapObject()); |
841 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 848 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
842 return MirrorReference::InstanceSize(); | 849 return MirrorReference::InstanceSize(); |
843 } | 850 } |
844 | 851 |
845 } // namespace dart | 852 } // namespace dart |
OLD | NEW |