| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include <stdlib.h> | 5 #include <stdlib.h> |
| 6 #include <string.h> | 6 #include <string.h> |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 10 #include "include/dart_tools_api.h" | 10 #include "include/dart_tools_api.h" |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1410 } | 1410 } |
| 1411 | 1411 |
| 1412 if (gen_precompiled_snapshot) { | 1412 if (gen_precompiled_snapshot) { |
| 1413 uint8_t* vm_isolate_buffer = NULL; | 1413 uint8_t* vm_isolate_buffer = NULL; |
| 1414 intptr_t vm_isolate_size = 0; | 1414 intptr_t vm_isolate_size = 0; |
| 1415 uint8_t* isolate_buffer = NULL; | 1415 uint8_t* isolate_buffer = NULL; |
| 1416 intptr_t isolate_size = 0; | 1416 intptr_t isolate_size = 0; |
| 1417 uint8_t* assembly_buffer = NULL; | 1417 uint8_t* assembly_buffer = NULL; |
| 1418 intptr_t assembly_size = 0; | 1418 intptr_t assembly_size = 0; |
| 1419 uint8_t* instructions_blob_buffer = NULL; | 1419 uint8_t* instructions_blob_buffer = NULL; |
| 1420 intptr_t instructions_blob_size = NULL; | 1420 intptr_t instructions_blob_size = 0; |
| 1421 uint8_t* rodata_blob_buffer = NULL; | 1421 uint8_t* rodata_blob_buffer = NULL; |
| 1422 intptr_t rodata_blob_size = NULL; | 1422 intptr_t rodata_blob_size = 0; |
| 1423 if (use_blobs) { | 1423 if (use_blobs) { |
| 1424 result = Dart_CreatePrecompiledSnapshotBlob( | 1424 result = Dart_CreatePrecompiledSnapshotBlob( |
| 1425 &vm_isolate_buffer, | 1425 &vm_isolate_buffer, |
| 1426 &vm_isolate_size, | 1426 &vm_isolate_size, |
| 1427 &isolate_buffer, | 1427 &isolate_buffer, |
| 1428 &isolate_size, | 1428 &isolate_size, |
| 1429 &instructions_blob_buffer, | 1429 &instructions_blob_buffer, |
| 1430 &instructions_blob_size, | 1430 &instructions_blob_size, |
| 1431 &rodata_blob_buffer, | 1431 &rodata_blob_buffer, |
| 1432 &rodata_blob_size); | 1432 &rodata_blob_size); |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1787 Platform::Exit(Process::GlobalExitCode()); | 1787 Platform::Exit(Process::GlobalExitCode()); |
| 1788 } | 1788 } |
| 1789 | 1789 |
| 1790 } // namespace bin | 1790 } // namespace bin |
| 1791 } // namespace dart | 1791 } // namespace dart |
| 1792 | 1792 |
| 1793 int main(int argc, char** argv) { | 1793 int main(int argc, char** argv) { |
| 1794 dart::bin::main(argc, argv); | 1794 dart::bin::main(argc, argv); |
| 1795 UNREACHABLE(); | 1795 UNREACHABLE(); |
| 1796 } | 1796 } |
| OLD | NEW |