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

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

Issue 1410643008: Get rid of deprecated methods accessing mutator_thread_ instead of current thread (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « runtime/vm/service.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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 } 709 }
710 710
711 void WriteDouble(double value) { 711 void WriteDouble(double value) {
712 stream_.WriteBytes(reinterpret_cast<const uint8_t*>(&value), sizeof(value)); 712 stream_.WriteBytes(reinterpret_cast<const uint8_t*>(&value), sizeof(value));
713 } 713 }
714 714
715 protected: 715 protected:
716 BaseWriter(uint8_t** buffer, 716 BaseWriter(uint8_t** buffer,
717 ReAlloc alloc, 717 ReAlloc alloc,
718 intptr_t initial_size) 718 intptr_t initial_size)
719 : StackResource(Isolate::Current()), 719 : StackResource(Thread::Current()),
720 stream_(buffer, alloc, initial_size) { 720 stream_(buffer, alloc, initial_size) {
721 ASSERT(buffer != NULL); 721 ASSERT(buffer != NULL);
722 ASSERT(alloc != NULL); 722 ASSERT(alloc != NULL);
723 } 723 }
724 ~BaseWriter() { } 724 ~BaseWriter() { }
725 725
726 void ReserveHeader() { 726 void ReserveHeader() {
727 // Make room for recording snapshot buffer size. 727 // Make room for recording snapshot buffer size.
728 stream_.set_current(stream_.buffer() + Snapshot::kHeaderSize); 728 stream_.set_current(stream_.buffer() + Snapshot::kHeaderSize);
729 } 729 }
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 private: 1121 private:
1122 SnapshotWriter* writer_; 1122 SnapshotWriter* writer_;
1123 bool as_references_; 1123 bool as_references_;
1124 1124
1125 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 1125 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
1126 }; 1126 };
1127 1127
1128 } // namespace dart 1128 } // namespace dart
1129 1129
1130 #endif // VM_SNAPSHOT_H_ 1130 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698