| 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/become.h" | 7 #include "vm/become.h" |
| 8 #include "vm/class_table.h" | 8 #include "vm/class_table.h" |
| 9 #include "vm/dart.h" | 9 #include "vm/dart.h" |
| 10 #include "vm/freelist.h" | 10 #include "vm/freelist.h" |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 386 |
| 387 | 387 |
| 388 intptr_t RawClosureData::VisitClosureDataPointers( | 388 intptr_t RawClosureData::VisitClosureDataPointers( |
| 389 RawClosureData* raw_obj, | 389 RawClosureData* raw_obj, |
| 390 ObjectPointerVisitor* visitor) { | 390 ObjectPointerVisitor* visitor) { |
| 391 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 391 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 392 return ClosureData::InstanceSize(); | 392 return ClosureData::InstanceSize(); |
| 393 } | 393 } |
| 394 | 394 |
| 395 | 395 |
| 396 intptr_t RawSignatureData::VisitSignatureDataPointers( |
| 397 RawSignatureData* raw_obj, |
| 398 ObjectPointerVisitor* visitor) { |
| 399 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 400 return SignatureData::InstanceSize(); |
| 401 } |
| 402 |
| 403 |
| 396 intptr_t RawRedirectionData::VisitRedirectionDataPointers( | 404 intptr_t RawRedirectionData::VisitRedirectionDataPointers( |
| 397 RawRedirectionData* raw_obj, | 405 RawRedirectionData* raw_obj, |
| 398 ObjectPointerVisitor* visitor) { | 406 ObjectPointerVisitor* visitor) { |
| 399 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 407 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 400 return RedirectionData::InstanceSize(); | 408 return RedirectionData::InstanceSize(); |
| 401 } | 409 } |
| 402 | 410 |
| 403 | 411 |
| 404 bool RawFunction::CheckUsageCounter(RawFunction* raw_fun) { | 412 bool RawFunction::CheckUsageCounter(RawFunction* raw_fun) { |
| 405 // NOTE: This code runs while GC is in progress and runs within | 413 // NOTE: This code runs while GC is in progress and runs within |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 996 intptr_t RawUserTag::VisitUserTagPointers(RawUserTag* raw_obj, | 1004 intptr_t RawUserTag::VisitUserTagPointers(RawUserTag* raw_obj, |
| 997 ObjectPointerVisitor* visitor) { | 1005 ObjectPointerVisitor* visitor) { |
| 998 // Make sure that we got here with the tagged pointer as this. | 1006 // Make sure that we got here with the tagged pointer as this. |
| 999 ASSERT(raw_obj->IsHeapObject()); | 1007 ASSERT(raw_obj->IsHeapObject()); |
| 1000 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 1008 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 1001 return UserTag::InstanceSize(); | 1009 return UserTag::InstanceSize(); |
| 1002 } | 1010 } |
| 1003 | 1011 |
| 1004 | 1012 |
| 1005 } // namespace dart | 1013 } // namespace dart |
| OLD | NEW |