| OLD | NEW |
| 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 Loading... |
| 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 = compiler.libraries.values.toList(); | 340 List<LibraryElement> sortedLibraries = |
| 341 compiler.libraryLoader.libraries.toList(); |
| 341 sortedLibraries.sort((LibraryElement l1, LibraryElement l2) { | 342 sortedLibraries.sort((LibraryElement l1, LibraryElement l2) { |
| 342 if (l1.isPlatformLibrary && !l2.isPlatformLibrary) { | 343 if (l1.isPlatformLibrary && !l2.isPlatformLibrary) { |
| 343 return 1; | 344 return 1; |
| 344 } else if (!l1.isPlatformLibrary && l2.isPlatformLibrary) { | 345 } else if (!l1.isPlatformLibrary && l2.isPlatformLibrary) { |
| 345 return -1; | 346 return -1; |
| 346 } | 347 } |
| 347 return l1.getLibraryName().compareTo(l2.getLibraryName()); | 348 return l1.getLibraryName().compareTo(l2.getLibraryName()); |
| 348 }); | 349 }); |
| 349 | 350 |
| 350 List<InfoNode> libraryInfos = new List<InfoNode>(); | 351 List<InfoNode> libraryInfos = new List<InfoNode>(); |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 } | 760 } |
| 760 document.querySelector('.sort_by_size').addEventListener('click', | 761 document.querySelector('.sort_by_size').addEventListener('click', |
| 761 function() { | 762 function() { |
| 762 sortBySize(); | 763 sortBySize(); |
| 763 }, false); | 764 }, false); |
| 764 </script> | 765 </script> |
| 765 </body> | 766 </body> |
| 766 </html>"""); | 767 </html>"""); |
| 767 } | 768 } |
| 768 } | 769 } |
| OLD | NEW |