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

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

Issue 356573002: Revert "Move Compiler.libraries to LibraryLoder." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 dump_info; 5 library dump_info;
6 6
7 import 'dart:convert' show 7 import 'dart:convert' show
8 HtmlEscape, 8 HtmlEscape,
9 JsonEncoder, 9 JsonEncoder,
10 StringConversionSink, 10 StringConversionSink,
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 330
331 ProgramInfo collectDumpInfo() { 331 ProgramInfo collectDumpInfo() {
332 JavaScriptBackend backend = compiler.backend; 332 JavaScriptBackend backend = compiler.backend;
333 333
334 int counter = 0; 334 int counter = 0;
335 for (OutputUnit outputUnit in compiler.deferredLoadTask.allOutputUnits) { 335 for (OutputUnit outputUnit in compiler.deferredLoadTask.allOutputUnits) {
336 outputUnitNumbering[outputUnit] = counter; 336 outputUnitNumbering[outputUnit] = counter;
337 counter += 1; 337 counter += 1;
338 } 338 }
339 339
340 List<LibraryElement> sortedLibraries = 340 List<LibraryElement> sortedLibraries = compiler.libraries.values.toList();
341 compiler.libraryLoader.libraries.toList();
342 sortedLibraries.sort((LibraryElement l1, LibraryElement l2) { 341 sortedLibraries.sort((LibraryElement l1, LibraryElement l2) {
343 if (l1.isPlatformLibrary && !l2.isPlatformLibrary) { 342 if (l1.isPlatformLibrary && !l2.isPlatformLibrary) {
344 return 1; 343 return 1;
345 } else if (!l1.isPlatformLibrary && l2.isPlatformLibrary) { 344 } else if (!l1.isPlatformLibrary && l2.isPlatformLibrary) {
346 return -1; 345 return -1;
347 } 346 }
348 return l1.getLibraryName().compareTo(l2.getLibraryName()); 347 return l1.getLibraryName().compareTo(l2.getLibraryName());
349 }); 348 });
350 349
351 List<InfoNode> libraryInfos = new List<InfoNode>(); 350 List<InfoNode> libraryInfos = new List<InfoNode>();
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 } 759 }
761 document.querySelector('.sort_by_size').addEventListener('click', 760 document.querySelector('.sort_by_size').addEventListener('click',
762 function() { 761 function() {
763 sortBySize(); 762 sortBySize();
764 }, false); 763 }, false);
765 </script> 764 </script>
766 </body> 765 </body>
767 </html>"""); 766 </html>""");
768 } 767 }
769 } 768 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/deferred_load.dart ('k') | sdk/lib/_internal/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698