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

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

Issue 11299298: Cache lookups at megamorphic call sites in optimized code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: One change I forgot. Created 8 years 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 | Annotate | Revision Log
« 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/class_table.h" 7 #include "vm/class_table.h"
8 #include "vm/freelist.h" 8 #include "vm/freelist.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 538
539 539
540 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj, 540 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj,
541 ObjectPointerVisitor* visitor) { 541 ObjectPointerVisitor* visitor) {
542 // Make sure that we got here with the tagged pointer as this. 542 // Make sure that we got here with the tagged pointer as this.
543 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 543 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
544 return ICData::InstanceSize(); 544 return ICData::InstanceSize();
545 } 545 }
546 546
547 547
548 intptr_t RawMegamorphicCache::VisitMegamorphicCachePointers(
549 RawMegamorphicCache* raw_obj,
550 ObjectPointerVisitor* visitor) {
551 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
552 return MegamorphicCache::InstanceSize();
553 }
554
555
548 intptr_t RawSubtypeTestCache::VisitSubtypeTestCachePointers( 556 intptr_t RawSubtypeTestCache::VisitSubtypeTestCachePointers(
549 RawSubtypeTestCache* raw_obj, ObjectPointerVisitor* visitor) { 557 RawSubtypeTestCache* raw_obj, ObjectPointerVisitor* visitor) {
550 // Make sure that we got here with the tagged pointer as this. 558 // Make sure that we got here with the tagged pointer as this.
551 RawSubtypeTestCache* obj = raw_obj->ptr(); 559 RawSubtypeTestCache* obj = raw_obj->ptr();
552 visitor->VisitPointer(reinterpret_cast<RawObject**>(&obj->cache_)); 560 visitor->VisitPointer(reinterpret_cast<RawObject**>(&obj->cache_));
553 return SubtypeTestCache::InstanceSize(); 561 return SubtypeTestCache::InstanceSize();
554 } 562 }
555 563
556 564
557 intptr_t RawError::VisitErrorPointers(RawError* raw_obj, 565 intptr_t RawError::VisitErrorPointers(RawError* raw_obj,
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 970
963 intptr_t RawWeakProperty::VisitWeakPropertyPointers( 971 intptr_t RawWeakProperty::VisitWeakPropertyPointers(
964 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { 972 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) {
965 // Make sure that we got here with the tagged pointer as this. 973 // Make sure that we got here with the tagged pointer as this.
966 ASSERT(raw_obj->IsHeapObject()); 974 ASSERT(raw_obj->IsHeapObject());
967 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 975 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
968 return WeakProperty::InstanceSize(); 976 return WeakProperty::InstanceSize();
969 } 977 }
970 978
971 } // namespace dart 979 } // 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