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

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

Issue 18242003: Add a VM defined class MirrorReference as an opaque pointer for Dart code to VM internal objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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.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 2628 matching lines...) Expand 10 before | Expand all | Expand 10 after
2639 2639
2640 // Write out the class and tags information. 2640 // Write out the class and tags information.
2641 writer->WriteIndexedObject(kWeakPropertyCid); 2641 writer->WriteIndexedObject(kWeakPropertyCid);
2642 writer->WriteIntptrValue(writer->GetObjectTags(this)); 2642 writer->WriteIntptrValue(writer->GetObjectTags(this));
2643 2643
2644 // Write out all the other fields. 2644 // Write out all the other fields.
2645 writer->Write<RawObject*>(ptr()->key_); 2645 writer->Write<RawObject*>(ptr()->key_);
2646 writer->Write<RawObject*>(ptr()->value_); 2646 writer->Write<RawObject*>(ptr()->value_);
2647 } 2647 }
2648 2648
2649
2650 RawMirrorReference* MirrorReference::ReadFrom(SnapshotReader* reader,
2651 intptr_t object_id,
2652 intptr_t tags,
2653 Snapshot::Kind kind) {
2654 UNREACHABLE();
2655 return MirrorReference::null();
2656 }
2657
2658
2659 void RawMirrorReference::WriteTo(SnapshotWriter* writer,
2660 intptr_t object_id,
2661 Snapshot::Kind kind) {
2662 UNREACHABLE();
2663 }
2664
2649 } // namespace dart 2665 } // 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