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/elements.dart' show LocalFunctionElement; | 8 import '../elements/elements.dart' show LocalFunctionElement; |
9 import '../elements/entities.dart'; | 9 import '../elements/entities.dart'; |
10 import '../elements/types.dart' show DartType, InterfaceType; | 10 import '../elements/types.dart' show DartType, InterfaceType; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 | 140 |
141 void registerConstantUse(ConstantUse constantUse) { | 141 void registerConstantUse(ConstantUse constantUse) { |
142 worldImpact.registerConstantUse(constantUse); | 142 worldImpact.registerConstantUse(constantUse); |
143 } | 143 } |
144 | 144 |
145 void registerTypeVariableBoundsSubtypeCheck( | 145 void registerTypeVariableBoundsSubtypeCheck( |
146 DartType subtype, DartType supertype) { | 146 DartType subtype, DartType supertype) { |
147 worldImpact.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); | 147 worldImpact.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); |
148 } | 148 } |
149 | 149 |
150 void registerInstantiatedClosure(LocalFunctionElement element) { | 150 void registerInstantiatedClosure(Local element) { |
sra1
2017/07/28 20:38:51
assert this is a function that can be used to find
Emily Fortuna
2017/07/28 21:37:06
You're right, this isn't an easy fix. I put it bac
Johnni Winther
2017/07/31 10:54:28
It is okay to use [Local] here. Long term we shoul
| |
151 worldImpact.registerStaticUse(new StaticUse.closure(element)); | 151 worldImpact.registerStaticUse(new StaticUse.closure(element)); |
152 } | 152 } |
153 | 153 |
154 void registerConstSymbol(String name) { | 154 void registerConstSymbol(String name) { |
155 worldImpact.registerConstSymbol(name); | 155 worldImpact.registerConstSymbol(name); |
156 } | 156 } |
157 | 157 |
158 void registerSpecializedGetInterceptor(Set<ClassEntity> classes) { | 158 void registerSpecializedGetInterceptor(Set<ClassEntity> classes) { |
159 worldImpact.registerSpecializedGetInterceptor(classes); | 159 worldImpact.registerSpecializedGetInterceptor(classes); |
160 } | 160 } |
161 | 161 |
162 void registerUseInterceptor() { | 162 void registerUseInterceptor() { |
163 worldImpact.registerUseInterceptor(); | 163 worldImpact.registerUseInterceptor(); |
164 } | 164 } |
165 | 165 |
166 void registerInstantiation(InterfaceType type) { | 166 void registerInstantiation(InterfaceType type) { |
167 registerTypeUse(new TypeUse.instantiation(type)); | 167 registerTypeUse(new TypeUse.instantiation(type)); |
168 } | 168 } |
169 | 169 |
170 void registerAsyncMarker(AsyncMarker asyncMarker) { | 170 void registerAsyncMarker(AsyncMarker asyncMarker) { |
171 worldImpact.registerAsyncMarker(asyncMarker); | 171 worldImpact.registerAsyncMarker(asyncMarker); |
172 } | 172 } |
173 } | 173 } |
174 | 174 |
175 /// [WorkItem] used exclusively by the [CodegenEnqueuer]. | 175 /// [WorkItem] used exclusively by the [CodegenEnqueuer]. |
176 abstract class CodegenWorkItem extends WorkItem { | 176 abstract class CodegenWorkItem extends WorkItem { |
177 CodegenRegistry get registry; | 177 CodegenRegistry get registry; |
178 } | 178 } |
OLD | NEW |