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

Unified Diff: sdk/lib/_internal/compiler/implementation/util/util.dart

Issue 80793002: Check compiler exitCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/util/util.dart
diff --git a/sdk/lib/_internal/compiler/implementation/util/util.dart b/sdk/lib/_internal/compiler/implementation/util/util.dart
index dee467d8f5e783c5451eb7e0839a49d7b1d1efe5..f307f64738a280f3139a9d2f364a93752892359f 100644
--- a/sdk/lib/_internal/compiler/implementation/util/util.dart
+++ b/sdk/lib/_internal/compiler/implementation/util/util.dart
@@ -290,3 +290,15 @@ int computeHashCode(part1, [part2, part3, part4]) {
^ part3.hashCode
^ part4.hashCode) & 0x3fffffff;
}
+
+/// Exception to flag that the compiler has crashed when the error and stack
+/// trace have been reported.
+class CompilerCrashedException implements Exception {
+ final String reason;
+ CompilerCrashedException(this.reason);
+
+ String toString() {
+ String banner = 'Compiler crashed';
+ return (reason != null) ? '$banner: $reason' : '$banner';
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698