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 getExceptionUnwrapper() { |
| 125 return _backend.getExceptionUnwrapper(); |
| 126 } |
| 127 |
| 128 FunctionElement getTraceFromException() { |
| 129 return _backend.getTraceFromException(); |
| 130 } |
| 131 |
124 FunctionElement getCreateRuntimeType() { | 132 FunctionElement getCreateRuntimeType() { |
125 return _backend.getCreateRuntimeType(); | 133 return _backend.getCreateRuntimeType(); |
126 } | 134 } |
127 | 135 |
128 FunctionElement getRuntimeTypeToString() { | 136 FunctionElement getRuntimeTypeToString() { |
129 return _backend.getRuntimeTypeToString(); | 137 return _backend.getRuntimeTypeToString(); |
130 } | 138 } |
131 | 139 |
132 FunctionElement getTypeArgumentWithSubstitution() { | 140 FunctionElement getTypeArgumentWithSubstitution() { |
133 return _backend.getGetRuntimeTypeArgument(); | 141 return _backend.getGetRuntimeTypeArgument(); |
(...skipping 28 matching lines...) Expand all Loading... |
162 js.Expression generateTypeRepresentation(DartType dartType, | 170 js.Expression generateTypeRepresentation(DartType dartType, |
163 List<js.Expression> arguments) { | 171 List<js.Expression> arguments) { |
164 int variableIndex = 0; | 172 int variableIndex = 0; |
165 js.Expression representation = _backend.rti.getTypeRepresentation( | 173 js.Expression representation = _backend.rti.getTypeRepresentation( |
166 dartType, | 174 dartType, |
167 (_) => arguments[variableIndex++]); | 175 (_) => arguments[variableIndex++]); |
168 assert(variableIndex == arguments.length); | 176 assert(variableIndex == arguments.length); |
169 return representation; | 177 return representation; |
170 } | 178 } |
171 } | 179 } |
OLD | NEW |