| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart2js.common.codegen; | 5 library dart2js.common.codegen; |
| 6 | 6 |
| 7 import '../common_elements.dart'; | 7 import '../common_elements.dart'; |
| 8 import '../elements/entities.dart'; | 8 import '../elements/entities.dart'; |
| 9 import '../elements/types.dart' show DartType, InterfaceType; | 9 import '../elements/types.dart' show DartType, InterfaceType; |
| 10 import '../universe/use.dart' show ConstantUse, DynamicUse, StaticUse, TypeUse; | 10 import '../universe/use.dart' show ConstantUse, DynamicUse, StaticUse, TypeUse; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 void registerConstantUse(ConstantUse constantUse) { | 140 void registerConstantUse(ConstantUse constantUse) { |
| 141 worldImpact.registerConstantUse(constantUse); | 141 worldImpact.registerConstantUse(constantUse); |
| 142 } | 142 } |
| 143 | 143 |
| 144 void registerTypeVariableBoundsSubtypeCheck( | 144 void registerTypeVariableBoundsSubtypeCheck( |
| 145 DartType subtype, DartType supertype) { | 145 DartType subtype, DartType supertype) { |
| 146 worldImpact.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); | 146 worldImpact.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void registerInstantiatedClosure(Local element) { | 149 void registerInstantiatedClosure(FunctionEntity element) { |
| 150 worldImpact.registerStaticUse(new StaticUse.closure(element)); | 150 worldImpact.registerStaticUse(new StaticUse.callMethod(element)); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void registerConstSymbol(String name) { | 153 void registerConstSymbol(String name) { |
| 154 worldImpact.registerConstSymbol(name); | 154 worldImpact.registerConstSymbol(name); |
| 155 } | 155 } |
| 156 | 156 |
| 157 void registerSpecializedGetInterceptor(Set<ClassEntity> classes) { | 157 void registerSpecializedGetInterceptor(Set<ClassEntity> classes) { |
| 158 worldImpact.registerSpecializedGetInterceptor(classes); | 158 worldImpact.registerSpecializedGetInterceptor(classes); |
| 159 } | 159 } |
| 160 | 160 |
| 161 void registerUseInterceptor() { | 161 void registerUseInterceptor() { |
| 162 worldImpact.registerUseInterceptor(); | 162 worldImpact.registerUseInterceptor(); |
| 163 } | 163 } |
| 164 | 164 |
| 165 void registerInstantiation(InterfaceType type) { | 165 void registerInstantiation(InterfaceType type) { |
| 166 registerTypeUse(new TypeUse.instantiation(type)); | 166 registerTypeUse(new TypeUse.instantiation(type)); |
| 167 } | 167 } |
| 168 | 168 |
| 169 void registerAsyncMarker(AsyncMarker asyncMarker) { | 169 void registerAsyncMarker(AsyncMarker asyncMarker) { |
| 170 worldImpact.registerAsyncMarker(asyncMarker); | 170 worldImpact.registerAsyncMarker(asyncMarker); |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 | 173 |
| 174 /// [WorkItem] used exclusively by the [CodegenEnqueuer]. | 174 /// [WorkItem] used exclusively by the [CodegenEnqueuer]. |
| 175 abstract class CodegenWorkItem extends WorkItem { | 175 abstract class CodegenWorkItem extends WorkItem { |
| 176 CodegenRegistry get registry; | 176 CodegenRegistry get registry; |
| 177 } | 177 } |
| OLD | NEW |