| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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() { | 174 FunctionElement getCheckSubtype() { |
| 175 return _backend.getCheckSubtype(); | 175 return _backend.getCheckSubtype(); |
| 176 } | 176 } |
| 177 | 177 |
| 178 FunctionElement getCheckSubtypeOfRuntime() { |
| 179 return _backend.getCheckSubtypeOfRuntimeType(); |
| 180 } |
| 181 |
| 178 js.Expression getRuntimeTypeName(ClassElement cls) { | 182 js.Expression getRuntimeTypeName(ClassElement cls) { |
| 179 return js.string(_namer.runtimeTypeName(cls)); | 183 return js.string(_namer.runtimeTypeName(cls)); |
| 180 } | 184 } |
| 181 | 185 |
| 182 int getTypeVariableIndex(TypeVariableType variable) { | 186 int getTypeVariableIndex(TypeVariableType variable) { |
| 183 return RuntimeTypes.getTypeVariableIndex(variable.element); | 187 return RuntimeTypes.getTypeVariableIndex(variable.element); |
| 184 } | 188 } |
| 185 | 189 |
| 186 bool needsSubstitutionForTypeVariableAccess(ClassElement cls) { | 190 bool needsSubstitutionForTypeVariableAccess(ClassElement cls) { |
| 187 ClassWorld classWorld = _compiler.world; | 191 ClassWorld classWorld = _compiler.world; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 217 } | 221 } |
| 218 | 222 |
| 219 bool operatorEqHandlesNullArgument(FunctionElement element) { | 223 bool operatorEqHandlesNullArgument(FunctionElement element) { |
| 220 return _backend.operatorEqHandlesNullArgument(element); | 224 return _backend.operatorEqHandlesNullArgument(element); |
| 221 } | 225 } |
| 222 | 226 |
| 223 bool hasStrictSubtype(ClassElement element) { | 227 bool hasStrictSubtype(ClassElement element) { |
| 224 return _compiler.world.hasAnyStrictSubtype(element); | 228 return _compiler.world.hasAnyStrictSubtype(element); |
| 225 } | 229 } |
| 226 } | 230 } |
| OLD | NEW |