Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: runtime/vm/raw_object.cc

Issue 2281263002: AOT: Reassign class ids so class hierarchies have contiguous ranges. (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« runtime/vm/precompiler.cc ('K') | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« runtime/vm/precompiler.cc ('K') | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698