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

Side by Side Diff: vm/snapshot.h

Issue 10808064: Rename some of the enum definitions inside classes to avoid conflict with the ObjectKind enum. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « vm/runtime_entry_test.cc ('k') | vm/snapshot_test.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 #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"
11 #include "vm/datastream.h" 11 #include "vm/datastream.h"
12 #include "vm/globals.h" 12 #include "vm/globals.h"
13 #include "vm/growable_array.h" 13 #include "vm/growable_array.h"
14 #include "vm/isolate.h" 14 #include "vm/isolate.h"
15 #include "vm/visitor.h" 15 #include "vm/visitor.h"
16 16
17 namespace dart { 17 namespace dart {
18 18
19 // Forward declarations. 19 // Forward declarations.
20 class AbstractType; 20 class AbstractType;
21 class AbstractTypeArguments; 21 class AbstractTypeArguments;
22 class Array; 22 class Array;
23 class Class; 23 class Class;
24 class ClassTable;
24 class GrowableObjectArray; 25 class GrowableObjectArray;
25 class Heap; 26 class Heap;
26 class Library; 27 class Library;
27 class Object; 28 class Object;
28 class ObjectStore; 29 class ObjectStore;
29 class RawAbstractTypeArguments; 30 class RawAbstractTypeArguments;
30 class RawArray; 31 class RawArray;
31 class RawBigint; 32 class RawBigint;
32 class RawClass; 33 class RawClass;
33 class RawContext; 34 class RawContext;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 165
165 // Reads a snapshot into objects. 166 // Reads a snapshot into objects.
166 class SnapshotReader : public BaseReader { 167 class SnapshotReader : public BaseReader {
167 public: 168 public:
168 SnapshotReader(const Snapshot* snapshot, Isolate* isolate); 169 SnapshotReader(const Snapshot* snapshot, Isolate* isolate);
169 ~SnapshotReader() { } 170 ~SnapshotReader() { }
170 171
171 Isolate* isolate() const { return isolate_; } 172 Isolate* isolate() const { return isolate_; }
172 Heap* heap() const { return isolate_->heap(); } 173 Heap* heap() const { return isolate_->heap(); }
173 ObjectStore* object_store() const { return isolate_->object_store(); } 174 ObjectStore* object_store() const { return isolate_->object_store(); }
175 ClassTable* class_table() const { return isolate_->class_table(); }
174 Object* ObjectHandle() { return &obj_; } 176 Object* ObjectHandle() { return &obj_; }
175 String* StringHandle() { return &str_; } 177 String* StringHandle() { return &str_; }
176 AbstractType* TypeHandle() { return &type_; } 178 AbstractType* TypeHandle() { return &type_; }
177 AbstractTypeArguments* TypeArgumentsHandle() { return &type_arguments_; } 179 AbstractTypeArguments* TypeArgumentsHandle() { return &type_arguments_; }
178 Array* TokensHandle() { return &tokens_; } 180 Array* TokensHandle() { return &tokens_; }
179 181
180 // Reads an object. 182 // Reads an object.
181 RawObject* ReadObject(); 183 RawObject* ReadObject();
182 184
183 // Add object to backward references. 185 // Add object to backward references.
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 private: 480 private:
479 SnapshotWriter* writer_; 481 SnapshotWriter* writer_;
480 bool as_references_; 482 bool as_references_;
481 483
482 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 484 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
483 }; 485 };
484 486
485 } // namespace dart 487 } // namespace dart
486 488
487 #endif // VM_SNAPSHOT_H_ 489 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « vm/runtime_entry_test.cc ('k') | vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698