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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 | 735 |
736 | 736 |
737 intptr_t RawFloat32x4::VisitFloat32x4Pointers( | 737 intptr_t RawFloat32x4::VisitFloat32x4Pointers( |
738 RawFloat32x4* raw_obj, | 738 RawFloat32x4* raw_obj, |
739 ObjectPointerVisitor* visitor) { | 739 ObjectPointerVisitor* visitor) { |
740 ASSERT(raw_obj->IsHeapObject()); | 740 ASSERT(raw_obj->IsHeapObject()); |
741 return Float32x4::InstanceSize(); | 741 return Float32x4::InstanceSize(); |
742 } | 742 } |
743 | 743 |
744 | 744 |
745 intptr_t RawUint32x4::VisitUint32x4Pointers( | 745 intptr_t RawInt32x4::VisitInt32x4Pointers( |
746 RawUint32x4* raw_obj, | 746 RawInt32x4* raw_obj, |
747 ObjectPointerVisitor* visitor) { | 747 ObjectPointerVisitor* visitor) { |
748 ASSERT(raw_obj->IsHeapObject()); | 748 ASSERT(raw_obj->IsHeapObject()); |
749 return Uint32x4::InstanceSize(); | 749 return Int32x4::InstanceSize(); |
750 } | 750 } |
751 | 751 |
752 | 752 |
753 intptr_t RawTypedData::VisitTypedDataPointers( | 753 intptr_t RawTypedData::VisitTypedDataPointers( |
754 RawTypedData* raw_obj, ObjectPointerVisitor* visitor) { | 754 RawTypedData* raw_obj, 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 intptr_t cid = raw_obj->GetClassId(); | 757 intptr_t cid = raw_obj->GetClassId(); |
758 intptr_t array_len = Smi::Value(raw_obj->ptr()->length_); | 758 intptr_t array_len = Smi::Value(raw_obj->ptr()->length_); |
759 intptr_t lengthInBytes = array_len * TypedData::ElementSizeInBytes(cid); | 759 intptr_t lengthInBytes = array_len * TypedData::ElementSizeInBytes(cid); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 | 801 |
802 intptr_t RawMirrorReference::VisitMirrorReferencePointers( | 802 intptr_t RawMirrorReference::VisitMirrorReferencePointers( |
803 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { | 803 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { |
804 // 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. |
805 ASSERT(raw_obj->IsHeapObject()); | 805 ASSERT(raw_obj->IsHeapObject()); |
806 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 806 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
807 return MirrorReference::InstanceSize(); | 807 return MirrorReference::InstanceSize(); |
808 } | 808 } |
809 | 809 |
810 } // namespace dart | 810 } // namespace dart |
OLD | NEW |