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