| 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_debugger_api.h" | 10 #include "include/dart_debugger_api.h" |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 } | 756 } |
| 757 | 757 |
| 758 // Start event handler. | 758 // Start event handler. |
| 759 EventHandler::Start(); | 759 EventHandler::Start(); |
| 760 | 760 |
| 761 // Start the VM service isolate, if necessary. | 761 // Start the VM service isolate, if necessary. |
| 762 if (start_vm_service) { | 762 if (start_vm_service) { |
| 763 ASSERT(vm_service_server_port >= 0); | 763 ASSERT(vm_service_server_port >= 0); |
| 764 bool r = VmService::Start(vm_service_server_port); | 764 bool r = VmService::Start(vm_service_server_port); |
| 765 if (!r) { | 765 if (!r) { |
| 766 Log::PrintErr("Could not start VM Service isolate %s", | 766 Log::PrintErr("Could not start VM Service isolate %s\n", |
| 767 VmService::GetErrorMessage()); | 767 VmService::GetErrorMessage()); |
| 768 } | 768 } |
| 769 } | 769 } |
| 770 | 770 |
| 771 // Call CreateIsolateAndSetup which creates an isolate and loads up | 771 // Call CreateIsolateAndSetup which creates an isolate and loads up |
| 772 // the specified application script. | 772 // the specified application script. |
| 773 char* error = NULL; | 773 char* error = NULL; |
| 774 bool is_compile_error = false; | 774 bool is_compile_error = false; |
| 775 char* isolate_name = BuildIsolateName(script_name, "main"); | 775 char* isolate_name = BuildIsolateName(script_name, "main"); |
| 776 Dart_Isolate isolate = CreateIsolateAndSetupHelper(script_name, | 776 Dart_Isolate isolate = CreateIsolateAndSetupHelper(script_name, |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 | 884 |
| 885 return Process::GlobalExitCode(); | 885 return Process::GlobalExitCode(); |
| 886 } | 886 } |
| 887 | 887 |
| 888 } // namespace bin | 888 } // namespace bin |
| 889 } // namespace dart | 889 } // namespace dart |
| 890 | 890 |
| 891 int main(int argc, char** argv) { | 891 int main(int argc, char** argv) { |
| 892 return dart::bin::main(argc, argv); | 892 return dart::bin::main(argc, argv); |
| 893 } | 893 } |
| OLD | NEW |