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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 } | 349 } |
350 | 350 |
351 | 351 |
352 intptr_t RawTypeParameter::VisitTypeParameterPointers( | 352 intptr_t RawTypeParameter::VisitTypeParameterPointers( |
353 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { | 353 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { |
354 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 354 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
355 return TypeParameter::InstanceSize(); | 355 return TypeParameter::InstanceSize(); |
356 } | 356 } |
357 | 357 |
358 | 358 |
| 359 intptr_t RawBoundedType::VisitBoundedTypePointers( |
| 360 RawBoundedType* raw_obj, ObjectPointerVisitor* visitor) { |
| 361 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 362 return BoundedType::InstanceSize(); |
| 363 } |
| 364 |
| 365 |
359 intptr_t RawAbstractTypeArguments::VisitAbstractTypeArgumentsPointers( | 366 intptr_t RawAbstractTypeArguments::VisitAbstractTypeArgumentsPointers( |
360 RawAbstractTypeArguments* raw_obj, ObjectPointerVisitor* visitor) { | 367 RawAbstractTypeArguments* raw_obj, ObjectPointerVisitor* visitor) { |
361 // RawAbstractTypeArguments is an abstract class. | 368 // RawAbstractTypeArguments is an abstract class. |
362 UNREACHABLE(); | 369 UNREACHABLE(); |
363 return 0; | 370 return 0; |
364 } | 371 } |
365 | 372 |
366 | 373 |
367 intptr_t RawTypeArguments::VisitTypeArgumentsPointers( | 374 intptr_t RawTypeArguments::VisitTypeArgumentsPointers( |
368 RawTypeArguments* raw_obj, ObjectPointerVisitor* visitor) { | 375 RawTypeArguments* raw_obj, ObjectPointerVisitor* visitor) { |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 | 1056 |
1050 intptr_t RawWeakProperty::VisitWeakPropertyPointers( | 1057 intptr_t RawWeakProperty::VisitWeakPropertyPointers( |
1051 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { | 1058 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { |
1052 // Make sure that we got here with the tagged pointer as this. | 1059 // Make sure that we got here with the tagged pointer as this. |
1053 ASSERT(raw_obj->IsHeapObject()); | 1060 ASSERT(raw_obj->IsHeapObject()); |
1054 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 1061 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
1055 return WeakProperty::InstanceSize(); | 1062 return WeakProperty::InstanceSize(); |
1056 } | 1063 } |
1057 | 1064 |
1058 } // namespace dart | 1065 } // namespace dart |
OLD | NEW |