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

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

Issue 2685573002: Replace Backend with JavaScriptBackend. (Closed)
Patch Set: Updated cf. comment 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/common/backend_api.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 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 {MakeBackendFunction makeBackend, MakeReporterFunction makeReporter}) 50 {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,
60 makeReporter: makeReporter) { 59 makeReporter: makeReporter) {
61 _Environment env = environment; 60 _Environment env = environment;
62 env.compiler = this; 61 env.compiler = this;
63 tasks.addAll([ 62 tasks.addAll([
64 userHandlerTask = new GenericTask('Diagnostic handler', measurer), 63 userHandlerTask = new GenericTask('Diagnostic handler', measurer),
65 userProviderTask = new GenericTask('Input provider', measurer), 64 userProviderTask = new GenericTask('Input provider', measurer),
66 userPackagesDiscoveryTask = 65 userPackagesDiscoveryTask =
67 new GenericTask('Package discovery', measurer), 66 new GenericTask('Package discovery', measurer),
68 ]); 67 ]);
69 } 68 }
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 } 395 }
397 } 396 }
398 397
399 /// For every 'dart:' library, a corresponding environment variable is set 398 /// For every 'dart:' library, a corresponding environment variable is set
400 /// to "true". The environment variable's name is the concatenation of 399 /// to "true". The environment variable's name is the concatenation of
401 /// this prefix and the name (without the 'dart:'. 400 /// this prefix and the name (without the 'dart:'.
402 /// 401 ///
403 /// 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
404 /// to "true". 403 /// to "true".
405 const String _dartLibraryEnvironmentPrefix = 'dart.library.'; 404 const String _dartLibraryEnvironmentPrefix = 'dart.library.';
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/backend_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698