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

Unified Diff: runtime/vm/snapshot.h

Issue 1188973003: Port "Add snapshoting methods for code's metadata." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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/raw_object_snapshot.cc ('k') | no next file » | 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 ef0777735cf856708da1567134b8b3598c495afd..ec0b1c0b719d7c8b6a636e5d02f1d830d5bc7fd5 100644
--- a/runtime/vm/snapshot.h
+++ b/runtime/vm/snapshot.h
@@ -284,6 +284,7 @@ class SnapshotReader : public BaseReader {
ExternalTypedData* DataHandle() { return &data_; }
TypedData* TypedDataHandle() { return &typed_data_; }
Snapshot::Kind kind() const { return kind_; }
+ bool allow_code() const { return false; }
// Reads an object.
RawObject* ReadObject();
@@ -446,6 +447,8 @@ class SnapshotReader : public BaseReader {
friend class UnhandledException;
friend class WeakProperty;
friend class MirrorReference;
+ friend class ExceptionHandlers;
+ friend class LocalVarDescriptors;
DISALLOW_COPY_AND_ASSIGN(SnapshotReader);
};
@@ -658,6 +661,7 @@ class SnapshotWriter : public BaseWriter {
public:
// Snapshot kind.
Snapshot::Kind kind() const { return kind_; }
+ bool allow_code() const { return false; }
// Serialize an object into the buffer.
void WriteObject(RawObject* raw);
@@ -759,6 +763,8 @@ class SnapshotWriter : public BaseWriter {
friend class RawTokenStream;
friend class RawTypeArguments;
friend class RawUserTag;
+ friend class RawExceptionHandlers;
+ friend class RawLocalVarDescriptors;
friend class SnapshotWriterVisitor;
friend class WriteInlinedObjectVisitor;
DISALLOW_COPY_AND_ASSIGN(SnapshotWriter);
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698