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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 1342213003: Add optional message to assert in Dart2js - continued (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add --assert-message flag 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 unified diff | Download patch
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 library dart2js.compiler_base; 5 library dart2js.compiler_base;
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 EventSink, 8 EventSink,
9 Future; 9 Future;
10 10
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 final bool enableTypeAssertions; 184 final bool enableTypeAssertions;
185 final bool enableUserAssertions; 185 final bool enableUserAssertions;
186 final bool trustTypeAnnotations; 186 final bool trustTypeAnnotations;
187 final bool trustPrimitives; 187 final bool trustPrimitives;
188 final bool enableConcreteTypeInference; 188 final bool enableConcreteTypeInference;
189 final bool disableTypeInferenceFlag; 189 final bool disableTypeInferenceFlag;
190 final Uri deferredMapUri; 190 final Uri deferredMapUri;
191 final bool dumpInfo; 191 final bool dumpInfo;
192 final bool useContentSecurityPolicy; 192 final bool useContentSecurityPolicy;
193 final bool enableExperimentalMirrors; 193 final bool enableExperimentalMirrors;
194 final bool enableAssertMessage;
194 195
195 /** 196 /**
196 * The maximum size of a concrete type before it widens to dynamic during 197 * The maximum size of a concrete type before it widens to dynamic during
197 * concrete type inference. 198 * concrete type inference.
198 */ 199 */
199 final int maxConcreteTypeSize; 200 final int maxConcreteTypeSize;
200 final bool analyzeAllFlag; 201 final bool analyzeAllFlag;
201 final bool analyzeOnly; 202 final bool analyzeOnly;
202 203
203 /// If true, disable tree-shaking for the main script. 204 /// If true, disable tree-shaking for the main script.
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 this.terseDiagnostics: false, 518 this.terseDiagnostics: false,
518 this.deferredMapUri: null, 519 this.deferredMapUri: null,
519 this.dumpInfo: false, 520 this.dumpInfo: false,
520 this.showPackageWarnings: false, 521 this.showPackageWarnings: false,
521 bool useStartupEmitter: false, 522 bool useStartupEmitter: false,
522 this.useContentSecurityPolicy: false, 523 this.useContentSecurityPolicy: false,
523 this.suppressWarnings: false, 524 this.suppressWarnings: false,
524 this.fatalWarnings: false, 525 this.fatalWarnings: false,
525 bool hasIncrementalSupport: false, 526 bool hasIncrementalSupport: false,
526 this.enableExperimentalMirrors: false, 527 this.enableExperimentalMirrors: false,
528 this.enableAssertMessage: false,
527 this.allowNativeExtensions: false, 529 this.allowNativeExtensions: false,
528 this.generateCodeWithCompileTimeErrors: false, 530 this.generateCodeWithCompileTimeErrors: false,
529 this.testMode: false, 531 this.testMode: false,
530 api.CompilerOutput outputProvider, 532 api.CompilerOutput outputProvider,
531 List<String> strips: const []}) 533 List<String> strips: const []})
532 : this.disableTypeInferenceFlag = 534 : this.disableTypeInferenceFlag =
533 disableTypeInferenceFlag || !emitJavaScript, 535 disableTypeInferenceFlag || !emitJavaScript,
534 this.analyzeOnly = 536 this.analyzeOnly =
535 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag, 537 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag,
536 this.analyzeSignaturesOnly = analyzeSignaturesOnly, 538 this.analyzeSignaturesOnly = analyzeSignaturesOnly,
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 1834
1833 @override 1835 @override
1834 InterfaceType streamType([DartType elementType]) { 1836 InterfaceType streamType([DartType elementType]) {
1835 InterfaceType type = streamClass.computeType(compiler); 1837 InterfaceType type = streamClass.computeType(compiler);
1836 if (elementType == null) { 1838 if (elementType == null) {
1837 return streamClass.rawType; 1839 return streamClass.rawType;
1838 } 1840 }
1839 return type.createInstantiation([elementType]); 1841 return type.createInstantiation([elementType]);
1840 } 1842 }
1841 } 1843 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698