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

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

Issue 1376113002: dart2js: Remove ConcreteTypeInference (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | 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 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 final bool useFrequencyNamer; 175 final bool useFrequencyNamer;
176 176
177 /// When `true` emits URIs in the reflection metadata. 177 /// When `true` emits URIs in the reflection metadata.
178 final bool preserveUris; 178 final bool preserveUris;
179 179
180 final bool enableTypeAssertions; 180 final bool enableTypeAssertions;
181 final bool enableUserAssertions; 181 final bool enableUserAssertions;
182 final bool trustTypeAnnotations; 182 final bool trustTypeAnnotations;
183 final bool trustPrimitives; 183 final bool trustPrimitives;
184 final bool enableConcreteTypeInference;
185 final bool disableTypeInferenceFlag; 184 final bool disableTypeInferenceFlag;
186 final Uri deferredMapUri; 185 final Uri deferredMapUri;
187 final bool dumpInfo; 186 final bool dumpInfo;
188 final bool useContentSecurityPolicy; 187 final bool useContentSecurityPolicy;
189 final bool enableExperimentalMirrors; 188 final bool enableExperimentalMirrors;
190 final bool enableAssertMessage; 189 final bool enableAssertMessage;
191 190
192 /** 191 /**
193 * The maximum size of a concrete type before it widens to dynamic during 192 * The maximum size of a concrete type before it widens to dynamic during
194 * concrete type inference. 193 * concrete type inference.
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 482
484 bool hasCrashed = false; 483 bool hasCrashed = false;
485 484
486 /// Set by the backend if real reflection is detected in use of dart:mirrors. 485 /// Set by the backend if real reflection is detected in use of dart:mirrors.
487 bool disableTypeInferenceForMirrors = false; 486 bool disableTypeInferenceForMirrors = false;
488 487
489 Compiler({this.enableTypeAssertions: false, 488 Compiler({this.enableTypeAssertions: false,
490 this.enableUserAssertions: false, 489 this.enableUserAssertions: false,
491 this.trustTypeAnnotations: false, 490 this.trustTypeAnnotations: false,
492 this.trustPrimitives: false, 491 this.trustPrimitives: false,
493 this.enableConcreteTypeInference: false,
494 bool disableTypeInferenceFlag: false, 492 bool disableTypeInferenceFlag: false,
495 this.maxConcreteTypeSize: 5, 493 this.maxConcreteTypeSize: 5,
496 this.enableMinification: false, 494 this.enableMinification: false,
497 this.preserveUris: false, 495 this.preserveUris: false,
498 this.enableNativeLiveTypeAnalysis: false, 496 this.enableNativeLiveTypeAnalysis: false,
499 bool emitJavaScript: true, 497 bool emitJavaScript: true,
500 bool dart2dartMultiFile: false, 498 bool dart2dartMultiFile: false,
501 bool generateSourceMap: true, 499 bool generateSourceMap: true,
502 bool analyzeAllFlag: false, 500 bool analyzeAllFlag: false,
503 bool analyzeOnly: false, 501 bool analyzeOnly: false,
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 1848
1851 @override 1849 @override
1852 InterfaceType streamType([DartType elementType]) { 1850 InterfaceType streamType([DartType elementType]) {
1853 InterfaceType type = streamClass.computeType(compiler); 1851 InterfaceType type = streamClass.computeType(compiler);
1854 if (elementType == null) { 1852 if (elementType == null) {
1855 return streamClass.rawType; 1853 return streamClass.rawType;
1856 } 1854 }
1857 return type.createInstantiation([elementType]); 1855 return type.createInstantiation([elementType]);
1858 } 1856 }
1859 } 1857 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698