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

Unified Diff: vm/snapshot.h

Issue 8970004: Changes to create an application snapshot which can be layered on top (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years 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 | « vm/raw_object_snapshot.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/snapshot.h
===================================================================
--- vm/snapshot.h (revision 2601)
+++ vm/snapshot.h (working copy)
@@ -398,6 +398,9 @@
}
~SnapshotWriter() { }
+ // Snapshot kind.
+ Snapshot::Kind kind() const { return kind_; }
+
// Size of the snapshot.
intptr_t Size() const { return stream_.bytes_written(); }
@@ -482,7 +485,7 @@
class ScriptSnapshotWriter : public SnapshotWriter {
public:
- ScriptSnapshotWriter(const Library& lib, uint8_t** buffer, ReAlloc alloc)
+ ScriptSnapshotWriter(uint8_t** buffer, ReAlloc alloc)
: SnapshotWriter(Snapshot::kScript, buffer, alloc) {
ASSERT(buffer != NULL);
ASSERT(alloc != NULL);
@@ -490,7 +493,7 @@
~ScriptSnapshotWriter() { }
// Writes a partial snapshot of the script.
- void WriteScriptSnapshot();
+ void WriteScriptSnapshot(const Library& lib);
private:
DISALLOW_COPY_AND_ASSIGN(ScriptSnapshotWriter);
« no previous file with comments | « vm/raw_object_snapshot.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698