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

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

Issue 2168193002: Fuchsia: Build standalone VM. Make it run "Hello, World!". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 5 months 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 | « runtime/bin/io_impl_sources.gypi ('k') | runtime/bin/platform_fuchsia.cc » ('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 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 Dart_ShutdownIsolate(); 1492 Dart_ShutdownIsolate();
1493 1493
1494 // No restart. 1494 // No restart.
1495 return false; 1495 return false;
1496 } 1496 }
1497 1497
1498 #undef CHECK_RESULT 1498 #undef CHECK_RESULT
1499 1499
1500 1500
1501 // Observatory assets are only needed in the regular dart binary. 1501 // Observatory assets are only needed in the regular dart binary.
1502 #if !defined(DART_PRECOMPILER) 1502 #if !defined(DART_PRECOMPILER) || !defined(NO_OBSERVATORY)
1503 extern unsigned int observatory_assets_archive_len; 1503 extern unsigned int observatory_assets_archive_len;
1504 extern const uint8_t* observatory_assets_archive; 1504 extern const uint8_t* observatory_assets_archive;
1505 1505
1506 1506
1507 // |input| is assumed to be a gzipped stream. 1507 // |input| is assumed to be a gzipped stream.
1508 // This function allocates the output buffer in the C heap and the caller 1508 // This function allocates the output buffer in the C heap and the caller
1509 // is responsible for freeing it. 1509 // is responsible for freeing it.
1510 void Decompress(const uint8_t* input, unsigned int input_len, 1510 void Decompress(const uint8_t* input, unsigned int input_len,
1511 uint8_t** output, unsigned int* output_length) { 1511 uint8_t** output, unsigned int* output_length) {
1512 ASSERT(input != NULL); 1512 ASSERT(input != NULL);
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1745 Platform::Exit(Process::GlobalExitCode()); 1745 Platform::Exit(Process::GlobalExitCode());
1746 } 1746 }
1747 1747
1748 } // namespace bin 1748 } // namespace bin
1749 } // namespace dart 1749 } // namespace dart
1750 1750
1751 int main(int argc, char** argv) { 1751 int main(int argc, char** argv) {
1752 dart::bin::main(argc, argv); 1752 dart::bin::main(argc, argv);
1753 UNREACHABLE(); 1753 UNREACHABLE();
1754 } 1754 }
OLDNEW
« no previous file with comments | « runtime/bin/io_impl_sources.gypi ('k') | runtime/bin/platform_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698