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

Unified Diff: mojo/dart/embedder/snapshot.cc.tmpl

Issue 1047883002: gen_snapshot now generates two snapshot buffers, one for the vm isolate (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: update dart revision 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 | « mojo/dart/embedder/dart_controller.cc ('k') | mojo/dart/embedder/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/snapshot.cc.tmpl
diff --git a/mojo/dart/embedder/snapshot.cc.tmpl b/mojo/dart/embedder/snapshot.cc.tmpl
index d9b12002e78702966b007e84b99c3d7cfd255db9..892d20989464864e8870c8f78b7b6849e2ad3104 100644
--- a/mojo/dart/embedder/snapshot.cc.tmpl
+++ b/mojo/dart/embedder/snapshot.cc.tmpl
@@ -13,10 +13,18 @@ namespace mojo {
namespace dart {
// 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_[] = { % s};
-const uint8_t* snapshot_buffer = snapshot_buffer_;
+// generated snapshot binary file for the vm isolate.
+// This string forms the content of the dart vm isolate snapshot which
+// is loaded into the vm isolate.
+static const uint8_t vm_isolate_snapshot_buffer_[] = { % s};
+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 into an isolate when it is created.
+static const uint8_t isolate_snapshot_buffer_[] = { % s};
+const uint8_t* isolate_snapshot_buffer = isolate_snapshot_buffer_;
} // namespace dart
} // namespace mojo
« no previous file with comments | « mojo/dart/embedder/dart_controller.cc ('k') | mojo/dart/embedder/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698