Chromium Code Reviews| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 // Global flag that is used to indicate that we want to compile all the | 59 // Global flag that is used to indicate that we want to compile all the |
| 60 // dart functions and not run anything. | 60 // dart functions and not run anything. |
| 61 static bool has_compile_all = false; | 61 static bool has_compile_all = false; |
| 62 | 62 |
| 63 // Global flag that is used to indicate that we want to print the source code | 63 // Global flag that is used to indicate that we want to print the source code |
| 64 // for script that is being run. | 64 // for script that is being run. |
| 65 static bool has_print_script = false; | 65 static bool has_print_script = false; |
| 66 | 66 |
| 67 | 67 |
| 68 // VM Service options. | 68 // VM Service options. |
| 69 static bool start_vm_service = false; | 69 static bool start_vm_service = true; |
| 70 static int vm_service_server_port = -1; | 70 static int vm_service_server_port = 0; |
|
turnidge
2014/04/14 16:51:46
Comment here on what a 0 port means.
Cutch
2014/04/15 17:42:07
I had to change this code. I put the comment about
| |
| 71 static const int DEFAULT_VM_SERVICE_SERVER_PORT = 8181; | 71 static const int DEFAULT_VM_SERVICE_SERVER_PORT = 8181; |
| 72 | 72 |
| 73 // The environment provided through the command line using -D options. | 73 // The environment provided through the command line using -D options. |
| 74 static dart::HashMap* environment = NULL; | 74 static dart::HashMap* environment = NULL; |
| 75 | 75 |
| 76 static bool IsValidFlag(const char* name, | 76 static bool IsValidFlag(const char* name, |
| 77 const char* prefix, | 77 const char* prefix, |
| 78 intptr_t prefix_length) { | 78 intptr_t prefix_length) { |
| 79 intptr_t name_length = strlen(name); | 79 intptr_t name_length = strlen(name); |
| 80 return ((name_length > prefix_length) && | 80 return ((name_length > prefix_length) && |
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1095 exit(Process::GlobalExitCode()); | 1095 exit(Process::GlobalExitCode()); |
| 1096 } | 1096 } |
| 1097 | 1097 |
| 1098 } // namespace bin | 1098 } // namespace bin |
| 1099 } // namespace dart | 1099 } // namespace dart |
| 1100 | 1100 |
| 1101 int main(int argc, char** argv) { | 1101 int main(int argc, char** argv) { |
| 1102 dart::bin::main(argc, argv); | 1102 dart::bin::main(argc, argv); |
| 1103 UNREACHABLE(); | 1103 UNREACHABLE(); |
| 1104 } | 1104 } |
| OLD | NEW |