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

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

Issue 2972523002: Implement JsKernelToElementMap through KernelToElementMapBase (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_backend/backend.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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 } 629 }
630 630
631 backend.onCodegenEnd(); 631 backend.onCodegenEnd();
632 632
633 checkQueues(resolutionEnqueuer, codegenEnqueuer); 633 checkQueues(resolutionEnqueuer, codegenEnqueuer);
634 }); 634 });
635 635
636 Enqueuer startCodegen(ClosedWorld closedWorld) { 636 Enqueuer startCodegen(ClosedWorld closedWorld) {
637 Enqueuer codegenEnqueuer = enqueuer.createCodegenEnqueuer(closedWorld); 637 Enqueuer codegenEnqueuer = enqueuer.createCodegenEnqueuer(closedWorld);
638 _codegenWorldBuilder = codegenEnqueuer.worldBuilder; 638 _codegenWorldBuilder = codegenEnqueuer.worldBuilder;
639 codegenEnqueuer 639 codegenEnqueuer.applyImpact(backend.onCodegenStart(
640 .applyImpact(backend.onCodegenStart(closedWorld, _codegenWorldBuilder)); 640 closedWorld, _codegenWorldBuilder, backendStrategy.sorter));
641 return codegenEnqueuer; 641 return codegenEnqueuer;
642 } 642 }
643 643
644 /// Perform the steps needed to fully end the resolution phase. 644 /// Perform the steps needed to fully end the resolution phase.
645 ClosedWorldRefiner closeResolution(FunctionEntity mainFunction) { 645 ClosedWorldRefiner closeResolution(FunctionEntity mainFunction) {
646 phase = PHASE_DONE_RESOLVING; 646 phase = PHASE_DONE_RESOLVING;
647 647
648 ClosedWorld closedWorld = resolutionWorldBuilder.closeWorld(); 648 ClosedWorld closedWorld = resolutionWorldBuilder.closeWorld();
649 ClosedWorldRefiner closedWorldRefiner = 649 ClosedWorldRefiner closedWorldRefiner =
650 backendStrategy.createClosedWorldRefiner(closedWorld); 650 backendStrategy.createClosedWorldRefiner(closedWorld);
(...skipping 943 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_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698