| 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 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 // Shutdown the isolate. | 1340 // Shutdown the isolate. |
| 1341 Dart_ShutdownIsolate(); | 1341 Dart_ShutdownIsolate(); |
| 1342 | 1342 |
| 1343 // No restart. | 1343 // No restart. |
| 1344 return false; | 1344 return false; |
| 1345 } | 1345 } |
| 1346 | 1346 |
| 1347 #undef CHECK_RESULT | 1347 #undef CHECK_RESULT |
| 1348 | 1348 |
| 1349 extern unsigned int observatory_assets_archive_len; | 1349 extern unsigned int observatory_assets_archive_len; |
| 1350 extern const char* observatory_assets_archive; | 1350 extern const uint8_t* const observatory_assets_archive; |
| 1351 | 1351 |
| 1352 Dart_Handle GetVMServiceAssetsArchiveCallback() { | 1352 Dart_Handle GetVMServiceAssetsArchiveCallback() { |
| 1353 return DartUtils::MakeUint8Array( | 1353 return DartUtils::MakeUint8Array( |
| 1354 reinterpret_cast<const uint8_t*>(&observatory_assets_archive[0]), | 1354 observatory_assets_archive, |
| 1355 observatory_assets_archive_len); | 1355 observatory_assets_archive_len); |
| 1356 } | 1356 } |
| 1357 | 1357 |
| 1358 | 1358 |
| 1359 void main(int argc, char** argv) { | 1359 void main(int argc, char** argv) { |
| 1360 char* script_name; | 1360 char* script_name; |
| 1361 const int EXTRA_VM_ARGUMENTS = 2; | 1361 const int EXTRA_VM_ARGUMENTS = 2; |
| 1362 CommandLineOptions vm_options(argc + EXTRA_VM_ARGUMENTS); | 1362 CommandLineOptions vm_options(argc + EXTRA_VM_ARGUMENTS); |
| 1363 CommandLineOptions dart_options(argc); | 1363 CommandLineOptions dart_options(argc); |
| 1364 bool print_flags_seen = false; | 1364 bool print_flags_seen = false; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 exit(Process::GlobalExitCode()); | 1500 exit(Process::GlobalExitCode()); |
| 1501 } | 1501 } |
| 1502 | 1502 |
| 1503 } // namespace bin | 1503 } // namespace bin |
| 1504 } // namespace dart | 1504 } // namespace dart |
| 1505 | 1505 |
| 1506 int main(int argc, char** argv) { | 1506 int main(int argc, char** argv) { |
| 1507 dart::bin::main(argc, argv); | 1507 dart::bin::main(argc, argv); |
| 1508 UNREACHABLE(); | 1508 UNREACHABLE(); |
| 1509 } | 1509 } |
| OLD | NEW |