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

Side by Side Diff: runtime/bin/error_exit.h

Issue 2759533002: Remove legacy restart code (Closed)
Patch Set: Created 3 years, 9 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 | runtime/bin/gen_snapshot.cc » ('j') | runtime/bin/main.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 #ifndef RUNTIME_BIN_ERROR_EXIT_H_ 5 #ifndef RUNTIME_BIN_ERROR_EXIT_H_
6 #define RUNTIME_BIN_ERROR_EXIT_H_ 6 #define RUNTIME_BIN_ERROR_EXIT_H_
7 7
8 namespace dart { 8 namespace dart {
9 namespace bin { 9 namespace bin {
10 10
11 // Exit code indicating an internal Dart Frontend error. 11 // Exit code indicating an internal Dart Frontend error.
12 static const int kDartFrontendErrorExitCode = 252; 12 static const int kDartFrontendErrorExitCode = 252;
13 // Exit code indicating an API error. 13 // Exit code indicating an API error.
14 static const int kApiErrorExitCode = 253; 14 static const int kApiErrorExitCode = 253;
15 // Exit code indicating a compilation error. 15 // Exit code indicating a compilation error.
16 static const int kCompilationErrorExitCode = 254; 16 static const int kCompilationErrorExitCode = 254;
17 // Exit code indicating an unhandled error that is not a compilation error. 17 // Exit code indicating an unhandled error that is not a compilation error.
18 static const int kErrorExitCode = 255; 18 static const int kErrorExitCode = 255;
19 // Exit code indicating a vm restart request. Never returned to the user.
20 static const int kRestartRequestExitCode = 1000;
21 19
22 void ErrorExit(int exit_code, const char* format, ...); 20 void ErrorExit(int exit_code, const char* format, ...);
23 21
24 } // namespace bin 22 } // namespace bin
25 } // namespace dart 23 } // namespace dart
26 24
27 #endif // RUNTIME_BIN_ERROR_EXIT_H_ 25 #endif // RUNTIME_BIN_ERROR_EXIT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/gen_snapshot.cc » ('j') | runtime/bin/main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698