| 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/become.h" | 7 #include "vm/become.h" |
| 8 #include "vm/class_table.h" | 8 #include "vm/class_table.h" |
| 9 #include "vm/dart.h" | 9 #include "vm/dart.h" |
| 10 #include "vm/freelist.h" | 10 #include "vm/freelist.h" |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 intptr_t RawContextScope::VisitContextScopePointers( | 630 intptr_t RawContextScope::VisitContextScopePointers( |
| 631 RawContextScope* raw_obj, ObjectPointerVisitor* visitor) { | 631 RawContextScope* raw_obj, ObjectPointerVisitor* visitor) { |
| 632 intptr_t num_variables = raw_obj->ptr()->num_variables_; | 632 intptr_t num_variables = raw_obj->ptr()->num_variables_; |
| 633 visitor->VisitPointers(raw_obj->from(), raw_obj->to(num_variables)); | 633 visitor->VisitPointers(raw_obj->from(), raw_obj->to(num_variables)); |
| 634 return ContextScope::InstanceSize(num_variables); | 634 return ContextScope::InstanceSize(num_variables); |
| 635 } | 635 } |
| 636 | 636 |
| 637 | 637 |
| 638 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj, | 638 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj, |
| 639 ObjectPointerVisitor* visitor) { | 639 ObjectPointerVisitor* visitor) { |
| 640 // Make sure that we got here with the tagged pointer as this. | |
| 641 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 640 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 642 return ICData::InstanceSize(); | 641 return ICData::InstanceSize(); |
| 643 } | 642 } |
| 644 | 643 |
| 645 | 644 |
| 646 intptr_t RawMegamorphicCache::VisitMegamorphicCachePointers( | 645 intptr_t RawMegamorphicCache::VisitMegamorphicCachePointers( |
| 647 RawMegamorphicCache* raw_obj, | 646 RawMegamorphicCache* raw_obj, |
| 648 ObjectPointerVisitor* visitor) { | 647 ObjectPointerVisitor* visitor) { |
| 649 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 648 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 650 return MegamorphicCache::InstanceSize(); | 649 return MegamorphicCache::InstanceSize(); |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 intptr_t RawUserTag::VisitUserTagPointers( | 953 intptr_t RawUserTag::VisitUserTagPointers( |
| 955 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { | 954 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { |
| 956 // Make sure that we got here with the tagged pointer as this. | 955 // Make sure that we got here with the tagged pointer as this. |
| 957 ASSERT(raw_obj->IsHeapObject()); | 956 ASSERT(raw_obj->IsHeapObject()); |
| 958 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 957 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 959 return UserTag::InstanceSize(); | 958 return UserTag::InstanceSize(); |
| 960 } | 959 } |
| 961 | 960 |
| 962 | 961 |
| 963 } // namespace dart | 962 } // namespace dart |
| OLD | NEW |