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

Unified Diff: runtime/vm/snapshot.h

Issue 9407010: Move MessageWriter from snapshot files to dart_api_message files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.h
diff --git a/runtime/vm/snapshot.h b/runtime/vm/snapshot.h
index 5131c205ab0c757ae84fbf8d7d6207fe17deeada..3e423710fe70853771b297c98259319f8b0be0be 100644
--- a/runtime/vm/snapshot.h
+++ b/runtime/vm/snapshot.h
@@ -467,48 +467,6 @@ class BaseWriter {
};
-class MessageWriter : public BaseWriter {
- public:
- MessageWriter(uint8_t** buffer, ReAlloc alloc)
- : BaseWriter(buffer, alloc), object_id_(0) {
- ASSERT(kDartCObjectTypeMask >= Dart_CObject::kNumberOfTypes - 1);
- }
- ~MessageWriter() { }
-
- // Writes a message of integers.
- void WriteMessage(intptr_t field_count, intptr_t *data);
-
- void WriteCMessage(Dart_CObject* object);
-
- void FinalizeBuffer() {
- BaseWriter::FinalizeBuffer(Snapshot::kMessage);
- }
-
- private:
- static const intptr_t kDartCObjectTypeBits = 4;
- static const intptr_t kDartCObjectTypeMask = (1 << kDartCObjectTypeBits) - 1;
- static const intptr_t kDartCObjectMarkMask = ~kDartCObjectTypeMask;
- static const intptr_t kDartCObjectMarkOffset = 1;
-
- void MarkCObject(Dart_CObject* object, intptr_t object_id);
- void UnmarkCObject(Dart_CObject* object);
- bool IsCObjectMarked(Dart_CObject* object);
- intptr_t GetMarkedCObjectMark(Dart_CObject* object);
- void UnmarkAllCObjects(Dart_CObject* object);
-
- void WriteSmi(int64_t value);
- void WriteMint(Dart_CObject* object, int64_t value);
- void WriteInt32(Dart_CObject* object);
- void WriteInt64(Dart_CObject* object);
- void WriteInlinedHeader(Dart_CObject* object);
- void WriteCObject(Dart_CObject* object);
-
- intptr_t object_id_;
-
- DISALLOW_COPY_AND_ASSIGN(MessageWriter);
-};
-
-
class SnapshotWriter : public BaseWriter {
public:
SnapshotWriter(Snapshot::Kind kind, uint8_t** buffer, ReAlloc alloc)
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698