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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 | 960 |
961 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, | 961 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, |
962 ObjectPointerVisitor* visitor) { | 962 ObjectPointerVisitor* visitor) { |
963 // Make sure that we got here with the tagged pointer as this. | 963 // Make sure that we got here with the tagged pointer as this. |
964 ASSERT(raw_obj->IsHeapObject()); | 964 ASSERT(raw_obj->IsHeapObject()); |
965 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); | 965 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); |
966 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 966 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
967 return JSRegExp::InstanceSize(length); | 967 return JSRegExp::InstanceSize(length); |
968 } | 968 } |
969 | 969 |
| 970 |
| 971 intptr_t RawWeakProperty::VisitWeakPropertyPointers( |
| 972 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { |
| 973 // Make sure that we got here with the tagged pointer as this. |
| 974 ASSERT(raw_obj->IsHeapObject()); |
| 975 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 976 return WeakProperty::InstanceSize(); |
| 977 } |
| 978 |
970 } // namespace dart | 979 } // namespace dart |
OLD | NEW |