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

Side by Side Diff: vm/snapshot.h

Issue 9594028: Add a first class GrowableObjectArray type in the VM and use it internally in the VM at all spots w… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « vm/raw_object_snapshot.cc ('k') | 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 #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 12 matching lines...) Expand all
23 class Library; 23 class Library;
24 class Object; 24 class Object;
25 class ObjectStore; 25 class ObjectStore;
26 class RawArray; 26 class RawArray;
27 class RawClass; 27 class RawClass;
28 class RawContext; 28 class RawContext;
29 class RawDouble; 29 class RawDouble;
30 class RawField; 30 class RawField;
31 class RawFourByteString; 31 class RawFourByteString;
32 class RawFunction; 32 class RawFunction;
33 class RawGrowableObjectArray;
33 class RawImmutableArray; 34 class RawImmutableArray;
34 class RawLibrary; 35 class RawLibrary;
35 class RawLibraryPrefix; 36 class RawLibraryPrefix;
36 class RawLiteralToken; 37 class RawLiteralToken;
37 class RawMint; 38 class RawMint;
38 class RawObject; 39 class RawObject;
39 class RawOneByteString; 40 class RawOneByteString;
40 class RawScript; 41 class RawScript;
41 class RawSmi; 42 class RawSmi;
42 class RawTokenStream; 43 class RawTokenStream;
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 RawDouble* NewDouble(double value); 368 RawDouble* NewDouble(double value);
368 RawUnresolvedClass* NewUnresolvedClass(); 369 RawUnresolvedClass* NewUnresolvedClass();
369 RawType* NewType(); 370 RawType* NewType();
370 RawTypeParameter* NewTypeParameter(); 371 RawTypeParameter* NewTypeParameter();
371 RawFunction* NewFunction(); 372 RawFunction* NewFunction();
372 RawField* NewField(); 373 RawField* NewField();
373 RawLibrary* NewLibrary(); 374 RawLibrary* NewLibrary();
374 RawLibraryPrefix* NewLibraryPrefix(); 375 RawLibraryPrefix* NewLibraryPrefix();
375 RawScript* NewScript(); 376 RawScript* NewScript();
376 RawLiteralToken* NewLiteralToken(); 377 RawLiteralToken* NewLiteralToken();
378 RawGrowableObjectArray* NewGrowableObjectArray();
377 379
378 private: 380 private:
379 // Allocate uninitialized objects, this is used when reading a full snapshot. 381 // Allocate uninitialized objects, this is used when reading a full snapshot.
380 RawObject* AllocateUninitialized(const Class& cls, intptr_t size); 382 RawObject* AllocateUninitialized(const Class& cls, intptr_t size);
381 383
382 // Internal implementation of ReadObject once the header value is read. 384 // Internal implementation of ReadObject once the header value is read.
383 RawObject* ReadObjectImpl(intptr_t header); 385 RawObject* ReadObjectImpl(intptr_t header);
384 386
385 // Read an object that was serialized as an Id (singleton, object store, 387 // Read an object that was serialized as an Id (singleton, object store,
386 // or an object that was already serialized before). 388 // or an object that was already serialized before).
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 558
557 private: 559 private:
558 SnapshotWriter* writer_; 560 SnapshotWriter* writer_;
559 561
560 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 562 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
561 }; 563 };
562 564
563 } // namespace dart 565 } // namespace dart
564 566
565 #endif // VM_SNAPSHOT_H_ 567 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « vm/raw_object_snapshot.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698