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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 | 917 |
918 intptr_t RawStacktrace::VisitStacktracePointers(RawStacktrace* raw_obj, | 918 intptr_t RawStacktrace::VisitStacktracePointers(RawStacktrace* raw_obj, |
919 ObjectPointerVisitor* visitor) { | 919 ObjectPointerVisitor* visitor) { |
920 // Make sure that we got here with the tagged pointer as this. | 920 // Make sure that we got here with the tagged pointer as this. |
921 ASSERT(raw_obj->IsHeapObject()); | 921 ASSERT(raw_obj->IsHeapObject()); |
922 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 922 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
923 return Stacktrace::InstanceSize(); | 923 return Stacktrace::InstanceSize(); |
924 } | 924 } |
925 | 925 |
926 | 926 |
927 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, | 927 intptr_t RawRegExp::VisitRegExpPointers(RawRegExp* raw_obj, |
928 ObjectPointerVisitor* visitor) { | 928 ObjectPointerVisitor* visitor) { |
929 // Make sure that we got here with the tagged pointer as this. | 929 // Make sure that we got here with the tagged pointer as this. |
930 ASSERT(raw_obj->IsHeapObject()); | 930 ASSERT(raw_obj->IsHeapObject()); |
931 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 931 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
932 return JSRegExp::InstanceSize(); | 932 return RegExp::InstanceSize(); |
933 } | 933 } |
934 | 934 |
935 | 935 |
936 intptr_t RawWeakProperty::VisitWeakPropertyPointers( | 936 intptr_t RawWeakProperty::VisitWeakPropertyPointers( |
937 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { | 937 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { |
938 // Make sure that we got here with the tagged pointer as this. | 938 // Make sure that we got here with the tagged pointer as this. |
939 ASSERT(raw_obj->IsHeapObject()); | 939 ASSERT(raw_obj->IsHeapObject()); |
940 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 940 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
941 return WeakProperty::InstanceSize(); | 941 return WeakProperty::InstanceSize(); |
942 } | 942 } |
(...skipping 11 matching lines...) Expand all Loading... |
954 intptr_t RawUserTag::VisitUserTagPointers( | 954 intptr_t RawUserTag::VisitUserTagPointers( |
955 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { | 955 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { |
956 // Make sure that we got here with the tagged pointer as this. | 956 // Make sure that we got here with the tagged pointer as this. |
957 ASSERT(raw_obj->IsHeapObject()); | 957 ASSERT(raw_obj->IsHeapObject()); |
958 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 958 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
959 return UserTag::InstanceSize(); | 959 return UserTag::InstanceSize(); |
960 } | 960 } |
961 | 961 |
962 | 962 |
963 } // namespace dart | 963 } // namespace dart |
OLD | NEW |