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

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

Issue 10875032: Remove now unused --unparse-validation flag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « lib/compiler/implementation/apiimpl.dart ('k') | lib/compiler/implementation/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 5
6 /** 6 /**
7 * If true, print a warning for each method that was resolved, but not 7 * If true, print a warning for each method that was resolved, but not
8 * compiled. 8 * compiled.
9 */ 9 */
10 final bool REPORT_EXCESS_RESOLUTION = false; 10 final bool REPORT_EXCESS_RESOLUTION = false;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 int phase; 160 int phase;
161 161
162 bool compilationFailed = false; 162 bool compilationFailed = false;
163 163
164 bool hasCrashed = false; 164 bool hasCrashed = false;
165 165
166 Compiler([this.tracer = const Tracer(), 166 Compiler([this.tracer = const Tracer(),
167 this.enableTypeAssertions = false, 167 this.enableTypeAssertions = false,
168 this.enableUserAssertions = false, 168 this.enableUserAssertions = false,
169 bool emitJavascript = true, 169 bool emitJavascript = true,
170 validateUnparse = false,
171 generateSourceMap = true]) 170 generateSourceMap = true])
172 : libraries = new Map<String, LibraryElement>(), 171 : libraries = new Map<String, LibraryElement>(),
173 world = new World(), 172 world = new World(),
174 progress = new Stopwatch.start() { 173 progress = new Stopwatch.start() {
175 namer = new Namer(this); 174 namer = new Namer(this);
176 constantHandler = new ConstantHandler(this); 175 constantHandler = new ConstantHandler(this);
177 scanner = new ScannerTask(this); 176 scanner = new ScannerTask(this);
178 dietParser = new DietParserTask(this); 177 dietParser = new DietParserTask(this);
179 parser = new ParserTask(this); 178 parser = new ParserTask(this);
180 patchParser = new PatchParserTask(this); 179 patchParser = new PatchParserTask(this);
181 validator = new TreeValidatorTask(this); 180 validator = new TreeValidatorTask(this);
182 resolver = new ResolverTask(this); 181 resolver = new ResolverTask(this);
183 closureToClassMapper = new closureMapping.ClosureTask(this); 182 closureToClassMapper = new closureMapping.ClosureTask(this);
184 checker = new TypeCheckerTask(this); 183 checker = new TypeCheckerTask(this);
185 typesTask = new ti.TypesTask(this); 184 typesTask = new ti.TypesTask(this);
186 backend = emitJavascript ? 185 backend = emitJavascript ?
187 new js_backend.JavaScriptBackend(this, generateSourceMap) : 186 new js_backend.JavaScriptBackend(this, generateSourceMap) :
188 new dart_backend.DartBackend(this, validateUnparse); 187 new dart_backend.DartBackend(this);
189 enqueuer = new EnqueueTask(this); 188 enqueuer = new EnqueueTask(this);
190 tasks = [scanner, dietParser, parser, resolver, closureToClassMapper, 189 tasks = [scanner, dietParser, parser, resolver, closureToClassMapper,
191 checker, typesTask, constantHandler, enqueuer]; 190 checker, typesTask, constantHandler, enqueuer];
192 tasks.addAll(backend.tasks); 191 tasks.addAll(backend.tasks);
193 } 192 }
194 193
195 Universe get resolverWorld => enqueuer.resolution.universe; 194 Universe get resolverWorld => enqueuer.resolution.universe;
196 Universe get codegenWorld => enqueuer.codegen.universe; 195 Universe get codegenWorld => enqueuer.codegen.universe;
197 196
198 int getNextFreeClassId() => nextFreeClassId++; 197 int getNextFreeClassId() => nextFreeClassId++;
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 final endOffset = end.charOffset + end.slowCharCount; 895 final endOffset = end.charOffset + end.slowCharCount;
897 896
898 // [begin] and [end] might be the same for the same empty token. This 897 // [begin] and [end] might be the same for the same empty token. This
899 // happens for instance when scanning '$$'. 898 // happens for instance when scanning '$$'.
900 assert(endOffset >= beginOffset); 899 assert(endOffset >= beginOffset);
901 return f(beginOffset, endOffset); 900 return f(beginOffset, endOffset);
902 } 901 }
903 902
904 String toString() => 'SourceSpan($uri, $begin, $end)'; 903 String toString() => 'SourceSpan($uri, $begin, $end)';
905 } 904 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/apiimpl.dart ('k') | lib/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698