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

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

Issue 392043003: The dart version of typeddata library has changed to be compatible with the dart2js implementation (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/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/dart.h" 8 #include "vm/dart.h"
9 #include "vm/freelist.h" 9 #include "vm/freelist.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 RawExternalTypedData* raw_obj = 237 RawExternalTypedData* raw_obj =
238 reinterpret_cast<RawExternalTypedData*>(this); 238 reinterpret_cast<RawExternalTypedData*>(this);
239 size = RawExternalTypedData::VisitExternalTypedDataPointers(raw_obj, 239 size = RawExternalTypedData::VisitExternalTypedDataPointers(raw_obj,
240 visitor); 240 visitor);
241 break; 241 break;
242 } 242 }
243 #undef RAW_VISITPOINTERS 243 #undef RAW_VISITPOINTERS
244 #define RAW_VISITPOINTERS(clazz) \ 244 #define RAW_VISITPOINTERS(clazz) \
245 case kTypedData##clazz##ViewCid: 245 case kTypedData##clazz##ViewCid:
246 CLASS_LIST_TYPED_DATA(RAW_VISITPOINTERS) 246 CLASS_LIST_TYPED_DATA(RAW_VISITPOINTERS)
247 case kByteDataViewCid: { 247 case kByteDataViewCid:
248 case kByteBufferCid: {
248 RawInstance* raw_obj = reinterpret_cast<RawInstance*>(this); 249 RawInstance* raw_obj = reinterpret_cast<RawInstance*>(this);
249 size = RawInstance::VisitInstancePointers(raw_obj, visitor); 250 size = RawInstance::VisitInstancePointers(raw_obj, visitor);
250 break; 251 break;
251 } 252 }
252 #undef RAW_VISITPOINTERS 253 #undef RAW_VISITPOINTERS
253 case kFreeListElement: { 254 case kFreeListElement: {
254 uword addr = RawObject::ToAddr(const_cast<RawObject*>(this)); 255 uword addr = RawObject::ToAddr(const_cast<RawObject*>(this));
255 FreeListElement* element = reinterpret_cast<FreeListElement*>(addr); 256 FreeListElement* element = reinterpret_cast<FreeListElement*>(addr);
256 size = element->Size(); 257 size = element->Size();
257 break; 258 break;
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 intptr_t RawUserTag::VisitUserTagPointers( 881 intptr_t RawUserTag::VisitUserTagPointers(
881 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { 882 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) {
882 // Make sure that we got here with the tagged pointer as this. 883 // Make sure that we got here with the tagged pointer as this.
883 ASSERT(raw_obj->IsHeapObject()); 884 ASSERT(raw_obj->IsHeapObject());
884 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 885 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
885 return UserTag::InstanceSize(); 886 return UserTag::InstanceSize();
886 } 887 }
887 888
888 889
889 } // namespace dart 890 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698