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

Side by Side Diff: vm/snapshot.h

Issue 9462003: Changes to shrink the token stream representation from two words to one word. (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/scanner.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 15 matching lines...) Expand all
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 RawImmutableArray; 33 class RawImmutableArray;
34 class RawLibrary; 34 class RawLibrary;
35 class RawLibraryPrefix; 35 class RawLibraryPrefix;
36 class RawLiteralToken;
36 class RawMint; 37 class RawMint;
37 class RawObject; 38 class RawObject;
38 class RawOneByteString; 39 class RawOneByteString;
39 class RawScript; 40 class RawScript;
40 class RawSmi; 41 class RawSmi;
41 class RawTokenStream; 42 class RawTokenStream;
42 class RawType; 43 class RawType;
43 class RawTypeParameter; 44 class RawTypeParameter;
44 class RawTypeArguments; 45 class RawTypeArguments;
45 class RawTwoByteString; 46 class RawTwoByteString;
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 RawMint* NewMint(int64_t value); 366 RawMint* NewMint(int64_t value);
366 RawDouble* NewDouble(double value); 367 RawDouble* NewDouble(double value);
367 RawUnresolvedClass* NewUnresolvedClass(); 368 RawUnresolvedClass* NewUnresolvedClass();
368 RawType* NewType(); 369 RawType* NewType();
369 RawTypeParameter* NewTypeParameter(); 370 RawTypeParameter* NewTypeParameter();
370 RawFunction* NewFunction(); 371 RawFunction* NewFunction();
371 RawField* NewField(); 372 RawField* NewField();
372 RawLibrary* NewLibrary(); 373 RawLibrary* NewLibrary();
373 RawLibraryPrefix* NewLibraryPrefix(); 374 RawLibraryPrefix* NewLibraryPrefix();
374 RawScript* NewScript(); 375 RawScript* NewScript();
376 RawLiteralToken* NewLiteralToken();
375 377
376 private: 378 private:
377 // Allocate uninitialized objects, this is used when reading a full snapshot. 379 // Allocate uninitialized objects, this is used when reading a full snapshot.
378 RawObject* AllocateUninitialized(const Class& cls, intptr_t size); 380 RawObject* AllocateUninitialized(const Class& cls, intptr_t size);
379 381
380 // Internal implementation of ReadObject once the header value is read. 382 // Internal implementation of ReadObject once the header value is read.
381 RawObject* ReadObjectImpl(intptr_t header); 383 RawObject* ReadObjectImpl(intptr_t header);
382 384
383 // Read an object that was serialized as an Id (singleton, object store, 385 // Read an object that was serialized as an Id (singleton, object store,
384 // or an object that was already serialized before). 386 // or an object that was already serialized before).
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 556
555 private: 557 private:
556 SnapshotWriter* writer_; 558 SnapshotWriter* writer_;
557 559
558 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 560 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
559 }; 561 };
560 562
561 } // namespace dart 563 } // namespace dart
562 564
563 #endif // VM_SNAPSHOT_H_ 565 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « vm/scanner.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698