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

Unified Diff: runtime/bin/snapshot_in.cc

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/bin/snapshot_empty.cc ('k') | runtime/include/dart_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/snapshot_in.cc
===================================================================
--- runtime/bin/snapshot_in.cc (revision 44745)
+++ runtime/bin/snapshot_in.cc (working copy)
@@ -18,12 +18,23 @@
namespace bin {
// The string on the next line will be filled in with the contents of the
-// generated snapshot binary file.
-// This string forms the content of a snapshot which is loaded in by dart.
-static const uint8_t snapshot_buffer_[] = {
+// generated snapshot binary file for the vm isolate.
+// This string forms the content of a vm isolate snapshot which is loaded
+// in by dart into the vm isolate.
+static const uint8_t vm_isolate_snapshot_buffer_[] = {
%s
};
-const uint8_t* snapshot_buffer = snapshot_buffer_;
+const uint8_t* vm_isolate_snapshot_buffer = vm_isolate_snapshot_buffer_;
+
+// The string on the next line will be filled in with the contents of the
+// generated snapshot binary file for a regular dart isolate.
+// This string forms the content of a regular dart isolate snapshot which is
+// loaded in by dart when an isolate is created.
+static const uint8_t isolate_snapshot_buffer_[] = {
+ %s
+};
+const uint8_t* isolate_snapshot_buffer = isolate_snapshot_buffer_;
+
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/snapshot_empty.cc ('k') | runtime/include/dart_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698