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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 } | 329 } |
330 | 330 |
331 | 331 |
332 intptr_t RawType::VisitTypePointers( | 332 intptr_t RawType::VisitTypePointers( |
333 RawType* raw_obj, ObjectPointerVisitor* visitor) { | 333 RawType* raw_obj, ObjectPointerVisitor* visitor) { |
334 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 334 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
335 return Type::InstanceSize(); | 335 return Type::InstanceSize(); |
336 } | 336 } |
337 | 337 |
338 | 338 |
| 339 intptr_t RawFunctionType::VisitFunctionTypePointers( |
| 340 RawFunctionType* raw_obj, ObjectPointerVisitor* visitor) { |
| 341 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 342 return FunctionType::InstanceSize(); |
| 343 } |
| 344 |
| 345 |
339 intptr_t RawTypeRef::VisitTypeRefPointers( | 346 intptr_t RawTypeRef::VisitTypeRefPointers( |
340 RawTypeRef* raw_obj, ObjectPointerVisitor* visitor) { | 347 RawTypeRef* raw_obj, ObjectPointerVisitor* visitor) { |
341 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 348 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
342 return TypeRef::InstanceSize(); | 349 return TypeRef::InstanceSize(); |
343 } | 350 } |
344 | 351 |
345 | 352 |
346 intptr_t RawTypeParameter::VisitTypeParameterPointers( | 353 intptr_t RawTypeParameter::VisitTypeParameterPointers( |
347 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { | 354 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { |
348 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 355 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
(...skipping 23 matching lines...) Expand all Loading... |
372 } | 379 } |
373 | 380 |
374 | 381 |
375 intptr_t RawPatchClass::VisitPatchClassPointers(RawPatchClass* raw_obj, | 382 intptr_t RawPatchClass::VisitPatchClassPointers(RawPatchClass* raw_obj, |
376 ObjectPointerVisitor* visitor) { | 383 ObjectPointerVisitor* visitor) { |
377 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 384 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
378 return PatchClass::InstanceSize(); | 385 return PatchClass::InstanceSize(); |
379 } | 386 } |
380 | 387 |
381 | 388 |
| 389 intptr_t RawClosure::VisitClosurePointers( |
| 390 RawClosure* raw_obj, ObjectPointerVisitor* visitor) { |
| 391 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 392 return Closure::InstanceSize(); |
| 393 } |
| 394 |
| 395 |
382 intptr_t RawClosureData::VisitClosureDataPointers( | 396 intptr_t RawClosureData::VisitClosureDataPointers( |
383 RawClosureData* raw_obj, ObjectPointerVisitor* visitor) { | 397 RawClosureData* raw_obj, ObjectPointerVisitor* visitor) { |
384 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 398 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
385 return ClosureData::InstanceSize(); | 399 return ClosureData::InstanceSize(); |
386 } | 400 } |
387 | 401 |
388 | 402 |
389 intptr_t RawRedirectionData::VisitRedirectionDataPointers( | 403 intptr_t RawRedirectionData::VisitRedirectionDataPointers( |
390 RawRedirectionData* raw_obj, ObjectPointerVisitor* visitor) { | 404 RawRedirectionData* raw_obj, ObjectPointerVisitor* visitor) { |
391 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 405 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 intptr_t RawUserTag::VisitUserTagPointers( | 948 intptr_t RawUserTag::VisitUserTagPointers( |
935 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { | 949 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { |
936 // Make sure that we got here with the tagged pointer as this. | 950 // Make sure that we got here with the tagged pointer as this. |
937 ASSERT(raw_obj->IsHeapObject()); | 951 ASSERT(raw_obj->IsHeapObject()); |
938 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 952 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
939 return UserTag::InstanceSize(); | 953 return UserTag::InstanceSize(); |
940 } | 954 } |
941 | 955 |
942 | 956 |
943 } // namespace dart | 957 } // namespace dart |
OLD | NEW |