| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.js_emitter; | 5 part of dart2js.js_emitter; |
| 6 | 6 |
| 7 | 7 |
| 8 class OldEmitter implements Emitter { | 8 class OldEmitter implements Emitter { |
| 9 final Compiler compiler; | 9 final Compiler compiler; |
| 10 final CodeEmitterTask task; | 10 final CodeEmitterTask task; |
| (...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 void emitLibrary(Library library) { | 1372 void emitLibrary(Library library) { |
| 1373 LibraryElement libraryElement = library.element; | 1373 LibraryElement libraryElement = library.element; |
| 1374 | 1374 |
| 1375 emitStaticFunctions(library.statics); | 1375 emitStaticFunctions(library.statics); |
| 1376 | 1376 |
| 1377 ClassBuilder libraryBuilder = getElementDescriptor(libraryElement); | 1377 ClassBuilder libraryBuilder = getElementDescriptor(libraryElement); |
| 1378 for (Class cls in library.classes) { | 1378 for (Class cls in library.classes) { |
| 1379 emitClass(cls, libraryBuilder); | 1379 emitClass(cls, libraryBuilder); |
| 1380 } | 1380 } |
| 1381 | 1381 |
| 1382 classEmitter.emitFields(libraryElement, libraryBuilder, emitStatics: true); | 1382 classEmitter.emitFields(library, libraryBuilder, emitStatics: true); |
| 1383 } | 1383 } |
| 1384 | 1384 |
| 1385 void emitMainOutputUnit(Program program, | 1385 void emitMainOutputUnit(Program program, |
| 1386 Map<OutputUnit, String> deferredLoadHashes, | 1386 Map<OutputUnit, String> deferredLoadHashes, |
| 1387 CodeBuffer nativeBuffer) { | 1387 CodeBuffer nativeBuffer) { |
| 1388 Fragment mainFragment = program.fragments.first; | 1388 Fragment mainFragment = program.fragments.first; |
| 1389 OutputUnit mainOutputUnit = mainFragment.outputUnit; | 1389 OutputUnit mainOutputUnit = mainFragment.outputUnit; |
| 1390 | 1390 |
| 1391 LineColumnCollector lineColumnCollector; | 1391 LineColumnCollector lineColumnCollector; |
| 1392 List<CodeOutputListener> codeOutputListeners; | 1392 List<CodeOutputListener> codeOutputListeners; |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2100 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { | 2100 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { |
| 2101 if (element.isInstanceMember) { | 2101 if (element.isInstanceMember) { |
| 2102 cachedClassBuilders.remove(element.enclosingClass); | 2102 cachedClassBuilders.remove(element.enclosingClass); |
| 2103 | 2103 |
| 2104 nativeEmitter.cachedBuilders.remove(element.enclosingClass); | 2104 nativeEmitter.cachedBuilders.remove(element.enclosingClass); |
| 2105 | 2105 |
| 2106 } | 2106 } |
| 2107 } | 2107 } |
| 2108 } | 2108 } |
| 2109 } | 2109 } |
| OLD | NEW |