| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 } | 45 } |
| 46 | 46 |
| 47 ConstantExpression getConstantForVariable(VariableElement variable) { | 47 ConstantExpression getConstantForVariable(VariableElement variable) { |
| 48 return _backend.constants.getConstantForVariable(variable); | 48 return _backend.constants.getConstantForVariable(variable); |
| 49 } | 49 } |
| 50 | 50 |
| 51 js.Expression staticFunctionAccess(FunctionElement element) { | 51 js.Expression staticFunctionAccess(FunctionElement element) { |
| 52 return _backend.emitter.staticFunctionAccess(element); | 52 return _backend.emitter.staticFunctionAccess(element); |
| 53 } | 53 } |
| 54 | 54 |
| 55 js.Expression isolateStaticClosureAccess(FunctionElement element) { |
| 56 return _backend.emitter.isolateStaticClosureAccess(element); |
| 57 } |
| 58 |
| 55 js.Expression staticFieldAccess(FieldElement element) { | 59 js.Expression staticFieldAccess(FieldElement element) { |
| 56 return _backend.emitter.staticFieldAccess(element); | 60 return _backend.emitter.staticFieldAccess(element); |
| 57 } | 61 } |
| 58 | 62 |
| 59 String safeVariableName(String name) { | 63 String safeVariableName(String name) { |
| 60 return _namer.safeVariableName(name); | 64 return _namer.safeVariableName(name); |
| 61 } | 65 } |
| 62 | 66 |
| 63 ClassElement get listClass => _compiler.listClass; | 67 ClassElement get listClass => _compiler.listClass; |
| 64 | 68 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 bool isDoubleClass(ClassElement cls) => cls == _compiler.doubleClass; | 212 bool isDoubleClass(ClassElement cls) => cls == _compiler.doubleClass; |
| 209 | 213 |
| 210 String getTypeTestTag(DartType type) { | 214 String getTypeTestTag(DartType type) { |
| 211 return _backend.namer.operatorIsType(type); | 215 return _backend.namer.operatorIsType(type); |
| 212 } | 216 } |
| 213 | 217 |
| 214 bool operatorEqHandlesNullArgument(FunctionElement element) { | 218 bool operatorEqHandlesNullArgument(FunctionElement element) { |
| 215 return _backend.operatorEqHandlesNullArgument(element); | 219 return _backend.operatorEqHandlesNullArgument(element); |
| 216 } | 220 } |
| 217 } | 221 } |
| OLD | NEW |