| 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 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1617 free(decompressed); | 1617 free(decompressed); |
| 1618 return tar_file; | 1618 return tar_file; |
| 1619 } | 1619 } |
| 1620 #else // !defined(DART_PRECOMPILER) | 1620 #else // !defined(DART_PRECOMPILER) |
| 1621 static Dart_GetVMServiceAssetsArchive GetVMServiceAssetsArchiveCallback = NULL; | 1621 static Dart_GetVMServiceAssetsArchive GetVMServiceAssetsArchiveCallback = NULL; |
| 1622 #endif // !defined(DART_PRECOMPILER) | 1622 #endif // !defined(DART_PRECOMPILER) |
| 1623 | 1623 |
| 1624 | 1624 |
| 1625 void main(int argc, char** argv) { | 1625 void main(int argc, char** argv) { |
| 1626 char* script_name; | 1626 char* script_name; |
| 1627 const int EXTRA_VM_ARGUMENTS = 2; | 1627 const int EXTRA_VM_ARGUMENTS = 8; |
| 1628 CommandLineOptions vm_options(argc + EXTRA_VM_ARGUMENTS); | 1628 CommandLineOptions vm_options(argc + EXTRA_VM_ARGUMENTS); |
| 1629 CommandLineOptions dart_options(argc); | 1629 CommandLineOptions dart_options(argc); |
| 1630 bool print_flags_seen = false; | 1630 bool print_flags_seen = false; |
| 1631 bool verbose_debug_seen = false; | 1631 bool verbose_debug_seen = false; |
| 1632 | 1632 |
| 1633 vm_options.AddArgument("--no_write_protect_code"); | 1633 vm_options.AddArgument("--no_write_protect_code"); |
| 1634 // Perform platform specific initialization. | 1634 // Perform platform specific initialization. |
| 1635 if (!Platform::Initialize()) { | 1635 if (!Platform::Initialize()) { |
| 1636 Log::PrintErr("Initialization failed\n"); | 1636 Log::PrintErr("Initialization failed\n"); |
| 1637 } | 1637 } |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 Platform::Exit(Process::GlobalExitCode()); | 1783 Platform::Exit(Process::GlobalExitCode()); |
| 1784 } | 1784 } |
| 1785 | 1785 |
| 1786 } // namespace bin | 1786 } // namespace bin |
| 1787 } // namespace dart | 1787 } // namespace dart |
| 1788 | 1788 |
| 1789 int main(int argc, char** argv) { | 1789 int main(int argc, char** argv) { |
| 1790 dart::bin::main(argc, argv); | 1790 dart::bin::main(argc, argv); |
| 1791 UNREACHABLE(); | 1791 UNREACHABLE(); |
| 1792 } | 1792 } |
| OLD | NEW |