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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 } | 374 } |
375 | 375 |
376 | 376 |
377 intptr_t RawClosureData::VisitClosureDataPointers( | 377 intptr_t RawClosureData::VisitClosureDataPointers( |
378 RawClosureData* raw_obj, ObjectPointerVisitor* visitor) { | 378 RawClosureData* raw_obj, ObjectPointerVisitor* visitor) { |
379 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 379 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
380 return ClosureData::InstanceSize(); | 380 return ClosureData::InstanceSize(); |
381 } | 381 } |
382 | 382 |
383 | 383 |
| 384 intptr_t RawRedirectionData::VisitRedirectionDataPointers( |
| 385 RawRedirectionData* raw_obj, ObjectPointerVisitor* visitor) { |
| 386 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 387 return RedirectionData::InstanceSize(); |
| 388 } |
| 389 |
| 390 |
384 intptr_t RawFunction::VisitFunctionPointers(RawFunction* raw_obj, | 391 intptr_t RawFunction::VisitFunctionPointers(RawFunction* raw_obj, |
385 ObjectPointerVisitor* visitor) { | 392 ObjectPointerVisitor* visitor) { |
386 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 393 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
387 return Function::InstanceSize(); | 394 return Function::InstanceSize(); |
388 } | 395 } |
389 | 396 |
390 | 397 |
391 intptr_t RawField::VisitFieldPointers(RawField* raw_obj, | 398 intptr_t RawField::VisitFieldPointers(RawField* raw_obj, |
392 ObjectPointerVisitor* visitor) { | 399 ObjectPointerVisitor* visitor) { |
393 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 400 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 | 987 |
981 intptr_t RawWeakProperty::VisitWeakPropertyPointers( | 988 intptr_t RawWeakProperty::VisitWeakPropertyPointers( |
982 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { | 989 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { |
983 // Make sure that we got here with the tagged pointer as this. | 990 // Make sure that we got here with the tagged pointer as this. |
984 ASSERT(raw_obj->IsHeapObject()); | 991 ASSERT(raw_obj->IsHeapObject()); |
985 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 992 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
986 return WeakProperty::InstanceSize(); | 993 return WeakProperty::InstanceSize(); |
987 } | 994 } |
988 | 995 |
989 } // namespace dart | 996 } // namespace dart |
OLD | NEW |