| 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 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 | 1476 |
| 1477 emitDeferredBoilerPlate(mainOutput, deferredLoadHashes); | 1477 emitDeferredBoilerPlate(mainOutput, deferredLoadHashes); |
| 1478 | 1478 |
| 1479 if (compiler.deferredMapUri != null) { | 1479 if (compiler.deferredMapUri != null) { |
| 1480 outputDeferredMap(); | 1480 outputDeferredMap(); |
| 1481 } | 1481 } |
| 1482 | 1482 |
| 1483 // Static field initializations require the classes and compile-time | 1483 // Static field initializations require the classes and compile-time |
| 1484 // constants to be set up. | 1484 // constants to be set up. |
| 1485 emitStaticNonFinalFieldInitializations(mainOutput, mainOutputUnit); | 1485 emitStaticNonFinalFieldInitializations(mainOutput, mainOutputUnit); |
| 1486 interceptorEmitter.emitMapTypeToInterceptor(mainOutput); | 1486 interceptorEmitter.emitTypeToInterceptorMap(mainOutput); |
| 1487 emitLazilyInitializedStaticFields(mainOutput); | 1487 emitLazilyInitializedStaticFields(mainOutput); |
| 1488 | 1488 |
| 1489 mainOutput.add('\n'); | 1489 mainOutput.add('\n'); |
| 1490 | 1490 |
| 1491 metadataEmitter.emitMetadata(mainOutput); | 1491 metadataEmitter.emitMetadata(mainOutput); |
| 1492 | 1492 |
| 1493 isolateProperties = isolatePropertiesName; | 1493 isolateProperties = isolatePropertiesName; |
| 1494 // The following code should not use the short-hand for the | 1494 // The following code should not use the short-hand for the |
| 1495 // initialStatics. | 1495 // initialStatics. |
| 1496 mainOutput.add('${namer.currentIsolate}$_=${_}null$N'); | 1496 mainOutput.add('${namer.currentIsolate}$_=${_}null$N'); |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2027 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { | 2027 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { |
| 2028 if (element.isInstanceMember) { | 2028 if (element.isInstanceMember) { |
| 2029 cachedClassBuilders.remove(element.enclosingClass); | 2029 cachedClassBuilders.remove(element.enclosingClass); |
| 2030 | 2030 |
| 2031 nativeEmitter.cachedBuilders.remove(element.enclosingClass); | 2031 nativeEmitter.cachedBuilders.remove(element.enclosingClass); |
| 2032 | 2032 |
| 2033 } | 2033 } |
| 2034 } | 2034 } |
| 2035 } | 2035 } |
| 2036 } | 2036 } |
| OLD | NEW |