| 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 '../../constants/values.dart'; | 8 import '../../constants/values.dart'; |
| 9 import '../../dart_types.dart' show | 9 import '../../dart_types.dart' show |
| 10 DartType, | 10 DartType, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 FunctionElement get getInterceptorMethod => _backend.getInterceptorMethod; | 32 FunctionElement get getInterceptorMethod => _backend.getInterceptorMethod; |
| 33 | 33 |
| 34 JavaScriptBackend get _backend => _compiler.backend; | 34 JavaScriptBackend get _backend => _compiler.backend; |
| 35 | 35 |
| 36 CodeEmitterTask get _emitter => _backend.emitter; | 36 CodeEmitterTask get _emitter => _backend.emitter; |
| 37 | 37 |
| 38 Namer get _namer => _backend.namer; | 38 Namer get _namer => _backend.namer; |
| 39 | 39 |
| 40 Glue(this._compiler); | 40 Glue(this._compiler); |
| 41 | 41 |
| 42 ClassWorld get classWorld => _compiler.world; |
| 43 |
| 42 js.Expression constantReference(ConstantValue value) { | 44 js.Expression constantReference(ConstantValue value) { |
| 43 return _emitter.constantReference(value); | 45 return _emitter.constantReference(value); |
| 44 } | 46 } |
| 45 | 47 |
| 46 reportInternalError(String message) { | 48 reportInternalError(String message) { |
| 47 _compiler.internalError(_compiler.currentElement, message); | 49 _compiler.internalError(_compiler.currentElement, message); |
| 48 } | 50 } |
| 49 | 51 |
| 50 ConstantValue getConstantValueForVariable(VariableElement variable) { | 52 ConstantValue getConstantValueForVariable(VariableElement variable) { |
| 51 return _backend.constants.getConstantValueForVariable(variable); | 53 return _backend.constants.getConstantValueForVariable(variable); |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 return _backend.operatorEqHandlesNullArgument(element); | 241 return _backend.operatorEqHandlesNullArgument(element); |
| 240 } | 242 } |
| 241 | 243 |
| 242 bool hasStrictSubtype(ClassElement element) { | 244 bool hasStrictSubtype(ClassElement element) { |
| 243 return _compiler.world.hasAnyStrictSubtype(element); | 245 return _compiler.world.hasAnyStrictSubtype(element); |
| 244 } | 246 } |
| 245 | 247 |
| 246 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass; | 248 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass; |
| 247 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; | 249 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; |
| 248 } | 250 } |
| OLD | NEW |