| 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 20 matching lines...) Expand all Loading... |
| 31 } | 31 } |
| 32 | 32 |
| 33 reportInternalError(String message) { | 33 reportInternalError(String message) { |
| 34 _compiler.internalError(_compiler.currentElement, message); | 34 _compiler.internalError(_compiler.currentElement, message); |
| 35 } | 35 } |
| 36 | 36 |
| 37 ConstantExpression getConstantForVariable(VariableElement variable) { | 37 ConstantExpression getConstantForVariable(VariableElement variable) { |
| 38 return _backend.constants.getConstantForVariable(variable); | 38 return _backend.constants.getConstantForVariable(variable); |
| 39 } | 39 } |
| 40 | 40 |
| 41 js.Expression elementAccess(Element element) { | 41 js.Expression staticFunctionAccess(Element element) { |
| 42 return _namer.elementAccess(element); | 42 return _backend.emitter.staticFunctionAccess(element); |
| 43 } | 43 } |
| 44 | 44 |
| 45 String safeVariableName(String name) { | 45 String safeVariableName(String name) { |
| 46 return _namer.safeVariableName(name); | 46 return _namer.safeVariableName(name); |
| 47 } | 47 } |
| 48 | 48 |
| 49 ClassElement get listClass => _compiler.listClass; | 49 ClassElement get listClass => _compiler.listClass; |
| 50 | 50 |
| 51 ConstructorElement get mapLiteralConstructor { | 51 ConstructorElement get mapLiteralConstructor { |
| 52 return _backend.mapLiteralConstructor; | 52 return _backend.mapLiteralConstructor; |
| 53 } | 53 } |
| 54 | 54 |
| 55 ConstructorElement get mapLiteralConstructorEmpty { | 55 ConstructorElement get mapLiteralConstructorEmpty { |
| 56 return _backend.mapLiteralConstructorEmpty; | 56 return _backend.mapLiteralConstructorEmpty; |
| 57 } | 57 } |
| 58 | 58 |
| 59 FunctionElement get identicalFunction => _compiler.identicalFunction; | 59 FunctionElement get identicalFunction => _compiler.identicalFunction; |
| 60 | 60 |
| 61 String invocationName(Selector selector) { | 61 String invocationName(Selector selector) { |
| 62 return _namer.invocationName(selector); | 62 return _namer.invocationName(selector); |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool isIntercepted(Selector selector) { | 65 bool isIntercepted(Selector selector) { |
| 66 return _backend.isInterceptedSelector(selector); | 66 return _backend.isInterceptedSelector(selector); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } | 69 } |
| OLD | NEW |