| 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 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 |
| OLD | NEW |