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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 } | 367 } |
368 | 368 |
369 | 369 |
370 intptr_t RawPatchClass::VisitPatchClassPointers(RawPatchClass* raw_obj, | 370 intptr_t RawPatchClass::VisitPatchClassPointers(RawPatchClass* raw_obj, |
371 ObjectPointerVisitor* visitor) { | 371 ObjectPointerVisitor* visitor) { |
372 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 372 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
373 return PatchClass::InstanceSize(); | 373 return PatchClass::InstanceSize(); |
374 } | 374 } |
375 | 375 |
376 | 376 |
| 377 intptr_t RawClosureData::VisitClosureDataPointers( |
| 378 RawClosureData* raw_obj, ObjectPointerVisitor* visitor) { |
| 379 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 380 return ClosureData::InstanceSize(); |
| 381 } |
| 382 |
| 383 |
377 intptr_t RawFunction::VisitFunctionPointers(RawFunction* raw_obj, | 384 intptr_t RawFunction::VisitFunctionPointers(RawFunction* raw_obj, |
378 ObjectPointerVisitor* visitor) { | 385 ObjectPointerVisitor* visitor) { |
379 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 386 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
380 return Function::InstanceSize(); | 387 return Function::InstanceSize(); |
381 } | 388 } |
382 | 389 |
383 | 390 |
384 intptr_t RawField::VisitFieldPointers(RawField* raw_obj, | 391 intptr_t RawField::VisitFieldPointers(RawField* 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()); |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 | 980 |
974 intptr_t RawWeakProperty::VisitWeakPropertyPointers( | 981 intptr_t RawWeakProperty::VisitWeakPropertyPointers( |
975 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { | 982 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { |
976 // Make sure that we got here with the tagged pointer as this. | 983 // Make sure that we got here with the tagged pointer as this. |
977 ASSERT(raw_obj->IsHeapObject()); | 984 ASSERT(raw_obj->IsHeapObject()); |
978 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 985 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
979 return WeakProperty::InstanceSize(); | 986 return WeakProperty::InstanceSize(); |
980 } | 987 } |
981 | 988 |
982 } // namespace dart | 989 } // namespace dart |
OLD | NEW |