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

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

Issue 10832199: Add a weak property type to the virtual machine. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address final review comments Created 8 years, 4 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/scavenger.cc ('k') | runtime/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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 friend class Library; 296 friend class Library;
297 friend class LibraryPrefix; 297 friend class LibraryPrefix;
298 friend class LiteralToken; 298 friend class LiteralToken;
299 friend class PatchClass; 299 friend class PatchClass;
300 friend class Script; 300 friend class Script;
301 friend class TokenStream; 301 friend class TokenStream;
302 friend class Type; 302 friend class Type;
303 friend class TypeArguments; 303 friend class TypeArguments;
304 friend class TypeParameter; 304 friend class TypeParameter;
305 friend class UnresolvedClass; 305 friend class UnresolvedClass;
306 friend class WeakProperty;
306 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); 307 DISALLOW_COPY_AND_ASSIGN(SnapshotReader);
307 }; 308 };
308 309
309 310
310 class BaseWriter { 311 class BaseWriter {
311 public: 312 public:
312 // Size of the snapshot. 313 // Size of the snapshot.
313 intptr_t BytesWritten() const { return stream_.bytes_written(); } 314 intptr_t BytesWritten() const { return stream_.bytes_written(); }
314 315
315 // Writes raw data to the stream (basic type). 316 // Writes raw data to the stream (basic type).
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 private: 507 private:
507 SnapshotWriter* writer_; 508 SnapshotWriter* writer_;
508 bool as_references_; 509 bool as_references_;
509 510
510 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 511 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
511 }; 512 };
512 513
513 } // namespace dart 514 } // namespace dart
514 515
515 #endif // VM_SNAPSHOT_H_ 516 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698