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

Unified Diff: vm/dart_api_impl.cc

Issue 9018002: Refactor some of the snapshot writer classes to eliminate code duplication. (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 | « no previous file | vm/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart_api_impl.cc
===================================================================
--- vm/dart_api_impl.cc (revision 2716)
+++ vm/dart_api_impl.cc (working copy)
@@ -650,7 +650,7 @@
isolate->object_store()->set_root_library(Library::Handle());
SnapshotWriter writer(Snapshot::kFull, buffer, ApiAllocator);
writer.WriteFullSnapshot();
- *size = writer.Size();
+ *size = writer.BytesWritten();
return Api::Success();
}
@@ -679,7 +679,7 @@
}
ScriptSnapshotWriter writer(buffer, ApiAllocator);
writer.WriteScriptSnapshot(library);
- *size = writer.Size();
+ *size = writer.BytesWritten();
return Api::Success();
}
« no previous file with comments | « no previous file | vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698