| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 } | 152 } |
| 153 | 153 |
| 154 FunctionElement getCreateRuntimeType() { | 154 FunctionElement getCreateRuntimeType() { |
| 155 return _backend.getCreateRuntimeType(); | 155 return _backend.getCreateRuntimeType(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 FunctionElement getRuntimeTypeToString() { | 158 FunctionElement getRuntimeTypeToString() { |
| 159 return _backend.getRuntimeTypeToString(); | 159 return _backend.getRuntimeTypeToString(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 FunctionElement getTypeArgumentWithSubstitution() { | 162 FunctionElement getRuntimeTypeArgument() { |
| 163 return _backend.getGetRuntimeTypeArgument(); | 163 return _backend.getGetRuntimeTypeArgument(); |
| 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 js.Expression getSubstitutionName(ClassElement cls) { | 174 js.Expression getRuntimeTypeName(ClassElement cls) { |
| 175 return js.string(_namer.substitutionName(cls)); | 175 return js.string(_namer.runtimeTypeName(cls)); |
| 176 } | 176 } |
| 177 | 177 |
| 178 int getTypeVariableIndex(TypeVariableType variable) { | 178 int getTypeVariableIndex(TypeVariableType variable) { |
| 179 return RuntimeTypes.getTypeVariableIndex(variable.element); | 179 return RuntimeTypes.getTypeVariableIndex(variable.element); |
| 180 } | 180 } |
| 181 | 181 |
| 182 bool needsSubstitutionForTypeVariableAccess(ClassElement cls) { | 182 bool needsSubstitutionForTypeVariableAccess(ClassElement cls) { |
| 183 ClassWorld classWorld = _compiler.world; | 183 ClassWorld classWorld = _compiler.world; |
| 184 if (classWorld.isUsedAsMixin(cls)) return true; | 184 if (classWorld.isUsedAsMixin(cls)) return true; |
| 185 | 185 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 String getTypeTestTag(DartType type) { | 222 String getTypeTestTag(DartType type) { |
| 223 return _backend.namer.operatorIsType(type); | 223 return _backend.namer.operatorIsType(type); |
| 224 } | 224 } |
| 225 | 225 |
| 226 bool operatorEqHandlesNullArgument(FunctionElement element) { | 226 bool operatorEqHandlesNullArgument(FunctionElement element) { |
| 227 return _backend.operatorEqHandlesNullArgument(element); | 227 return _backend.operatorEqHandlesNullArgument(element); |
| 228 } | 228 } |
| 229 | 229 |
| 230 bool isListClass(ClassElement cls) => cls == _compiler.listClass; | 230 bool isListClass(ClassElement cls) => cls == _compiler.listClass; |
| 231 } | 231 } |
| OLD | NEW |