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

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

Issue 12779008: Mixins with Generics (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/snapshot.h » ('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/bigint_operations.h" 5 #include "vm/bigint_operations.h"
6 #include "vm/object.h" 6 #include "vm/object.h"
7 #include "vm/object_store.h" 7 #include "vm/object_store.h"
8 #include "vm/snapshot.h" 8 #include "vm/snapshot.h"
9 #include "vm/symbols.h" 9 #include "vm/symbols.h"
10 #include "vm/visitor.h" 10 #include "vm/visitor.h"
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // Write out the class and tags information. 398 // Write out the class and tags information.
399 writer->WriteIndexedObject(kBoundedTypeCid); 399 writer->WriteIndexedObject(kBoundedTypeCid);
400 writer->WriteIntptrValue(writer->GetObjectTags(this)); 400 writer->WriteIntptrValue(writer->GetObjectTags(this));
401 401
402 // Write out all the object pointer fields. 402 // Write out all the object pointer fields.
403 SnapshotWriterVisitor visitor(writer); 403 SnapshotWriterVisitor visitor(writer);
404 visitor.VisitPointers(from(), to()); 404 visitor.VisitPointers(from(), to());
405 } 405 }
406 406
407 407
408 RawMixinAppType* MixinAppType::ReadFrom(SnapshotReader* reader,
409 intptr_t object_id,
410 intptr_t tags,
411 Snapshot::Kind kind) {
412 UNREACHABLE(); // MixinAppType objects do not survive finalization.
413 return MixinAppType::null();
414 }
415
416
417 void RawMixinAppType::WriteTo(SnapshotWriter* writer,
418 intptr_t object_id,
419 Snapshot::Kind kind) {
420 UNREACHABLE(); // MixinAppType objects do not survive finalization.
421 }
422
423
408 RawAbstractTypeArguments* AbstractTypeArguments::ReadFrom( 424 RawAbstractTypeArguments* AbstractTypeArguments::ReadFrom(
409 SnapshotReader* reader, 425 SnapshotReader* reader,
410 intptr_t object_id, 426 intptr_t object_id,
411 intptr_t tags, 427 intptr_t tags,
412 Snapshot::Kind kind) { 428 Snapshot::Kind kind) {
413 UNREACHABLE(); // AbstractTypeArguments is an abstract class. 429 UNREACHABLE(); // AbstractTypeArguments is an abstract class.
414 return TypeArguments::null(); 430 return TypeArguments::null();
415 } 431 }
416 432
417 433
(...skipping 2358 matching lines...) Expand 10 before | Expand all | Expand 10 after
2776 // Write out the class and tags information. 2792 // Write out the class and tags information.
2777 writer->WriteIndexedObject(kWeakPropertyCid); 2793 writer->WriteIndexedObject(kWeakPropertyCid);
2778 writer->WriteIntptrValue(writer->GetObjectTags(this)); 2794 writer->WriteIntptrValue(writer->GetObjectTags(this));
2779 2795
2780 // Write out all the other fields. 2796 // Write out all the other fields.
2781 writer->Write<RawObject*>(ptr()->key_); 2797 writer->Write<RawObject*>(ptr()->key_);
2782 writer->Write<RawObject*>(ptr()->value_); 2798 writer->Write<RawObject*>(ptr()->value_);
2783 } 2799 }
2784 2800
2785 } // namespace dart 2801 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698