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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 330913004: Move Compiler.libraries to LibraryLoader. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix compiler_isolate.dart Created 6 years, 6 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 | Annotate | Revision Log
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 part of dart2js; 5 part of dart2js;
6 6
7 typedef ItemCompilationContext ItemCompilationContextCreator(); 7 typedef ItemCompilationContext ItemCompilationContextCreator();
8 8
9 class EnqueueTask extends CompilerTask { 9 class EnqueueTask extends CompilerTask {
10 final ResolutionEnqueuer resolution; 10 final ResolutionEnqueuer resolution;
(...skipping 26 matching lines...) Expand all
37 addMemberByName(link.head.element); 37 addMemberByName(link.head.element);
38 } 38 }
39 } 39 }
40 allElementsByName[name] = allElementsByName.putIfAbsent( 40 allElementsByName[name] = allElementsByName.putIfAbsent(
41 name, () => const Link<Element>()).prepend(element); 41 name, () => const Link<Element>()).prepend(element);
42 if (container != null) { 42 if (container != null) {
43 container.forEachLocalMember(addMemberByName); 43 container.forEachLocalMember(addMemberByName);
44 } 44 }
45 } 45 }
46 46
47 compiler.libraries.values.forEach(addMemberByName); 47 compiler.libraryLoader.libraries.forEach(addMemberByName);
48 } 48 }
49 49
50 String get name => 'Enqueue'; 50 String get name => 'Enqueue';
51 51
52 EnqueueTask(Compiler compiler) 52 EnqueueTask(Compiler compiler)
53 : resolution = new ResolutionEnqueuer( 53 : resolution = new ResolutionEnqueuer(
54 compiler, compiler.backend.createItemCompilationContext), 54 compiler, compiler.backend.createItemCompilationContext),
55 codegen = new CodegenEnqueuer( 55 codegen = new CodegenEnqueuer(
56 compiler, compiler.backend.createItemCompilationContext), 56 compiler, compiler.backend.createItemCompilationContext),
57 super(compiler) { 57 super(compiler) {
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 } 755 }
756 CodegenWorkItem workItem = new CodegenWorkItem( 756 CodegenWorkItem workItem = new CodegenWorkItem(
757 element, itemCompilationContextCreator()); 757 element, itemCompilationContextCreator());
758 queue.add(workItem); 758 queue.add(workItem);
759 } 759 }
760 760
761 void _logSpecificSummary(log(message)) { 761 void _logSpecificSummary(log(message)) {
762 log('Compiled ${generatedCode.length} methods.'); 762 log('Compiled ${generatedCode.length} methods.');
763 } 763 }
764 } 764 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698