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 library code_generator_dependencies; | 5 library code_generator_dependencies; |
6 | 6 |
7 import '../js_backend.dart'; | 7 import '../js_backend.dart'; |
8 import '../../dart2jslib.dart'; | 8 import '../../dart2jslib.dart'; |
9 import '../../js_emitter/js_emitter.dart'; | 9 import '../../js_emitter/js_emitter.dart'; |
10 import '../../js/js.dart' as js; | 10 import '../../js/js.dart' as js; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 } | 164 } |
165 | 165 |
166 FunctionElement getTypeArgumentByIndex() { | 166 FunctionElement getTypeArgumentByIndex() { |
167 return _backend.getGetTypeArgumentByIndex(); | 167 return _backend.getGetTypeArgumentByIndex(); |
168 } | 168 } |
169 | 169 |
170 FunctionElement getAddRuntimeTypeInformation() { | 170 FunctionElement getAddRuntimeTypeInformation() { |
171 return _backend.getSetRuntimeTypeInfo(); | 171 return _backend.getSetRuntimeTypeInfo(); |
172 } | 172 } |
173 | 173 |
174 FunctionElement getCheckSubtype() { | |
175 return _backend.getCheckSubtype(); | |
176 } | |
177 | |
178 js.Expression getRuntimeTypeName(ClassElement cls) { | 174 js.Expression getRuntimeTypeName(ClassElement cls) { |
179 return js.string(_namer.runtimeTypeName(cls)); | 175 return js.string(_namer.runtimeTypeName(cls)); |
180 } | 176 } |
181 | 177 |
182 int getTypeVariableIndex(TypeVariableType variable) { | 178 int getTypeVariableIndex(TypeVariableType variable) { |
183 return RuntimeTypes.getTypeVariableIndex(variable.element); | 179 return RuntimeTypes.getTypeVariableIndex(variable.element); |
184 } | 180 } |
185 | 181 |
186 bool needsSubstitutionForTypeVariableAccess(ClassElement cls) { | 182 bool needsSubstitutionForTypeVariableAccess(ClassElement cls) { |
187 ClassWorld classWorld = _compiler.world; | 183 ClassWorld classWorld = _compiler.world; |
(...skipping 17 matching lines...) Expand all Loading... |
205 | 201 |
206 void registerIsCheck(DartType type, Registry registry) { | 202 void registerIsCheck(DartType type, Registry registry) { |
207 _enqueuer.registerIsCheck(type, registry); | 203 _enqueuer.registerIsCheck(type, registry); |
208 _backend.registerIsCheckForCodegen(type, _enqueuer, registry); | 204 _backend.registerIsCheckForCodegen(type, _enqueuer, registry); |
209 } | 205 } |
210 | 206 |
211 String getTypeTestTag(DartType type) { | 207 String getTypeTestTag(DartType type) { |
212 return _backend.namer.operatorIsType(type); | 208 return _backend.namer.operatorIsType(type); |
213 } | 209 } |
214 | 210 |
215 String getTypeSubstitutionTag(ClassElement element) { | |
216 return _backend.namer.substitutionName(element); | |
217 } | |
218 | |
219 bool operatorEqHandlesNullArgument(FunctionElement element) { | 211 bool operatorEqHandlesNullArgument(FunctionElement element) { |
220 return _backend.operatorEqHandlesNullArgument(element); | 212 return _backend.operatorEqHandlesNullArgument(element); |
221 } | 213 } |
222 | |
223 bool hasStrictSubtype(ClassElement element) { | |
224 return _compiler.world.hasAnyStrictSubtype(element); | |
225 } | |
226 } | 214 } |
OLD | NEW |