| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 String getInterceptorName(Set<ClassElement> interceptedClasses) { | 115 String getInterceptorName(Set<ClassElement> interceptedClasses) { |
| 116 return _backend.namer.nameForGetInterceptor(interceptedClasses); | 116 return _backend.namer.nameForGetInterceptor(interceptedClasses); |
| 117 } | 117 } |
| 118 | 118 |
| 119 js.Expression getInterceptorLibrary() { | 119 js.Expression getInterceptorLibrary() { |
| 120 return new js.VariableUse( | 120 return new js.VariableUse( |
| 121 _backend.namer.globalObjectFor(_backend.interceptorsLibrary)); | 121 _backend.namer.globalObjectFor(_backend.interceptorsLibrary)); |
| 122 } | 122 } |
| 123 | 123 |
| 124 FunctionElement getWrapExceptionHelper() { |
| 125 return _backend.getWrapExceptionHelper(); |
| 126 } |
| 127 |
| 124 FunctionElement getExceptionUnwrapper() { | 128 FunctionElement getExceptionUnwrapper() { |
| 125 return _backend.getExceptionUnwrapper(); | 129 return _backend.getExceptionUnwrapper(); |
| 126 } | 130 } |
| 127 | 131 |
| 128 FunctionElement getTraceFromException() { | 132 FunctionElement getTraceFromException() { |
| 129 return _backend.getTraceFromException(); | 133 return _backend.getTraceFromException(); |
| 130 } | 134 } |
| 131 | 135 |
| 132 FunctionElement getCreateRuntimeType() { | 136 FunctionElement getCreateRuntimeType() { |
| 133 return _backend.getCreateRuntimeType(); | 137 return _backend.getCreateRuntimeType(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 js.Expression generateTypeRepresentation(DartType dartType, | 174 js.Expression generateTypeRepresentation(DartType dartType, |
| 171 List<js.Expression> arguments) { | 175 List<js.Expression> arguments) { |
| 172 int variableIndex = 0; | 176 int variableIndex = 0; |
| 173 js.Expression representation = _backend.rti.getTypeRepresentation( | 177 js.Expression representation = _backend.rti.getTypeRepresentation( |
| 174 dartType, | 178 dartType, |
| 175 (_) => arguments[variableIndex++]); | 179 (_) => arguments[variableIndex++]); |
| 176 assert(variableIndex == arguments.length); | 180 assert(variableIndex == arguments.length); |
| 177 return representation; | 181 return representation; |
| 178 } | 182 } |
| 179 } | 183 } |
| OLD | NEW |