| 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 '../../common/registry.dart' show | 8 import '../../common/registry.dart' show |
| 9 Registry; | 9 Registry; |
| 10 import '../../compiler.dart' show | 10 import '../../compiler.dart' show |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 ClassWorld get classWorld => _compiler.world; | 47 ClassWorld get classWorld => _compiler.world; |
| 48 | 48 |
| 49 js.Expression constantReference(ConstantValue value) { | 49 js.Expression constantReference(ConstantValue value) { |
| 50 return _emitter.constantReference(value); | 50 return _emitter.constantReference(value); |
| 51 } | 51 } |
| 52 | 52 |
| 53 reportInternalError(String message) { | 53 reportInternalError(String message) { |
| 54 _compiler.internalError(_compiler.currentElement, message); | 54 _compiler.internalError(_compiler.currentElement, message); |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool isUsedAsMixin(ClassElement clazz) { | 57 bool isUsedAsMixin(ClassElement classElement) { |
| 58 return classWorld.isUsedAsMixin(clazz); | 58 return classWorld.isUsedAsMixin(classElement); |
| 59 } | 59 } |
| 60 | 60 |
| 61 ConstantValue getConstantValueForVariable(VariableElement variable) { | 61 ConstantValue getConstantValueForVariable(VariableElement variable) { |
| 62 return _backend.constants.getConstantValueForVariable(variable); | 62 return _backend.constants.getConstantValueForVariable(variable); |
| 63 } | 63 } |
| 64 | 64 |
| 65 js.Expression staticFunctionAccess(FunctionElement element) { | 65 js.Expression staticFunctionAccess(FunctionElement element) { |
| 66 return _backend.emitter.staticFunctionAccess(element); | 66 return _backend.emitter.staticFunctionAccess(element); |
| 67 } | 67 } |
| 68 | 68 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; | 262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; |
| 263 | 263 |
| 264 bool isStringClass(ClassElement classElement) => | 264 bool isStringClass(ClassElement classElement) => |
| 265 classElement == _backend.jsStringClass || | 265 classElement == _backend.jsStringClass || |
| 266 classElement == _compiler.stringClass; | 266 classElement == _compiler.stringClass; |
| 267 | 267 |
| 268 bool isBoolClass(ClassElement classElement) => | 268 bool isBoolClass(ClassElement classElement) => |
| 269 classElement == _backend.jsBoolClass || | 269 classElement == _backend.jsBoolClass || |
| 270 classElement == _compiler.boolClass; | 270 classElement == _compiler.boolClass; |
| 271 } | 271 } |
| OLD | NEW |