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

Side by Side Diff: vm/raw_object.cc

Issue 9594028: Add a first class GrowableObjectArray type in the VM and use it internally in the VM at all spots w… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
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/freelist.h" 7 #include "vm/freelist.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/visitor.h" 10 #include "vm/visitor.h"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 return Array::InstanceSize(length); 584 return Array::InstanceSize(length);
585 } 585 }
586 586
587 587
588 intptr_t RawImmutableArray::VisitImmutableArrayPointers( 588 intptr_t RawImmutableArray::VisitImmutableArrayPointers(
589 RawImmutableArray* raw_obj, ObjectPointerVisitor* visitor) { 589 RawImmutableArray* raw_obj, ObjectPointerVisitor* visitor) {
590 return RawArray::VisitArrayPointers(raw_obj, visitor); 590 return RawArray::VisitArrayPointers(raw_obj, visitor);
591 } 591 }
592 592
593 593
594 intptr_t RawGrowableObjectArray::VisitGrowableObjectArrayPointers(
595 RawGrowableObjectArray* raw_obj, ObjectPointerVisitor* visitor) {
596 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
597 return GrowableObjectArray::InstanceSize();
598 }
599
600
594 intptr_t RawByteArray::VisitByteArrayPointers(RawByteArray* raw_obj, 601 intptr_t RawByteArray::VisitByteArrayPointers(RawByteArray* raw_obj,
595 ObjectPointerVisitor* visitor) { 602 ObjectPointerVisitor* visitor) {
596 // ByteArray is an abstract class. 603 // ByteArray is an abstract class.
597 UNREACHABLE(); 604 UNREACHABLE();
598 return 0; 605 return 0;
599 } 606 }
600 607
601 608
602 intptr_t RawInternalByteArray::VisitInternalByteArrayPointers( 609 intptr_t RawInternalByteArray::VisitInternalByteArrayPointers(
603 RawInternalByteArray* raw_obj, ObjectPointerVisitor* visitor) { 610 RawInternalByteArray* raw_obj, ObjectPointerVisitor* visitor) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj, 656 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj,
650 ObjectPointerVisitor* visitor) { 657 ObjectPointerVisitor* visitor) {
651 // Make sure that we got here with the tagged pointer as this. 658 // Make sure that we got here with the tagged pointer as this.
652 ASSERT(raw_obj->IsHeapObject()); 659 ASSERT(raw_obj->IsHeapObject());
653 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 660 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
654 return ICData::InstanceSize(); 661 return ICData::InstanceSize();
655 } 662 }
656 663
657 664
658 } // namespace dart 665 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698