| 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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 | 785 |
| 786 | 786 |
| 787 intptr_t RawInt32x4::VisitInt32x4Pointers( | 787 intptr_t RawInt32x4::VisitInt32x4Pointers( |
| 788 RawInt32x4* raw_obj, | 788 RawInt32x4* raw_obj, |
| 789 ObjectPointerVisitor* visitor) { | 789 ObjectPointerVisitor* visitor) { |
| 790 ASSERT(raw_obj->IsHeapObject()); | 790 ASSERT(raw_obj->IsHeapObject()); |
| 791 return Int32x4::InstanceSize(); | 791 return Int32x4::InstanceSize(); |
| 792 } | 792 } |
| 793 | 793 |
| 794 | 794 |
| 795 intptr_t RawFloat64x2::VisitFloat64x2Pointers( |
| 796 RawFloat64x2* raw_obj, |
| 797 ObjectPointerVisitor* visitor) { |
| 798 ASSERT(raw_obj->IsHeapObject()); |
| 799 return Float64x2::InstanceSize(); |
| 800 } |
| 801 |
| 795 intptr_t RawTypedData::VisitTypedDataPointers( | 802 intptr_t RawTypedData::VisitTypedDataPointers( |
| 796 RawTypedData* raw_obj, ObjectPointerVisitor* visitor) { | 803 RawTypedData* raw_obj, ObjectPointerVisitor* visitor) { |
| 797 // Make sure that we got here with the tagged pointer as this. | 804 // Make sure that we got here with the tagged pointer as this. |
| 798 ASSERT(raw_obj->IsHeapObject()); | 805 ASSERT(raw_obj->IsHeapObject()); |
| 799 intptr_t cid = raw_obj->GetClassId(); | 806 intptr_t cid = raw_obj->GetClassId(); |
| 800 intptr_t array_len = Smi::Value(raw_obj->ptr()->length_); | 807 intptr_t array_len = Smi::Value(raw_obj->ptr()->length_); |
| 801 intptr_t lengthInBytes = array_len * TypedData::ElementSizeInBytes(cid); | 808 intptr_t lengthInBytes = array_len * TypedData::ElementSizeInBytes(cid); |
| 802 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 809 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 803 return TypedData::InstanceSize(lengthInBytes); | 810 return TypedData::InstanceSize(lengthInBytes); |
| 804 } | 811 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 | 850 |
| 844 intptr_t RawMirrorReference::VisitMirrorReferencePointers( | 851 intptr_t RawMirrorReference::VisitMirrorReferencePointers( |
| 845 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { | 852 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { |
| 846 // Make sure that we got here with the tagged pointer as this. | 853 // Make sure that we got here with the tagged pointer as this. |
| 847 ASSERT(raw_obj->IsHeapObject()); | 854 ASSERT(raw_obj->IsHeapObject()); |
| 848 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 855 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 849 return MirrorReference::InstanceSize(); | 856 return MirrorReference::InstanceSize(); |
| 850 } | 857 } |
| 851 | 858 |
| 852 } // namespace dart | 859 } // namespace dart |
| OLD | NEW |