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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // Global flag that is used to indicate that we want to run from a precompiled | 79 // Global flag that is used to indicate that we want to run from a precompiled |
80 // snapshot. | 80 // snapshot. |
81 static bool has_run_precompiled_snapshot = false; | 81 static bool has_run_precompiled_snapshot = false; |
82 | 82 |
83 | 83 |
84 extern const char* kPrecompiledLibraryName; | 84 extern const char* kPrecompiledLibraryName; |
85 extern const char* kPrecompiledSymbolName; | 85 extern const char* kPrecompiledSymbolName; |
86 static const char* kPrecompiledVmIsolateName = "precompiled.vmisolate"; | 86 static const char* kPrecompiledVmIsolateName = "precompiled.vmisolate"; |
87 static const char* kPrecompiledIsolateName = "precompiled.isolate"; | 87 static const char* kPrecompiledIsolateName = "precompiled.isolate"; |
88 static const char* kPrecompiledInstructionsName = "precompiled.instructions"; | 88 static const char* kPrecompiledInstructionsName = "precompiled.S"; |
89 | 89 |
90 | 90 |
91 // Global flag that is used to indicate that we want to trace resolution of | 91 // Global flag that is used to indicate that we want to trace resolution of |
92 // URIs and the loading of libraries, parts and scripts. | 92 // URIs and the loading of libraries, parts and scripts. |
93 static bool has_trace_loading = false; | 93 static bool has_trace_loading = false; |
94 | 94 |
95 | 95 |
96 static const char* DEFAULT_VM_SERVICE_SERVER_IP = "127.0.0.1"; | 96 static const char* DEFAULT_VM_SERVICE_SERVER_IP = "127.0.0.1"; |
97 static const int DEFAULT_VM_SERVICE_SERVER_PORT = 8181; | 97 static const int DEFAULT_VM_SERVICE_SERVER_PORT = 8181; |
98 // VM Service options. | 98 // VM Service options. |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 exit(Process::GlobalExitCode()); | 1311 exit(Process::GlobalExitCode()); |
1312 } | 1312 } |
1313 | 1313 |
1314 } // namespace bin | 1314 } // namespace bin |
1315 } // namespace dart | 1315 } // namespace dart |
1316 | 1316 |
1317 int main(int argc, char** argv) { | 1317 int main(int argc, char** argv) { |
1318 dart::bin::main(argc, argv); | 1318 dart::bin::main(argc, argv); |
1319 UNREACHABLE(); | 1319 UNREACHABLE(); |
1320 } | 1320 } |
OLD | NEW |