| 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 <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 } | 1035 } |
| 1036 | 1036 |
| 1037 Dart_SetVMFlags(vm_options.count(), vm_options.arguments()); | 1037 Dart_SetVMFlags(vm_options.count(), vm_options.arguments()); |
| 1038 | 1038 |
| 1039 // Initialize the Dart VM. | 1039 // Initialize the Dart VM. |
| 1040 // Note: We don't expect isolates to be created from dart code during | 1040 // Note: We don't expect isolates to be created from dart code during |
| 1041 // snapshot generation. | 1041 // snapshot generation. |
| 1042 char* error = Dart_Initialize( | 1042 char* error = Dart_Initialize( |
| 1043 NULL, | 1043 NULL, |
| 1044 NULL, | 1044 NULL, |
| 1045 NULL, |
| 1045 CreateServiceIsolate, | 1046 CreateServiceIsolate, |
| 1046 NULL, | 1047 NULL, |
| 1047 NULL, | 1048 NULL, |
| 1048 NULL, | 1049 NULL, |
| 1049 DartUtils::OpenFile, | 1050 DartUtils::OpenFile, |
| 1050 DartUtils::ReadFile, | 1051 DartUtils::ReadFile, |
| 1051 DartUtils::WriteFile, | 1052 DartUtils::WriteFile, |
| 1052 DartUtils::CloseFile, | 1053 DartUtils::CloseFile, |
| 1053 DartUtils::EntropySource, | 1054 DartUtils::EntropySource, |
| 1054 NULL); | 1055 NULL); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 EventHandler::Stop(); | 1152 EventHandler::Stop(); |
| 1152 return 0; | 1153 return 0; |
| 1153 } | 1154 } |
| 1154 | 1155 |
| 1155 } // namespace bin | 1156 } // namespace bin |
| 1156 } // namespace dart | 1157 } // namespace dart |
| 1157 | 1158 |
| 1158 int main(int argc, char** argv) { | 1159 int main(int argc, char** argv) { |
| 1159 return dart::bin::main(argc, argv); | 1160 return dart::bin::main(argc, argv); |
| 1160 } | 1161 } |
| OLD | NEW |