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

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

Issue 2005723004: Fraction class prototype and test (not to be committed). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: work in progress Created 4 years, 5 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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 752
753 intptr_t RawBigint::VisitBigintPointers(RawBigint* raw_obj, 753 intptr_t RawBigint::VisitBigintPointers(RawBigint* raw_obj,
754 ObjectPointerVisitor* visitor) { 754 ObjectPointerVisitor* visitor) {
755 // Make sure that we got here with the tagged pointer as this. 755 // Make sure that we got here with the tagged pointer as this.
756 ASSERT(raw_obj->IsHeapObject()); 756 ASSERT(raw_obj->IsHeapObject());
757 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 757 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
758 return Bigint::InstanceSize(); 758 return Bigint::InstanceSize();
759 } 759 }
760 760
761 761
762 intptr_t RawFraction::VisitFractionPointers(RawFraction* raw_obj,
763 ObjectPointerVisitor* visitor) {
764 // Make sure that we got here with the tagged pointer as this.
765 ASSERT(raw_obj->IsHeapObject());
766 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
767 return Fraction::InstanceSize();
768 }
769
770
762 intptr_t RawDouble::VisitDoublePointers(RawDouble* raw_obj, 771 intptr_t RawDouble::VisitDoublePointers(RawDouble* raw_obj,
763 ObjectPointerVisitor* visitor) { 772 ObjectPointerVisitor* visitor) {
764 // Make sure that we got here with the tagged pointer as this. 773 // Make sure that we got here with the tagged pointer as this.
765 ASSERT(raw_obj->IsHeapObject()); 774 ASSERT(raw_obj->IsHeapObject());
766 return Double::InstanceSize(); 775 return Double::InstanceSize();
767 } 776 }
768 777
769 778
770 intptr_t RawString::VisitStringPointers(RawString* raw_obj, 779 intptr_t RawString::VisitStringPointers(RawString* raw_obj,
771 ObjectPointerVisitor* visitor) { 780 ObjectPointerVisitor* visitor) {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 intptr_t RawUserTag::VisitUserTagPointers( 963 intptr_t RawUserTag::VisitUserTagPointers(
955 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { 964 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) {
956 // Make sure that we got here with the tagged pointer as this. 965 // Make sure that we got here with the tagged pointer as this.
957 ASSERT(raw_obj->IsHeapObject()); 966 ASSERT(raw_obj->IsHeapObject());
958 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 967 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
959 return UserTag::InstanceSize(); 968 return UserTag::InstanceSize();
960 } 969 }
961 970
962 971
963 } // namespace dart 972 } // 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