| 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 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 'hasIncrementalSupport': compiler.hasIncrementalSupport, | 1126 'hasIncrementalSupport': compiler.hasIncrementalSupport, |
| 1127 'lazyInitializerProperty': lazyInitializerProperty,}); | 1127 'lazyInitializerProperty': lazyInitializerProperty,}); |
| 1128 | 1128 |
| 1129 output.addBuffer( | 1129 output.addBuffer( |
| 1130 jsAst.prettyPrint(decl, compiler, monitor: compiler.dumpInfoTask)); | 1130 jsAst.prettyPrint(decl, compiler, monitor: compiler.dumpInfoTask)); |
| 1131 if (compiler.enableMinification) { | 1131 if (compiler.enableMinification) { |
| 1132 output.add('\n'); | 1132 output.add('\n'); |
| 1133 } | 1133 } |
| 1134 } | 1134 } |
| 1135 | 1135 |
| 1136 String get markerFun => backend.namer.internalGlobal('markerFun'); | 1136 String get markerFun => 'markerFun'; |
| 1137 | 1137 |
| 1138 void emitMarkerFun(CodeOutput output) { | 1138 void emitMarkerFun(CodeOutput output) { |
| 1139 jsAst.Statement markerFunStmt = js.statement(''' | 1139 jsAst.Statement markerFunStmt = js.statement(''' |
| 1140 // This function is used to mark the end of the inheritance chain so that | 1140 // This function is used to mark the end of the inheritance chain so that |
| 1141 // finishAddStubsHelper knows where to stop searching for deferred work. | 1141 // finishAddStubsHelper knows where to stop searching for deferred work. |
| 1142 // We have to put it at the top level so that we only get one instance of | 1142 // We have to put it at the top level so that we only get one instance of |
| 1143 // it even if we call parseReflectionData multiple times, e.g., due to | 1143 // it even if we call parseReflectionData multiple times, e.g., due to |
| 1144 // deferred loading. | 1144 // deferred loading. |
| 1145 function #() {}''', markerFun); | 1145 function #() {}''', markerFun); |
| 1146 output.addBuffer(jsAst.prettyPrint(markerFunStmt, compiler)); | 1146 output.addBuffer(jsAst.prettyPrint(markerFunStmt, compiler)); |
| (...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2128 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { | 2128 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { |
| 2129 if (element.isInstanceMember) { | 2129 if (element.isInstanceMember) { |
| 2130 cachedClassBuilders.remove(element.enclosingClass); | 2130 cachedClassBuilders.remove(element.enclosingClass); |
| 2131 | 2131 |
| 2132 nativeEmitter.cachedBuilders.remove(element.enclosingClass); | 2132 nativeEmitter.cachedBuilders.remove(element.enclosingClass); |
| 2133 | 2133 |
| 2134 } | 2134 } |
| 2135 } | 2135 } |
| 2136 } | 2136 } |
| 2137 } | 2137 } |
| OLD | NEW |