Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(936)

Side by Side Diff: runtime/bin/main.cc

Issue 26686005: Revert 28422 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/bin/resources_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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\n", 766 Log::PrintErr("Could not start VM Service isolate %s",
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
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 }
OLDNEW
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/bin/resources_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698