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

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

Issue 2580403002: Extract ClosedWorldImpl from WorldImpl. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | pkg/compiler/lib/src/world.dart » ('J')
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 29 matching lines...) Expand all
40 ForwardingResolvedUriTranslator resolvedUriTranslator; 40 ForwardingResolvedUriTranslator resolvedUriTranslator;
41 41
42 GenericTask userHandlerTask; 42 GenericTask userHandlerTask;
43 GenericTask userProviderTask; 43 GenericTask userProviderTask;
44 GenericTask userPackagesDiscoveryTask; 44 GenericTask userPackagesDiscoveryTask;
45 45
46 Uri get libraryRoot => options.platformConfigUri.resolve("."); 46 Uri get libraryRoot => options.platformConfigUri.resolve(".");
47 47
48 CompilerImpl(this.provider, api.CompilerOutput outputProvider, this.handler, 48 CompilerImpl(this.provider, api.CompilerOutput outputProvider, this.handler,
49 CompilerOptions options, 49 CompilerOptions options,
50 {MakeBackendFuncion makeBackend, MakeReporterFunction makeReporter}) 50 {MakeBackendFunction makeBackend, MakeReporterFunction makeReporter})
51 // NOTE: allocating measurer is done upfront to ensure the wallclock is 51 // NOTE: allocating measurer is done upfront to ensure the wallclock is
52 // started before other computations. 52 // started before other computations.
53 : measurer = new Measurer(enableTaskMeasurements: options.verbose), 53 : measurer = new Measurer(enableTaskMeasurements: options.verbose),
54 resolvedUriTranslator = new ForwardingResolvedUriTranslator(), 54 resolvedUriTranslator = new ForwardingResolvedUriTranslator(),
55 super( 55 super(
56 options: options, 56 options: options,
57 outputProvider: outputProvider, 57 outputProvider: outputProvider,
58 environment: new _Environment(options.environment), 58 environment: new _Environment(options.environment),
59 makeBackend: makeBackend, 59 makeBackend: makeBackend,
60 makeReporter: makeReporter) { 60 makeReporter: makeReporter) {
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 } 395 }
396 } 396 }
397 397
398 /// For every 'dart:' library, a corresponding environment variable is set 398 /// For every 'dart:' library, a corresponding environment variable is set
399 /// to "true". The environment variable's name is the concatenation of 399 /// to "true". The environment variable's name is the concatenation of
400 /// this prefix and the name (without the 'dart:'. 400 /// this prefix and the name (without the 'dart:'.
401 /// 401 ///
402 /// For example 'dart:html' has the environment variable 'dart.library.html' set 402 /// For example 'dart:html' has the environment variable 'dart.library.html' set
403 /// to "true". 403 /// to "true".
404 const String _dartLibraryEnvironmentPrefix = 'dart.library.'; 404 const String _dartLibraryEnvironmentPrefix = 'dart.library.';
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | pkg/compiler/lib/src/world.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698