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

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

Issue 230863005: Initial UserTag and dart:profiler library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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') | 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 friend class RawImmutableArray; 547 friend class RawImmutableArray;
548 friend class RawJSRegExp; 548 friend class RawJSRegExp;
549 friend class RawLibrary; 549 friend class RawLibrary;
550 friend class RawLiteralToken; 550 friend class RawLiteralToken;
551 friend class RawScript; 551 friend class RawScript;
552 friend class RawStacktrace; 552 friend class RawStacktrace;
553 friend class RawTokenStream; 553 friend class RawTokenStream;
554 friend class RawTypeArguments; 554 friend class RawTypeArguments;
555 friend class RawMirrorReference; 555 friend class RawMirrorReference;
556 friend class SnapshotWriterVisitor; 556 friend class SnapshotWriterVisitor;
557 friend class RawUserTag;
557 DISALLOW_COPY_AND_ASSIGN(SnapshotWriter); 558 DISALLOW_COPY_AND_ASSIGN(SnapshotWriter);
558 }; 559 };
559 560
560 561
561 class FullSnapshotWriter : public SnapshotWriter { 562 class FullSnapshotWriter : public SnapshotWriter {
562 public: 563 public:
563 static const intptr_t kInitialSize = 64 * KB; 564 static const intptr_t kInitialSize = 64 * KB;
564 FullSnapshotWriter(uint8_t** buffer, ReAlloc alloc) 565 FullSnapshotWriter(uint8_t** buffer, ReAlloc alloc)
565 : SnapshotWriter(Snapshot::kFull, buffer, alloc, kInitialSize) { 566 : SnapshotWriter(Snapshot::kFull, buffer, alloc, kInitialSize) {
566 ASSERT(buffer != NULL); 567 ASSERT(buffer != NULL);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 private: 631 private:
631 SnapshotWriter* writer_; 632 SnapshotWriter* writer_;
632 bool as_references_; 633 bool as_references_;
633 634
634 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 635 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
635 }; 636 };
636 637
637 } // namespace dart 638 } // namespace dart
638 639
639 #endif // VM_SNAPSHOT_H_ 640 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698