| OLD | NEW |
| 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 extern "C" { |
| 19 namespace bin { | |
| 20 | 19 |
| 21 // The string on the next line will be filled in with the contents of the | 20 // The string on the next line will be filled in with the contents of the |
| 22 // generated snapshot binary file for the vm isolate. | 21 // generated snapshot binary file for the vm isolate. |
| 23 // This string forms the content of a vm isolate snapshot which is loaded | 22 // This string forms the content of a vm isolate snapshot which is loaded |
| 24 // into the vm isolate. | 23 // into the vm isolate. |
| 25 static const uint8_t vm_snapshot_data_[] = { | 24 uint8_t kDartVmSnapshotData[] = { |
| 26 %s | 25 %s |
| 27 }; | 26 }; |
| 28 const uint8_t* vm_snapshot_data = vm_snapshot_data_; | 27 uint8_t kDartVmSnapshotInstructions[] = {}; |
| 29 const uint8_t* vm_snapshot_instructions = NULL; | |
| 30 | |
| 31 | 28 |
| 32 // The string on the next line will be filled in with the contents of the | 29 // The string on the next line will be filled in with the contents of the |
| 33 // generated snapshot binary file for a regular dart isolate. | 30 // generated snapshot binary file for a regular dart isolate. |
| 34 // This string forms the content of a regular dart isolate snapshot which is | 31 // This string forms the content of a regular dart isolate snapshot which is |
| 35 // loaded into an isolate when it is created. | 32 // loaded into an isolate when it is created. |
| 36 static const uint8_t core_isolate_snapshot_data_[] = { | 33 uint8_t kDartCoreIsolateSnapshotData[] = { |
| 37 %s | 34 %s |
| 38 }; | 35 }; |
| 39 const uint8_t* core_isolate_snapshot_data = core_isolate_snapshot_data_; | 36 uint8_t kDartCoreIsolateSnapshotInstructions[] = {}; |
| 40 const uint8_t* core_isolate_snapshot_instructions = NULL; | |
| 41 | 37 |
| 42 } // namespace bin | 38 } |
| 43 } // namespace dart | |
| OLD | NEW |