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

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

Issue 1416293003: Some cleanups to observatory BUILD.gn (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | runtime/observatory/BUILD.gn » ('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_tools_api.h" 10 #include "include/dart_tools_api.h"
(...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698