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

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

Issue 2279563002: AOT: Single target stub. (Closed)
Patch Set: add offset assertions 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
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | 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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 628
629 629
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 RawSingleTargetCache::VisitSingleTargetCachePointers(
639 RawSingleTargetCache* raw_obj, ObjectPointerVisitor* visitor) {
640 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
641 return SingleTargetCache::InstanceSize();
642 }
643
644
638 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj, 645 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj,
639 ObjectPointerVisitor* visitor) { 646 ObjectPointerVisitor* visitor) {
640 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 647 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
641 return ICData::InstanceSize(); 648 return ICData::InstanceSize();
642 } 649 }
643 650
644 651
645 intptr_t RawMegamorphicCache::VisitMegamorphicCachePointers( 652 intptr_t RawMegamorphicCache::VisitMegamorphicCachePointers(
646 RawMegamorphicCache* raw_obj, 653 RawMegamorphicCache* raw_obj,
647 ObjectPointerVisitor* visitor) { 654 ObjectPointerVisitor* visitor) {
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 intptr_t RawUserTag::VisitUserTagPointers( 960 intptr_t RawUserTag::VisitUserTagPointers(
954 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { 961 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) {
955 // Make sure that we got here with the tagged pointer as this. 962 // Make sure that we got here with the tagged pointer as this.
956 ASSERT(raw_obj->IsHeapObject()); 963 ASSERT(raw_obj->IsHeapObject());
957 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 964 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
958 return UserTag::InstanceSize(); 965 return UserTag::InstanceSize();
959 } 966 }
960 967
961 968
962 } // namespace dart 969 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698