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

Side by Side 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, 8 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This file is linked into the dart executable when it has a snapshot 5 // This file is linked into the dart executable when it has a snapshot
6 // linked into it. 6 // linked into it.
7 7
8 #include <inttypes.h> 8 #include <inttypes.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stddef.h> 10 #include <stddef.h>
11 11
12 namespace mojo { 12 namespace mojo {
13 namespace dart { 13 namespace dart {
14 14
15 // The string on the next line will be filled in with the contents of the 15 // The string on the next line will be filled in with the contents of the
16 // generated snapshot binary file. 16 // generated snapshot binary file for the vm isolate.
17 // This string forms the content of a snapshot which is loaded in by dart. 17 // This string forms the content of the dart vm isolate snapshot which
18 static const uint8_t snapshot_buffer_[] = { % s}; 18 // is loaded into the vm isolate.
19 const uint8_t* snapshot_buffer = snapshot_buffer_; 19 static const uint8_t vm_isolate_snapshot_buffer_[] = { % s};
20 const uint8_t* vm_isolate_snapshot_buffer = vm_isolate_snapshot_buffer_;
21
22 // The string on the next line will be filled in with the contents of the
23 // generated snapshot binary file for a regular dart isolate.
24 // This string forms the content of a regular dart isolate snapshot which
25 // is loaded into an isolate when it is created.
26 static const uint8_t isolate_snapshot_buffer_[] = { % s};
27 const uint8_t* isolate_snapshot_buffer = isolate_snapshot_buffer_;
20 28
21 } // namespace dart 29 } // namespace dart
22 } // namespace mojo 30 } // namespace mojo
OLDNEW
« 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