| 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/isolate.h" | 7 #include "vm/isolate.h" |
| 8 #include "vm/object.h" | 8 #include "vm/object.h" |
| 9 #include "vm/visitor.h" | 9 #include "vm/visitor.h" |
| 10 | 10 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } | 191 } |
| 192 | 192 |
| 193 | 193 |
| 194 intptr_t RawUnresolvedClass::VisitUnresolvedClassPointers( | 194 intptr_t RawUnresolvedClass::VisitUnresolvedClassPointers( |
| 195 RawUnresolvedClass* raw_obj, ObjectPointerVisitor* visitor) { | 195 RawUnresolvedClass* raw_obj, ObjectPointerVisitor* visitor) { |
| 196 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 196 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 197 return UnresolvedClass::InstanceSize(); | 197 return UnresolvedClass::InstanceSize(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 | 200 |
| 201 intptr_t RawType::VisitTypePointers(RawType* raw_obj, | 201 intptr_t RawAbstractType::VisitAbstractTypePointers( |
| 202 ObjectPointerVisitor* visitor) { | 202 RawAbstractType* raw_obj, ObjectPointerVisitor* visitor) { |
| 203 // RawType is an abstract class. | 203 // RawAbstractType is an abstract class. |
| 204 UNREACHABLE(); | 204 UNREACHABLE(); |
| 205 return 0; | 205 return 0; |
| 206 } | 206 } |
| 207 | 207 |
| 208 | 208 |
| 209 intptr_t RawParameterizedType::VisitParameterizedTypePointers( | 209 intptr_t RawType::VisitTypePointers( |
| 210 RawParameterizedType* raw_obj, ObjectPointerVisitor* visitor) { | 210 RawType* raw_obj, ObjectPointerVisitor* visitor) { |
| 211 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 211 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 212 return ParameterizedType::InstanceSize(); | 212 return Type::InstanceSize(); |
| 213 } | 213 } |
| 214 | 214 |
| 215 | 215 |
| 216 intptr_t RawTypeParameter::VisitTypeParameterPointers( | 216 intptr_t RawTypeParameter::VisitTypeParameterPointers( |
| 217 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { | 217 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { |
| 218 visitor->VisitPointer(reinterpret_cast<RawObject**>(&raw_obj->ptr()->name_)); | 218 visitor->VisitPointer(reinterpret_cast<RawObject**>(&raw_obj->ptr()->name_)); |
| 219 return TypeParameter::InstanceSize(); | 219 return TypeParameter::InstanceSize(); |
| 220 } | 220 } |
| 221 | 221 |
| 222 | 222 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, | 544 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, |
| 545 ObjectPointerVisitor* visitor) { | 545 ObjectPointerVisitor* visitor) { |
| 546 // Make sure that we got here with the tagged pointer as this. | 546 // Make sure that we got here with the tagged pointer as this. |
| 547 ASSERT(raw_obj->IsHeapObject()); | 547 ASSERT(raw_obj->IsHeapObject()); |
| 548 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); | 548 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); |
| 549 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 549 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 550 return JSRegExp::InstanceSize(length); | 550 return JSRegExp::InstanceSize(length); |
| 551 } | 551 } |
| 552 | 552 |
| 553 } // namespace dart | 553 } // namespace dart |
| OLD | NEW |