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

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

Issue 2431253004: Fix build. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | 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 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after
1681 Dart_Handle isolate_lib = 1681 Dart_Handle isolate_lib =
1682 Dart_LookupLibrary(Dart_NewStringFromCString("dart:isolate")); 1682 Dart_LookupLibrary(Dart_NewStringFromCString("dart:isolate"));
1683 result = Dart_Invoke(isolate_lib, 1683 result = Dart_Invoke(isolate_lib,
1684 Dart_NewStringFromCString("_startMainIsolate"), 1684 Dart_NewStringFromCString("_startMainIsolate"),
1685 kNumIsolateArgs, isolate_args); 1685 kNumIsolateArgs, isolate_args);
1686 CHECK_RESULT(result); 1686 CHECK_RESULT(result);
1687 1687
1688 // Keep handling messages until the last active receive port is closed. 1688 // Keep handling messages until the last active receive port is closed.
1689 result = Dart_RunLoop(); 1689 result = Dart_RunLoop();
1690 // Generate an app snapshot after execution if specified. 1690 // Generate an app snapshot after execution if specified.
1691 if ((gen_snapshot_kind == kAppJIT)) { 1691 if (gen_snapshot_kind == kAppJIT) {
1692 if (!Dart_IsCompilationError(result) && 1692 if (!Dart_IsCompilationError(result) &&
1693 !Dart_IsVMRestartRequest(result)) { 1693 !Dart_IsVMRestartRequest(result)) {
1694 GenerateAppSnapshot(); 1694 GenerateAppSnapshot();
1695 } 1695 }
1696 } 1696 }
1697 CHECK_RESULT(result); 1697 CHECK_RESULT(result);
1698 } 1698 }
1699 } 1699 }
1700 1700
1701 Dart_ExitScope(); 1701 Dart_ExitScope();
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 Platform::Exit(Process::GlobalExitCode()); 1952 Platform::Exit(Process::GlobalExitCode());
1953 } 1953 }
1954 1954
1955 } // namespace bin 1955 } // namespace bin
1956 } // namespace dart 1956 } // namespace dart
1957 1957
1958 int main(int argc, char** argv) { 1958 int main(int argc, char** argv) {
1959 dart::bin::main(argc, argv); 1959 dart::bin::main(argc, argv);
1960 UNREACHABLE(); 1960 UNREACHABLE();
1961 } 1961 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698