Index: runtime/vm/snapshot.h |
diff --git a/runtime/vm/snapshot.h b/runtime/vm/snapshot.h |
index c0d10166108706f6b3c21b2ee09dfc1962ba475b..c374c8b11c5f65163ddee553616b20dfecab7c04 100644 |
--- a/runtime/vm/snapshot.h |
+++ b/runtime/vm/snapshot.h |
@@ -121,31 +121,25 @@ static const bool kAsReference = true; |
static const bool kAsInlinedObject = false; |
static const intptr_t kInvalidPatchIndex = -1; |
- |
class SerializedHeaderTag |
: public BitField<intptr_t, enum SerializedHeaderType, 0, kHeaderTagBits> { |
}; |
- |
class SerializedHeaderData |
: public BitField<intptr_t, intptr_t, kHeaderTagBits, kObjectIdBits> {}; |
- |
enum DeserializeState { |
kIsDeserialized = 0, |
kIsNotDeserialized = 1, |
}; |
- |
enum SerializeState { |
kIsSerialized = 0, |
kIsNotSerialized = 1, |
}; |
- |
#define HEAP_SPACE(kind) (kind == Snapshot::kMessage) ? Heap::kNew : Heap::kOld |
- |
// Structure capturing the raw snapshot. |
// |
// TODO(turnidge): Remove this class once the snapshot does not have a |
@@ -208,7 +202,6 @@ class Snapshot { |
DISALLOW_COPY_AND_ASSIGN(Snapshot); |
}; |
- |
class Image : ValueObject { |
public: |
explicit Image(const void* raw_memory) : raw_memory_(raw_memory) { |
@@ -233,7 +226,6 @@ class Image : ValueObject { |
DISALLOW_COPY_AND_ASSIGN(Image); |
}; |
- |
class BaseReader { |
public: |
BaseReader(const uint8_t* buffer, intptr_t size) : stream_(buffer, size) {} |
@@ -292,7 +284,6 @@ class BaseReader { |
ReadStream stream_; // input stream. |
}; |
- |
class BackRefNode : public ValueObject { |
public: |
BackRefNode(Object* reference, |
@@ -333,7 +324,6 @@ class BackRefNode : public ValueObject { |
ZoneGrowableArray<intptr_t>* patch_records_; |
}; |
- |
class ImageReader : public ZoneAllocated { |
public: |
ImageReader(const uint8_t* instructions_buffer, const uint8_t* data_buffer) |
@@ -354,7 +344,6 @@ class ImageReader : public ZoneAllocated { |
DISALLOW_COPY_AND_ASSIGN(ImageReader); |
}; |
- |
// Reads a snapshot into objects. |
class SnapshotReader : public BaseReader { |
public: |
@@ -529,7 +518,6 @@ class SnapshotReader : public BaseReader { |
DISALLOW_COPY_AND_ASSIGN(SnapshotReader); |
}; |
- |
class ScriptSnapshotReader : public SnapshotReader { |
public: |
ScriptSnapshotReader(const uint8_t* buffer, intptr_t size, Thread* thread); |
@@ -539,7 +527,6 @@ class ScriptSnapshotReader : public SnapshotReader { |
DISALLOW_COPY_AND_ASSIGN(ScriptSnapshotReader); |
}; |
- |
class MessageSnapshotReader : public SnapshotReader { |
public: |
MessageSnapshotReader(const uint8_t* buffer, intptr_t size, Thread* thread); |
@@ -549,7 +536,6 @@ class MessageSnapshotReader : public SnapshotReader { |
DISALLOW_COPY_AND_ASSIGN(MessageSnapshotReader); |
}; |
- |
class BaseWriter : public StackResource { |
public: |
// Size of the snapshot. |
@@ -645,7 +631,6 @@ class BaseWriter : public StackResource { |
DISALLOW_IMPLICIT_CONSTRUCTORS(BaseWriter); |
}; |
- |
class ForwardList { |
public: |
explicit ForwardList(Thread* thread, intptr_t first_object_id); |
@@ -700,7 +685,6 @@ class ForwardList { |
DISALLOW_COPY_AND_ASSIGN(ForwardList); |
}; |
- |
class ImageWriter : public ZoneAllocated { |
public: |
ImageWriter() |
@@ -761,7 +745,6 @@ class ImageWriter : public ZoneAllocated { |
DISALLOW_COPY_AND_ASSIGN(ImageWriter); |
}; |
- |
class AssemblyImageWriter : public ImageWriter { |
public: |
AssemblyImageWriter(uint8_t** assembly_buffer, |
@@ -795,7 +778,6 @@ class AssemblyImageWriter : public ImageWriter { |
DISALLOW_COPY_AND_ASSIGN(AssemblyImageWriter); |
}; |
- |
class BlobImageWriter : public ImageWriter { |
public: |
BlobImageWriter(uint8_t** instructions_blob_buffer, |
@@ -819,7 +801,6 @@ class BlobImageWriter : public ImageWriter { |
DISALLOW_COPY_AND_ASSIGN(BlobImageWriter); |
}; |
- |
class SnapshotWriter : public BaseWriter { |
protected: |
SnapshotWriter(Thread* thread, |
@@ -938,7 +919,6 @@ class SnapshotWriter : public BaseWriter { |
DISALLOW_COPY_AND_ASSIGN(SnapshotWriter); |
}; |
- |
class ScriptSnapshotWriter : public SnapshotWriter { |
public: |
static const intptr_t kInitialSize = 64 * KB; |
@@ -954,7 +934,6 @@ class ScriptSnapshotWriter : public SnapshotWriter { |
DISALLOW_COPY_AND_ASSIGN(ScriptSnapshotWriter); |
}; |
- |
class SerializedObjectBuffer : public StackResource { |
public: |
SerializedObjectBuffer() |
@@ -980,7 +959,6 @@ class SerializedObjectBuffer : public StackResource { |
intptr_t object_length_; |
}; |
- |
class MessageWriter : public SnapshotWriter { |
public: |
static const intptr_t kInitialSize = 512; |
@@ -1000,7 +978,6 @@ class MessageWriter : public SnapshotWriter { |
DISALLOW_COPY_AND_ASSIGN(MessageWriter); |
}; |
- |
// An object pointer visitor implementation which writes out |
// objects to a snap shot. |
class SnapshotWriterVisitor : public ObjectPointerVisitor { |