| 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 | 933 |
| 934 intptr_t RawExternalFloat64Array::VisitExternalFloat64ArrayPointers( | 934 intptr_t RawExternalFloat64Array::VisitExternalFloat64ArrayPointers( |
| 935 RawExternalFloat64Array* raw_obj, ObjectPointerVisitor* visitor) { | 935 RawExternalFloat64Array* raw_obj, ObjectPointerVisitor* visitor) { |
| 936 // Make sure that we got here with the tagged pointer as this. | 936 // Make sure that we got here with the tagged pointer as this. |
| 937 ASSERT(raw_obj->IsHeapObject()); | 937 ASSERT(raw_obj->IsHeapObject()); |
| 938 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 938 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 939 return ExternalFloat64Array::InstanceSize(); | 939 return ExternalFloat64Array::InstanceSize(); |
| 940 } | 940 } |
| 941 | 941 |
| 942 | 942 |
| 943 intptr_t RawDartFunction::VisitDartFunctionPointers( |
| 944 RawDartFunction* raw_obj, ObjectPointerVisitor* visitor) { |
| 945 // Function (defined in core library) is an abstract class. |
| 946 UNREACHABLE(); |
| 947 return 0; |
| 948 } |
| 949 |
| 950 |
| 943 intptr_t RawClosure::VisitClosurePointers(RawClosure* raw_obj, | 951 intptr_t RawClosure::VisitClosurePointers(RawClosure* raw_obj, |
| 944 ObjectPointerVisitor* visitor) { | 952 ObjectPointerVisitor* visitor) { |
| 945 // Make sure that we got here with the tagged pointer as this. | 953 // Make sure that we got here with the tagged pointer as this. |
| 946 ASSERT(raw_obj->IsHeapObject()); | 954 ASSERT(raw_obj->IsHeapObject()); |
| 947 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 955 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 948 return Closure::InstanceSize(); | 956 return Closure::InstanceSize(); |
| 949 } | 957 } |
| 950 | 958 |
| 951 | 959 |
| 952 intptr_t RawStacktrace::VisitStacktracePointers(RawStacktrace* raw_obj, | 960 intptr_t RawStacktrace::VisitStacktracePointers(RawStacktrace* raw_obj, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 970 | 978 |
| 971 intptr_t RawWeakProperty::VisitWeakPropertyPointers( | 979 intptr_t RawWeakProperty::VisitWeakPropertyPointers( |
| 972 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { | 980 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { |
| 973 // Make sure that we got here with the tagged pointer as this. | 981 // Make sure that we got here with the tagged pointer as this. |
| 974 ASSERT(raw_obj->IsHeapObject()); | 982 ASSERT(raw_obj->IsHeapObject()); |
| 975 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 983 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 976 return WeakProperty::InstanceSize(); | 984 return WeakProperty::InstanceSize(); |
| 977 } | 985 } |
| 978 | 986 |
| 979 } // namespace dart | 987 } // namespace dart |
| OLD | NEW |