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

Side by Side Diff: runtime/vm/snapshot.h

Issue 132623007: Fix snapshotting of TypeArguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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_snapshot.cc ('k') | no next file » | 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 #ifndef VM_SNAPSHOT_H_ 5 #ifndef VM_SNAPSHOT_H_
6 #define VM_SNAPSHOT_H_ 6 #define VM_SNAPSHOT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 intptr_t size, 214 intptr_t size,
215 Snapshot::Kind kind, 215 Snapshot::Kind kind,
216 Isolate* isolate); 216 Isolate* isolate);
217 ~SnapshotReader() { } 217 ~SnapshotReader() { }
218 218
219 Isolate* isolate() const { return isolate_; } 219 Isolate* isolate() const { return isolate_; }
220 Heap* heap() const { return isolate_->heap(); } 220 Heap* heap() const { return isolate_->heap(); }
221 ObjectStore* object_store() const { return isolate_->object_store(); } 221 ObjectStore* object_store() const { return isolate_->object_store(); }
222 ClassTable* class_table() const { return isolate_->class_table(); } 222 ClassTable* class_table() const { return isolate_->class_table(); }
223 Object* ObjectHandle() { return &obj_; } 223 Object* ObjectHandle() { return &obj_; }
224 Array* ArrayHandle() { return &array_; }
224 String* StringHandle() { return &str_; } 225 String* StringHandle() { return &str_; }
225 AbstractType* TypeHandle() { return &type_; } 226 AbstractType* TypeHandle() { return &type_; }
226 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; } 227 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; }
227 Array* TokensHandle() { return &tokens_; } 228 Array* TokensHandle() { return &tokens_; }
228 TokenStream* StreamHandle() { return &stream_; } 229 TokenStream* StreamHandle() { return &stream_; }
229 ExternalTypedData* DataHandle() { return &data_; } 230 ExternalTypedData* DataHandle() { return &data_; }
230 UnhandledException* ErrorHandle() { return &error_; } 231 UnhandledException* ErrorHandle() { return &error_; }
231 232
232 // Reads an object. 233 // Reads an object.
233 RawObject* ReadObject(); 234 RawObject* ReadObject();
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 private: 619 private:
619 SnapshotWriter* writer_; 620 SnapshotWriter* writer_;
620 bool as_references_; 621 bool as_references_;
621 622
622 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 623 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
623 }; 624 };
624 625
625 } // namespace dart 626 } // namespace dart
626 627
627 #endif // VM_SNAPSHOT_H_ 628 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698