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

Unified Diff: runtime/vm/snapshot.h

Issue 1023753006: First step towards splitting a full snapshot into a vm isolate snapshot and a (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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_impl_test.cc ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.h
===================================================================
--- runtime/vm/snapshot.h (revision 44745)
+++ runtime/vm/snapshot.h (working copy)
@@ -677,9 +677,16 @@
class FullSnapshotWriter : public SnapshotWriter {
public:
static const intptr_t kInitialSize = 64 * KB;
- FullSnapshotWriter(uint8_t** buffer, ReAlloc alloc)
- : SnapshotWriter(Snapshot::kFull, buffer, alloc, kInitialSize, true) {
- ASSERT(buffer != NULL);
+ FullSnapshotWriter(uint8_t** vm_isolate_snapshot_buffer,
+ uint8_t** isolate_snapshot_buffer,
+ ReAlloc alloc)
+ : SnapshotWriter(Snapshot::kFull,
+ isolate_snapshot_buffer,
+ alloc,
+ kInitialSize,
+ true) {
+ ASSERT(vm_isolate_snapshot_buffer != NULL);
+ ASSERT(isolate_snapshot_buffer != NULL);
ASSERT(alloc != NULL);
}
~FullSnapshotWriter() { }
@@ -687,6 +694,9 @@
// Writes a full snapshot of the Isolate.
void WriteFullSnapshot();
+ intptr_t VmIsolateSnapshotSize() const { return 0; }
+ intptr_t IsolateSnapshotSize() const { return BytesWritten(); }
+
private:
DISALLOW_COPY_AND_ASSIGN(FullSnapshotWriter);
};
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698