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

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

Issue 59773007: - Add a per-isolate pseudo random number generator to the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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
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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 return kErrorExitCode; 802 return kErrorExitCode;
803 } 803 }
804 804
805 Dart_SetVMFlags(vm_options.count(), vm_options.arguments()); 805 Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
806 806
807 // Initialize the Dart VM. 807 // Initialize the Dart VM.
808 if (!Dart_Initialize(CreateIsolateAndSetup, NULL, NULL, ShutdownIsolate, 808 if (!Dart_Initialize(CreateIsolateAndSetup, NULL, NULL, ShutdownIsolate,
809 DartUtils::OpenFile, 809 DartUtils::OpenFile,
810 DartUtils::ReadFile, 810 DartUtils::ReadFile,
811 DartUtils::WriteFile, 811 DartUtils::WriteFile,
812 DartUtils::CloseFile)) { 812 DartUtils::CloseFile,
813 DartUtils::EntropySource)) {
813 fprintf(stderr, "%s", "VM initialization failed\n"); 814 fprintf(stderr, "%s", "VM initialization failed\n");
814 fflush(stderr); 815 fflush(stderr);
815 return kErrorExitCode; 816 return kErrorExitCode;
816 } 817 }
817 818
818 // Start the debugger wire protocol handler if necessary. 819 // Start the debugger wire protocol handler if necessary.
819 if (start_debugger) { 820 if (start_debugger) {
820 ASSERT(debug_port >= 0); 821 ASSERT(debug_port >= 0);
821 bool print_msg = verbose_debug_seen || (debug_port == 0); 822 bool print_msg = verbose_debug_seen || (debug_port == 0);
822 debug_port = DebuggerConnectionHandler::StartHandler(debug_ip, debug_port); 823 debug_port = DebuggerConnectionHandler::StartHandler(debug_ip, debug_port);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 995
995 return Process::GlobalExitCode(); 996 return Process::GlobalExitCode();
996 } 997 }
997 998
998 } // namespace bin 999 } // namespace bin
999 } // namespace dart 1000 } // namespace dart
1000 1001
1001 int main(int argc, char** argv) { 1002 int main(int argc, char** argv) {
1002 return dart::bin::main(argc, argv); 1003 return dart::bin::main(argc, argv);
1003 } 1004 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698