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

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

Issue 2964683003: Split implementation of KernelToElementMapImpl (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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/js_emitter/code_emitter_task.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 dart2js.compiler_base; 5 library dart2js.compiler_base;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../compiler_new.dart' as api; 9 import '../compiler_new.dart' as api;
10 import 'backend_strategy.dart'; 10 import 'backend_strategy.dart';
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 : outputProvider { 185 : outputProvider {
186 if (makeReporter != null) { 186 if (makeReporter != null) {
187 _reporter = makeReporter(this, options); 187 _reporter = makeReporter(this, options);
188 } else { 188 } else {
189 _reporter = new CompilerDiagnosticReporter(this, options); 189 _reporter = new CompilerDiagnosticReporter(this, options);
190 } 190 }
191 frontendStrategy = options.loadFromDill 191 frontendStrategy = options.loadFromDill
192 ? new KernelFrontEndStrategy(reporter, environment) 192 ? new KernelFrontEndStrategy(reporter, environment)
193 : new ResolutionFrontEndStrategy(this); 193 : new ResolutionFrontEndStrategy(this);
194 backendStrategy = options.loadFromDill 194 backendStrategy = options.loadFromDill
195 ? new KernelBackendStrategyImpl(this) 195 ? new KernelBackendStrategy(this)
196 : new ElementBackendStrategy(this); 196 : new ElementBackendStrategy(this);
197 _resolution = createResolution(); 197 _resolution = createResolution();
198 198
199 if (options.verbose) { 199 if (options.verbose) {
200 progress = new Stopwatch()..start(); 200 progress = new Stopwatch()..start();
201 } 201 }
202 202
203 backend = createBackend(); 203 backend = createBackend();
204 enqueuer = backend.makeEnqueuer(); 204 enqueuer = backend.makeEnqueuer();
205 205
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 _ElementScanner(this.scanner); 1594 _ElementScanner(this.scanner);
1595 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); 1595 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library);
1596 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); 1596 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit);
1597 } 1597 }
1598 1598
1599 class _EmptyEnvironment implements Environment { 1599 class _EmptyEnvironment implements Environment {
1600 const _EmptyEnvironment(); 1600 const _EmptyEnvironment();
1601 1601
1602 String valueOf(String key) => null; 1602 String valueOf(String key) => null;
1603 } 1603 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/code_emitter_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698