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

Side by Side Diff: runtime/bin/snapshot_in.cc

Issue 2622053002: Refactor snapshots pieces to include a section for loading instructions into the heap of a regular … (Closed)
Patch Set: . Created 3 years, 11 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 | « runtime/bin/snapshot_empty.cc ('k') | runtime/bin/vmservice_dartium.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 (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 // clang-format off 5 // clang-format off
6 6
7 // This file is linked into the dart executable when it has a snapshot 7 // This file is linked into the dart executable when it has a snapshot
8 // linked into it. 8 // linked into it.
9 9
10 #if defined(_WIN32) 10 #if defined(_WIN32)
11 typedef unsigned __int8 uint8_t; 11 typedef unsigned __int8 uint8_t;
12 #else 12 #else
13 #include <inttypes.h> 13 #include <inttypes.h>
14 #include <stdint.h> 14 #include <stdint.h>
15 #endif 15 #endif
16 #include <stddef.h> 16 #include <stddef.h>
17 17
18 namespace dart { 18 namespace dart {
19 namespace bin { 19 namespace bin {
20 20
21 // The string on the next line will be filled in with the contents of the 21 // The string on the next line will be filled in with the contents of the
22 // generated snapshot binary file for the vm isolate. 22 // generated snapshot binary file for the vm isolate.
23 // This string forms the content of a vm isolate snapshot which is loaded 23 // This string forms the content of a vm isolate snapshot which is loaded
24 // into the vm isolate. 24 // into the vm isolate.
25 static const uint8_t vm_isolate_snapshot_buffer_[] = { 25 static const uint8_t vm_snapshot_data_[] = {
26 %s 26 %s
27 }; 27 };
28 const uint8_t* vm_isolate_snapshot_buffer = vm_isolate_snapshot_buffer_; 28 const uint8_t* vm_snapshot_data = vm_snapshot_data_;
29 const uint8_t* vm_snapshot_instructions = NULL;
29 30
30 31
31 // The string on the next line will be filled in with the contents of the 32 // The string on the next line will be filled in with the contents of the
32 // generated snapshot binary file for a regular dart isolate. 33 // generated snapshot binary file for a regular dart isolate.
33 // This string forms the content of a regular dart isolate snapshot which is 34 // This string forms the content of a regular dart isolate snapshot which is
34 // loaded into an isolate when it is created. 35 // loaded into an isolate when it is created.
35 static const uint8_t core_isolate_snapshot_buffer_[] = { 36 static const uint8_t core_isolate_snapshot_data_[] = {
36 %s 37 %s
37 }; 38 };
38 const uint8_t* core_isolate_snapshot_buffer = core_isolate_snapshot_buffer_; 39 const uint8_t* core_isolate_snapshot_data = core_isolate_snapshot_data_;
40 const uint8_t* core_isolate_snapshot_instructions = NULL;
39 41
40 } // namespace bin 42 } // namespace bin
41 } // namespace dart 43 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/snapshot_empty.cc ('k') | runtime/bin/vmservice_dartium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698