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

Side by Side Diff: sky/engine/bindings/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 | « sky/engine/bindings/BUILD.gn ('k') | sky/engine/core/script/dart_controller.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <inttypes.h> 5 #include <inttypes.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 namespace blink { 9 namespace blink {
10 10
11 // The string on the next line will be filled in with the contents of the 11 // The string on the next line will be filled in with the contents of the
12 // generated snapshot binary file. 12 // generated snapshot binary file for the vm isolate.
13 // This string forms the content of a snapshot which is loaded in by dart. 13 // This string forms the content of the dart vm isolate snapshot which
14 static const uint8_t snapshot_buffer_[] = { % s}; 14 // is loaded into the vm isolate.
15 static const uint8_t vm_isolate_snapshot_buffer_[] = { % s};
16 const uint8_t* kDartVmIsolateSnapshotBuffer = vm_isolate_snapshot_buffer_;
15 17
16 const uint8_t* kDartSnapshotBuffer = snapshot_buffer_; 18 // The string on the next line will be filled in with the contents of the
19 // generated snapshot binary file for a regular dart isolate.
20 // This string forms the content of a regular dart isolate snapshot which
21 // is loaded into an isolate when it is created.
22 static const uint8_t isolate_snapshot_buffer_[] = { % s};
23 const uint8_t* kDartIsolateSnapshotBuffer = isolate_snapshot_buffer_;
17 24
18 } // namespace blink 25 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings/BUILD.gn ('k') | sky/engine/core/script/dart_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698