| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 ConstructorElement get mapLiteralConstructorEmpty { | 69 ConstructorElement get mapLiteralConstructorEmpty { |
| 70 return _backend.mapLiteralConstructorEmpty; | 70 return _backend.mapLiteralConstructorEmpty; |
| 71 } | 71 } |
| 72 | 72 |
| 73 FunctionElement get identicalFunction => _compiler.identicalFunction; | 73 FunctionElement get identicalFunction => _compiler.identicalFunction; |
| 74 | 74 |
| 75 String invocationName(Selector selector) { | 75 String invocationName(Selector selector) { |
| 76 return _namer.invocationName(selector); | 76 return _namer.invocationName(selector); |
| 77 } | 77 } |
| 78 | 78 |
| 79 FunctionElement get createInvocationMirrorMethod { |
| 80 return _backend.getCreateInvocationMirror(); |
| 81 } |
| 82 |
| 79 void registerUseInterceptorInCodegen() { | 83 void registerUseInterceptorInCodegen() { |
| 80 _backend.registerUseInterceptor(_enqueuer); | 84 _backend.registerUseInterceptor(_enqueuer); |
| 81 } | 85 } |
| 82 | 86 |
| 83 bool isInterceptedSelector(Selector selector) { | 87 bool isInterceptedSelector(Selector selector) { |
| 84 return _backend.isInterceptedSelector(selector); | 88 return _backend.isInterceptedSelector(selector); |
| 85 } | 89 } |
| 86 | 90 |
| 87 bool isInterceptedMethod(Element element) { | 91 bool isInterceptedMethod(Element element) { |
| 88 return _backend.isInterceptedMethod(element); | 92 return _backend.isInterceptedMethod(element); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 bool isBoolClass(ClassElement cls) => cls == _compiler.boolClass; | 205 bool isBoolClass(ClassElement cls) => cls == _compiler.boolClass; |
| 202 | 206 |
| 203 bool isNumClass(ClassElement cls) => cls == _compiler.numClass; | 207 bool isNumClass(ClassElement cls) => cls == _compiler.numClass; |
| 204 | 208 |
| 205 bool isDoubleClass(ClassElement cls) => cls == _compiler.doubleClass; | 209 bool isDoubleClass(ClassElement cls) => cls == _compiler.doubleClass; |
| 206 | 210 |
| 207 String getTypeTestTag(DartType type) { | 211 String getTypeTestTag(DartType type) { |
| 208 return _backend.namer.operatorIsType(type); | 212 return _backend.namer.operatorIsType(type); |
| 209 } | 213 } |
| 210 } | 214 } |
| OLD | NEW |