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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 " --assembly=<output-file> \n" | 891 " --assembly=<output-file> \n" |
892 " {--embedder_entry_points_manifest=<input-file>} \n" | 892 " {--embedder_entry_points_manifest=<input-file>} \n" |
893 " <dart-script-file> \n" | 893 " <dart-script-file> \n" |
894 " \n" | 894 " \n" |
895 " AOT snapshots require entry points manifest files, which list the places \n" | 895 " AOT snapshots require entry points manifest files, which list the places \n" |
896 " in the Dart program the embedder calls from the C API (Dart_Invoke, etc). \n" | 896 " in the Dart program the embedder calls from the C API (Dart_Invoke, etc). \n" |
897 " Not specifying these may cause the tree shaker to remove them from the \n" | 897 " Not specifying these may cause the tree shaker to remove them from the \n" |
898 " program. The format of this manifest is as follows. Each line in the \n" | 898 " program. The format of this manifest is as follows. Each line in the \n" |
899 " manifest is a comma separated list of three elements. The first entry is \n" | 899 " manifest is a comma separated list of three elements. The first entry is \n" |
900 " the library URI, the second entry is the class name and the final entry \n" | 900 " the library URI, the second entry is the class name and the final entry \n" |
901 " the function name. The file must be terminated with a newline charater. \n" | 901 " the function name. The file must be terminated with a newline character. \n" |
902 " \n" | 902 " \n" |
903 " Example: \n" | 903 " Example: \n" |
904 " dart:something,SomeClass,doSomething \n" | 904 " dart:something,SomeClass,doSomething \n" |
905 "\n"); | 905 "\n"); |
906 } | 906 } |
907 // clang-format on | 907 // clang-format on |
908 | 908 |
909 | 909 |
910 static const char StubNativeFunctionName[] = "StubNativeFunction"; | 910 static const char StubNativeFunctionName[] = "StubNativeFunction"; |
911 | 911 |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 delete mapped_isolate_snapshot_data; | 1678 delete mapped_isolate_snapshot_data; |
1679 return 0; | 1679 return 0; |
1680 } | 1680 } |
1681 | 1681 |
1682 } // namespace bin | 1682 } // namespace bin |
1683 } // namespace dart | 1683 } // namespace dart |
1684 | 1684 |
1685 int main(int argc, char** argv) { | 1685 int main(int argc, char** argv) { |
1686 return dart::bin::main(argc, argv); | 1686 return dart::bin::main(argc, argv); |
1687 } | 1687 } |
OLD | NEW |