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

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

Issue 2668233002: Remove code supporting incremental compilation in dart2js (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | pkg/compiler/lib/src/cache_strategy.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 leg_apiimpl; 5 library leg_apiimpl;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:package_config/packages.dart'; 9 import 'package:package_config/packages.dart';
10 import 'package:package_config/packages_file.dart' as pkgs; 10 import 'package:package_config/packages_file.dart' as pkgs;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 if (resolvedUriTranslator.isNotSet) { 219 if (resolvedUriTranslator.isNotSet) {
220 future = future.then((_) { 220 future = future.then((_) {
221 return platform_configuration 221 return platform_configuration
222 .load(options.platformConfigUri, provider) 222 .load(options.platformConfigUri, provider)
223 .then((Map<String, Uri> mapping) { 223 .then((Map<String, Uri> mapping) {
224 resolvedUriTranslator.resolvedUriTranslator = 224 resolvedUriTranslator.resolvedUriTranslator =
225 new ResolvedUriTranslator(mapping, reporter); 225 new ResolvedUriTranslator(mapping, reporter);
226 }); 226 });
227 }); 227 });
228 } 228 }
229 // TODO(johnniwinther): This does not apply anymore.
229 // The incremental compiler sets up the sdk before run. 230 // The incremental compiler sets up the sdk before run.
230 // Therefore this will be called a second time. 231 // Therefore this will be called a second time.
231 return future; 232 return future;
232 } 233 }
233 234
234 Future<bool> run(Uri uri) { 235 Future<bool> run(Uri uri) {
235 Duration setupDuration = measurer.wallClock.elapsed; 236 Duration setupDuration = measurer.wallClock.elapsed;
236 return selfTask.measureSubtask("CompilerImpl.run", () { 237 return selfTask.measureSubtask("CompilerImpl.run", () {
237 log('Using platform configuration at ${options.platformConfigUri}'); 238 log('Using platform configuration at ${options.platformConfigUri}');
238 239
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 } 396 }
396 } 397 }
397 398
398 /// For every 'dart:' library, a corresponding environment variable is set 399 /// For every 'dart:' library, a corresponding environment variable is set
399 /// to "true". The environment variable's name is the concatenation of 400 /// to "true". The environment variable's name is the concatenation of
400 /// this prefix and the name (without the 'dart:'. 401 /// this prefix and the name (without the 'dart:'.
401 /// 402 ///
402 /// For example 'dart:html' has the environment variable 'dart.library.html' set 403 /// For example 'dart:html' has the environment variable 'dart.library.html' set
403 /// to "true". 404 /// to "true".
404 const String _dartLibraryEnvironmentPrefix = 'dart.library.'; 405 const String _dartLibraryEnvironmentPrefix = 'dart.library.';
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cache_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698