| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // Generate a snapshot file after loading all the scripts specified on the | 5 // Generate a snapshot file after loading all the scripts specified on the |
| 6 // command line. | 6 // command line. |
| 7 | 7 |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 " --vm_snapshot_data=<output-file> \n" | 982 " --vm_snapshot_data=<output-file> \n" |
| 983 " --isolate_snapshot_data=<output-file> \n" | 983 " --isolate_snapshot_data=<output-file> \n" |
| 984 " [<dart-script-file>] \n" | 984 " [<dart-script-file>] \n" |
| 985 " \n" | 985 " \n" |
| 986 " Writes a snapshot of <dart-script-file> to the specified snapshot files. \n" | 986 " Writes a snapshot of <dart-script-file> to the specified snapshot files. \n" |
| 987 " If no <dart-script-file> is passed, a generic snapshot of all the corelibs \n" | 987 " If no <dart-script-file> is passed, a generic snapshot of all the corelibs \n" |
| 988 " is created. \n" | 988 " is created. \n" |
| 989 " \n" | 989 " \n" |
| 990 " To create a script snapshot with respect to a given core snapshot: \n" | 990 " To create a script snapshot with respect to a given core snapshot: \n" |
| 991 " --snapshot_kind=script \n" | 991 " --snapshot_kind=script \n" |
| 992 " --vm_snapshot_data=<intput-file> \n" | 992 " --vm_snapshot_data=<input-file> \n" |
| 993 " --isolate_snapshot_data=<intput-file> \n" | 993 " --isolate_snapshot_data=<input-file> \n" |
| 994 " --script_snapshot=<output-file> \n" | 994 " --script_snapshot=<output-file> \n" |
| 995 " <dart-script-file> \n" | 995 " <dart-script-file> \n" |
| 996 " \n" | 996 " \n" |
| 997 " Writes a snapshot of <dart-script-file> to the specified snapshot files. \n" | 997 " Writes a snapshot of <dart-script-file> to the specified snapshot files. \n" |
| 998 " If no <dart-script-file> is passed, a generic snapshot of all the corelibs\n" | 998 " If no <dart-script-file> is passed, a generic snapshot of all the corelibs\n" |
| 999 " is created. \n" | 999 " is created. \n" |
| 1000 " \n" | 1000 " \n" |
| 1001 " To create an AOT application snapshot as blobs suitable for loading with \n" | 1001 " To create an AOT application snapshot as blobs suitable for loading with \n" |
| 1002 " mmap: \n" | 1002 " mmap: \n" |
| 1003 " --snapshot_kind=app-aot-blobs \n" | 1003 " --snapshot_kind=app-aot-blobs \n" |
| (...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1897 delete mapped_isolate_snapshot_instructions; | 1897 delete mapped_isolate_snapshot_instructions; |
| 1898 return 0; | 1898 return 0; |
| 1899 } | 1899 } |
| 1900 | 1900 |
| 1901 } // namespace bin | 1901 } // namespace bin |
| 1902 } // namespace dart | 1902 } // namespace dart |
| 1903 | 1903 |
| 1904 int main(int argc, char** argv) { | 1904 int main(int argc, char** argv) { |
| 1905 return dart::bin::main(argc, argv); | 1905 return dart::bin::main(argc, argv); |
| 1906 } | 1906 } |
| OLD | NEW |