| 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/freelist.h" | 8 #include "vm/freelist.h" |
| 9 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 | 765 |
| 766 intptr_t RawExternalTypedData::VisitExternalTypedDataPointers( | 766 intptr_t RawExternalTypedData::VisitExternalTypedDataPointers( |
| 767 RawExternalTypedData* raw_obj, ObjectPointerVisitor* visitor) { | 767 RawExternalTypedData* raw_obj, ObjectPointerVisitor* visitor) { |
| 768 // Make sure that we got here with the tagged pointer as this. | 768 // Make sure that we got here with the tagged pointer as this. |
| 769 ASSERT(raw_obj->IsHeapObject()); | 769 ASSERT(raw_obj->IsHeapObject()); |
| 770 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 770 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 771 return ExternalTypedData::InstanceSize(); | 771 return ExternalTypedData::InstanceSize(); |
| 772 } | 772 } |
| 773 | 773 |
| 774 | 774 |
| 775 intptr_t RawDartFunction::VisitDartFunctionPointers( | |
| 776 RawDartFunction* raw_obj, ObjectPointerVisitor* visitor) { | |
| 777 // Function (defined in core library) is an abstract class. | |
| 778 UNREACHABLE(); | |
| 779 return 0; | |
| 780 } | |
| 781 | |
| 782 | |
| 783 intptr_t RawStacktrace::VisitStacktracePointers(RawStacktrace* raw_obj, | 775 intptr_t RawStacktrace::VisitStacktracePointers(RawStacktrace* raw_obj, |
| 784 ObjectPointerVisitor* visitor) { | 776 ObjectPointerVisitor* visitor) { |
| 785 // Make sure that we got here with the tagged pointer as this. | 777 // Make sure that we got here with the tagged pointer as this. |
| 786 ASSERT(raw_obj->IsHeapObject()); | 778 ASSERT(raw_obj->IsHeapObject()); |
| 787 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 779 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 788 return Stacktrace::InstanceSize(); | 780 return Stacktrace::InstanceSize(); |
| 789 } | 781 } |
| 790 | 782 |
| 791 | 783 |
| 792 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, | 784 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 810 | 802 |
| 811 intptr_t RawMirrorReference::VisitMirrorReferencePointers( | 803 intptr_t RawMirrorReference::VisitMirrorReferencePointers( |
| 812 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { | 804 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { |
| 813 // Make sure that we got here with the tagged pointer as this. | 805 // Make sure that we got here with the tagged pointer as this. |
| 814 ASSERT(raw_obj->IsHeapObject()); | 806 ASSERT(raw_obj->IsHeapObject()); |
| 815 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 807 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 816 return MirrorReference::InstanceSize(); | 808 return MirrorReference::InstanceSize(); |
| 817 } | 809 } |
| 818 | 810 |
| 819 } // namespace dart | 811 } // namespace dart |
| OLD | NEW |