| 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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 792 | 792 | 
| 793 | 793 | 
| 794 intptr_t RawExternalTypedData::VisitExternalTypedDataPointers( | 794 intptr_t RawExternalTypedData::VisitExternalTypedDataPointers( | 
| 795     RawExternalTypedData* raw_obj, ObjectPointerVisitor* visitor) { | 795     RawExternalTypedData* raw_obj, ObjectPointerVisitor* visitor) { | 
| 796   // Make sure that we got here with the tagged pointer as this. | 796   // Make sure that we got here with the tagged pointer as this. | 
| 797   ASSERT(raw_obj->IsHeapObject()); | 797   ASSERT(raw_obj->IsHeapObject()); | 
| 798   visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 798   visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 
| 799   return ExternalTypedData::InstanceSize(); | 799   return ExternalTypedData::InstanceSize(); | 
| 800 } | 800 } | 
| 801 | 801 | 
|  | 802 intptr_t RawCapability::VisitCapabilityPointers(RawCapability* raw_obj, | 
|  | 803                                                 ObjectPointerVisitor* visitor) { | 
|  | 804   // Make sure that we got here with the tagged pointer as this. | 
|  | 805   ASSERT(raw_obj->IsHeapObject()); | 
|  | 806   return Capability::InstanceSize(); | 
|  | 807 } | 
|  | 808 | 
|  | 809 | 
|  | 810 intptr_t RawReceivePort::VisitReceivePortPointers( | 
|  | 811     RawReceivePort* raw_obj, ObjectPointerVisitor* visitor) { | 
|  | 812   // Make sure that we got here with the tagged pointer as this. | 
|  | 813   ASSERT(raw_obj->IsHeapObject()); | 
|  | 814   visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 
|  | 815   return ReceivePort::InstanceSize(); | 
|  | 816 } | 
|  | 817 | 
|  | 818 | 
|  | 819 intptr_t RawSendPort::VisitSendPortPointers(RawSendPort* raw_obj, | 
|  | 820                                             ObjectPointerVisitor* visitor) { | 
|  | 821   // Make sure that we got here with the tagged pointer as this. | 
|  | 822   ASSERT(raw_obj->IsHeapObject()); | 
|  | 823   return SendPort::InstanceSize(); | 
|  | 824 } | 
|  | 825 | 
| 802 | 826 | 
| 803 intptr_t RawStacktrace::VisitStacktracePointers(RawStacktrace* raw_obj, | 827 intptr_t RawStacktrace::VisitStacktracePointers(RawStacktrace* raw_obj, | 
| 804                                                 ObjectPointerVisitor* visitor) { | 828                                                 ObjectPointerVisitor* visitor) { | 
| 805   // Make sure that we got here with the tagged pointer as this. | 829   // Make sure that we got here with the tagged pointer as this. | 
| 806   ASSERT(raw_obj->IsHeapObject()); | 830   ASSERT(raw_obj->IsHeapObject()); | 
| 807   visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 831   visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 
| 808   return Stacktrace::InstanceSize(); | 832   return Stacktrace::InstanceSize(); | 
| 809 } | 833 } | 
| 810 | 834 | 
| 811 | 835 | 
| (...skipping 28 matching lines...) Expand all  Loading... | 
| 840 intptr_t RawUserTag::VisitUserTagPointers( | 864 intptr_t RawUserTag::VisitUserTagPointers( | 
| 841     RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { | 865     RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { | 
| 842   // Make sure that we got here with the tagged pointer as this. | 866   // Make sure that we got here with the tagged pointer as this. | 
| 843   ASSERT(raw_obj->IsHeapObject()); | 867   ASSERT(raw_obj->IsHeapObject()); | 
| 844   visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 868   visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 
| 845   return UserTag::InstanceSize(); | 869   return UserTag::InstanceSize(); | 
| 846 } | 870 } | 
| 847 | 871 | 
| 848 | 872 | 
| 849 }  // namespace dart | 873 }  // namespace dart | 
| OLD | NEW | 
|---|