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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 } | 910 } |
911 if (isolate_run_app_snapshot) { | 911 if (isolate_run_app_snapshot) { |
912 Dart_Handle result = Loader::ReloadNativeExtensions(); | 912 Dart_Handle result = Loader::ReloadNativeExtensions(); |
913 CHECK_RESULT(result); | 913 CHECK_RESULT(result); |
914 } | 914 } |
915 | 915 |
916 if (Dart_IsServiceIsolate(isolate)) { | 916 if (Dart_IsServiceIsolate(isolate)) { |
917 // If this is the service isolate, load embedder specific bits and return. | 917 // If this is the service isolate, load embedder specific bits and return. |
918 bool skip_library_load = isolate_run_app_snapshot; | 918 bool skip_library_load = isolate_run_app_snapshot; |
919 if (!VmService::Setup(vm_service_server_ip, vm_service_server_port, | 919 if (!VmService::Setup(vm_service_server_ip, vm_service_server_port, |
920 skip_library_load, vm_service_dev_mode)) { | 920 skip_library_load, vm_service_dev_mode, |
| 921 trace_loading)) { |
921 *error = strdup(VmService::GetErrorMessage()); | 922 *error = strdup(VmService::GetErrorMessage()); |
922 return NULL; | 923 return NULL; |
923 } | 924 } |
924 if (compile_all) { | 925 if (compile_all) { |
925 result = Dart_CompileAll(); | 926 result = Dart_CompileAll(); |
926 CHECK_RESULT(result); | 927 CHECK_RESULT(result); |
927 } | 928 } |
928 result = Dart_SetEnvironmentCallback(EnvironmentCallback); | 929 result = Dart_SetEnvironmentCallback(EnvironmentCallback); |
929 CHECK_RESULT(result); | 930 CHECK_RESULT(result); |
930 Dart_ExitScope(); | 931 Dart_ExitScope(); |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1667 Platform::Exit(Process::GlobalExitCode()); | 1668 Platform::Exit(Process::GlobalExitCode()); |
1668 } | 1669 } |
1669 | 1670 |
1670 } // namespace bin | 1671 } // namespace bin |
1671 } // namespace dart | 1672 } // namespace dart |
1672 | 1673 |
1673 int main(int argc, char** argv) { | 1674 int main(int argc, char** argv) { |
1674 dart::bin::main(argc, argv); | 1675 dart::bin::main(argc, argv); |
1675 UNREACHABLE(); | 1676 UNREACHABLE(); |
1676 } | 1677 } |
OLD | NEW |