| 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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 | 752 |
| 753 intptr_t RawBigint::VisitBigintPointers(RawBigint* raw_obj, | 753 intptr_t RawBigint::VisitBigintPointers(RawBigint* raw_obj, |
| 754 ObjectPointerVisitor* visitor) { | 754 ObjectPointerVisitor* visitor) { |
| 755 // Make sure that we got here with the tagged pointer as this. | 755 // Make sure that we got here with the tagged pointer as this. |
| 756 ASSERT(raw_obj->IsHeapObject()); | 756 ASSERT(raw_obj->IsHeapObject()); |
| 757 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 757 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 758 return Bigint::InstanceSize(); | 758 return Bigint::InstanceSize(); |
| 759 } | 759 } |
| 760 | 760 |
| 761 | 761 |
| 762 intptr_t RawFraction::VisitFractionPointers(RawFraction* raw_obj, |
| 763 ObjectPointerVisitor* visitor) { |
| 764 // Make sure that we got here with the tagged pointer as this. |
| 765 ASSERT(raw_obj->IsHeapObject()); |
| 766 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 767 return Fraction::InstanceSize(); |
| 768 } |
| 769 |
| 770 |
| 762 intptr_t RawDouble::VisitDoublePointers(RawDouble* raw_obj, | 771 intptr_t RawDouble::VisitDoublePointers(RawDouble* raw_obj, |
| 763 ObjectPointerVisitor* visitor) { | 772 ObjectPointerVisitor* visitor) { |
| 764 // Make sure that we got here with the tagged pointer as this. | 773 // Make sure that we got here with the tagged pointer as this. |
| 765 ASSERT(raw_obj->IsHeapObject()); | 774 ASSERT(raw_obj->IsHeapObject()); |
| 766 return Double::InstanceSize(); | 775 return Double::InstanceSize(); |
| 767 } | 776 } |
| 768 | 777 |
| 769 | 778 |
| 770 intptr_t RawString::VisitStringPointers(RawString* raw_obj, | 779 intptr_t RawString::VisitStringPointers(RawString* raw_obj, |
| 771 ObjectPointerVisitor* visitor) { | 780 ObjectPointerVisitor* visitor) { |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 intptr_t RawUserTag::VisitUserTagPointers( | 963 intptr_t RawUserTag::VisitUserTagPointers( |
| 955 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { | 964 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { |
| 956 // Make sure that we got here with the tagged pointer as this. | 965 // Make sure that we got here with the tagged pointer as this. |
| 957 ASSERT(raw_obj->IsHeapObject()); | 966 ASSERT(raw_obj->IsHeapObject()); |
| 958 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 967 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 959 return UserTag::InstanceSize(); | 968 return UserTag::InstanceSize(); |
| 960 } | 969 } |
| 961 | 970 |
| 962 | 971 |
| 963 } // namespace dart | 972 } // namespace dart |
| OLD | NEW |