| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/object.h" | 7 #include "vm/object.h" |
| 8 #include "vm/visitor.h" | 8 #include "vm/visitor.h" |
| 9 | 9 |
| 10 | 10 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 166 } |
| 167 | 167 |
| 168 | 168 |
| 169 intptr_t RawClass::VisitClassPointers(RawClass* raw_obj, | 169 intptr_t RawClass::VisitClassPointers(RawClass* raw_obj, |
| 170 ObjectPointerVisitor* visitor) { | 170 ObjectPointerVisitor* visitor) { |
| 171 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 171 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 172 return Class::InstanceSize(); | 172 return Class::InstanceSize(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 | 175 |
| 176 intptr_t RawUnresolvedClass::VisitUnresolvedClassPointers( |
| 177 RawUnresolvedClass* raw_obj, ObjectPointerVisitor* visitor) { |
| 178 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 179 return UnresolvedClass::InstanceSize(); |
| 180 } |
| 181 |
| 182 |
| 176 intptr_t RawType::VisitTypePointers(RawType* raw_obj, | 183 intptr_t RawType::VisitTypePointers(RawType* raw_obj, |
| 177 ObjectPointerVisitor* visitor) { | 184 ObjectPointerVisitor* visitor) { |
| 178 // RawType is an abstract class. | 185 // RawType is an abstract class. |
| 179 UNREACHABLE(); | 186 UNREACHABLE(); |
| 180 return 0; | 187 return 0; |
| 181 } | 188 } |
| 182 | 189 |
| 183 | 190 |
| 184 intptr_t RawParameterizedType::VisitParameterizedTypePointers( | 191 intptr_t RawParameterizedType::VisitParameterizedTypePointers( |
| 185 RawParameterizedType* raw_obj, ObjectPointerVisitor* visitor) { | 192 RawParameterizedType* raw_obj, ObjectPointerVisitor* visitor) { |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, | 483 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, |
| 477 ObjectPointerVisitor* visitor) { | 484 ObjectPointerVisitor* visitor) { |
| 478 // Make sure that we got here with the tagged pointer as this. | 485 // Make sure that we got here with the tagged pointer as this. |
| 479 ASSERT(raw_obj->IsHeapObject()); | 486 ASSERT(raw_obj->IsHeapObject()); |
| 480 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); | 487 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); |
| 481 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 488 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 482 return JSRegExp::InstanceSize(length); | 489 return JSRegExp::InstanceSize(length); |
| 483 } | 490 } |
| 484 | 491 |
| 485 } // namespace dart | 492 } // namespace dart |
| OLD | NEW |