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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 11348297: Widen big concrete types to dynamic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cache constants. Created 8 years 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 | Annotate | Revision Log
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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 final Stopwatch totalCompileTime = new Stopwatch(); 108 final Stopwatch totalCompileTime = new Stopwatch();
109 int nextFreeClassId = 0; 109 int nextFreeClassId = 0;
110 World world; 110 World world;
111 String assembledCode; 111 String assembledCode;
112 Types types; 112 Types types;
113 113
114 final bool enableMinification; 114 final bool enableMinification;
115 final bool enableTypeAssertions; 115 final bool enableTypeAssertions;
116 final bool enableUserAssertions; 116 final bool enableUserAssertions;
117 final bool enableConcreteTypeInference; 117 final bool enableConcreteTypeInference;
118 final int maxConcreteTypeSize;
ahe 2012/12/20 10:18:22 Please document this variable.
polux 2012/12/20 10:31:50 Done.
118 final bool analyzeAll; 119 final bool analyzeAll;
119 final bool enableNativeLiveTypeAnalysis; 120 final bool enableNativeLiveTypeAnalysis;
120 final bool rejectDeprecatedFeatures; 121 final bool rejectDeprecatedFeatures;
121 final bool checkDeprecationInSdk; 122 final bool checkDeprecationInSdk;
122 123
123 bool disableInlining = false; 124 bool disableInlining = false;
124 125
125 final Tracer tracer; 126 final Tracer tracer;
126 127
127 CompilerTask measuredTask; 128 CompilerTask measuredTask;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 int phase; 227 int phase;
227 228
228 bool compilationFailed = false; 229 bool compilationFailed = false;
229 230
230 bool hasCrashed = false; 231 bool hasCrashed = false;
231 232
232 Compiler({this.tracer: const Tracer(), 233 Compiler({this.tracer: const Tracer(),
233 this.enableTypeAssertions: false, 234 this.enableTypeAssertions: false,
234 this.enableUserAssertions: false, 235 this.enableUserAssertions: false,
235 this.enableConcreteTypeInference: false, 236 this.enableConcreteTypeInference: false,
237 this.maxConcreteTypeSize: 5,
236 this.enableMinification: false, 238 this.enableMinification: false,
237 this.enableNativeLiveTypeAnalysis: false, 239 this.enableNativeLiveTypeAnalysis: false,
238 bool emitJavaScript: true, 240 bool emitJavaScript: true,
239 bool generateSourceMap: true, 241 bool generateSourceMap: true,
240 bool disallowUnsafeEval: false, 242 bool disallowUnsafeEval: false,
241 this.analyzeAll: false, 243 this.analyzeAll: false,
242 this.rejectDeprecatedFeatures: false, 244 this.rejectDeprecatedFeatures: false,
243 this.checkDeprecationInSdk: false, 245 this.checkDeprecationInSdk: false,
244 List<String> strips: const []}) 246 List<String> strips: const []})
245 : libraries = new Map<String, LibraryElement>(), 247 : libraries = new Map<String, LibraryElement>(),
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 // TODO(johnniwinther): Use [spannable] and [message] to provide better 978 // TODO(johnniwinther): Use [spannable] and [message] to provide better
977 // information on assertion errors. 979 // information on assertion errors.
978 if (condition is Function){ 980 if (condition is Function){
979 condition = condition(); 981 condition = condition();
980 } 982 }
981 if (spannable == null || !condition) { 983 if (spannable == null || !condition) {
982 throw new SpannableAssertionFailure(spannable, message); 984 throw new SpannableAssertionFailure(spannable, message);
983 } 985 }
984 return true; 986 return true;
985 } 987 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698