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

Unified Diff: pkg/compiler/lib/src/compiler.dart

Issue 1312613006: Add command-line parameter enabling assert messages. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index ef2a0b3e1b7902b5d2186d1be40ca91c482d0b9b..127d87fc48f123e5eec20be6d2b0a1c191cd0129 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -188,6 +188,7 @@ abstract class Compiler implements DiagnosticListener {
final bool dumpInfo;
final bool useContentSecurityPolicy;
final bool enableExperimentalMirrors;
+ final bool allowAssertMessage;
/**
* The maximum size of a concrete type before it widens to dynamic during
@@ -519,7 +520,8 @@ abstract class Compiler implements DiagnosticListener {
this.generateCodeWithCompileTimeErrors: false,
this.testMode: false,
api.CompilerOutput outputProvider,
- List<String> strips: const []})
+ List<String> strips: const [],
+ this.allowAssertMessage: false})
: this.disableTypeInferenceFlag =
disableTypeInferenceFlag || !emitJavaScript,
this.analyzeOnly =
@@ -530,6 +532,7 @@ abstract class Compiler implements DiagnosticListener {
cacheStrategy = new CacheStrategy(hasIncrementalSupport),
this.userOutputProvider = outputProvider == null
? const NullCompilerOutput() : outputProvider {
+ print("COMPILER: $allowAssertMessage");
if (hasIncrementalSupport) {
// TODO(ahe): This is too much. Any method from platform and package
// libraries can be inlined.
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698