Chromium Code Reviews| 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 #if defined(_WIN32) | 8 #if defined(_WIN32) |
| 9 typedef unsigned __int8 uint8_t; | 9 typedef unsigned __int8 uint8_t; |
| 10 #else | 10 #else |
| 11 #include <inttypes.h> | 11 #include <inttypes.h> |
| 12 #include <stdint.h> | 12 #include <stdint.h> |
| 13 #endif | 13 #endif |
| 14 #include <stddef.h> | 14 #include <stddef.h> |
| 15 | 15 |
| 16 | 16 |
| 17 namespace dart { | 17 namespace dart { |
| 18 namespace bin { | 18 namespace bin { |
| 19 | 19 |
| 20 // 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 |
| 21 // generated snapshot binary file for the vm isolate. | 21 // generated snapshot binary file for the vm isolate. |
| 22 // 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 |
| 23 // into the vm isolate. | 23 // into the vm isolate. |
| 24 static const uint8_t vm_isolate_snapshot_buffer_[] = { | 24 static const uint8_t vm_isolate_snapshot_buffer_[] = { |
| 25 0, | |
|
hausner
2015/03/31 19:50:19
The comment above ("string on the next line") no l
| |
| 25 %s | 26 %s |
| 26 }; | 27 }; |
| 27 const uint8_t* vm_isolate_snapshot_buffer = vm_isolate_snapshot_buffer_; | 28 const uint8_t* vm_isolate_snapshot_buffer = vm_isolate_snapshot_buffer_; |
| 28 | 29 |
| 29 | 30 |
| 30 // The string on the next line will be filled in with the contents of the | 31 // The string on the next line will be filled in with the contents of the |
| 31 // generated snapshot binary file for a regular dart isolate. | 32 // generated snapshot binary file for a regular dart isolate. |
| 32 // This string forms the content of a regular dart isolate snapshot which is | 33 // This string forms the content of a regular dart isolate snapshot which is |
| 33 // loaded into an isolate when it is created. | 34 // loaded into an isolate when it is created. |
| 34 static const uint8_t isolate_snapshot_buffer_[] = { | 35 static const uint8_t isolate_snapshot_buffer_[] = { |
|
hausner
2015/03/31 19:50:19
Don't you need the same fix here?
| |
| 35 %s | 36 %s |
| 36 }; | 37 }; |
| 37 const uint8_t* isolate_snapshot_buffer = isolate_snapshot_buffer_; | 38 const uint8_t* isolate_snapshot_buffer = isolate_snapshot_buffer_; |
| 38 | 39 |
| 39 } // namespace bin | 40 } // namespace bin |
| 40 } // namespace dart | 41 } // namespace dart |
| OLD | NEW |