OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of dart2js; | 5 part of dart2js; |
6 | 6 |
7 /** | 7 /** |
8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
9 * compiled. | 9 * compiled. |
10 */ | 10 */ |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 void registerCompileTimeConstant(ConstantValue constant) { | 128 void registerCompileTimeConstant(ConstantValue constant) { |
129 backend.registerCompileTimeConstant(constant, this); | 129 backend.registerCompileTimeConstant(constant, this); |
130 backend.constants.addCompileTimeConstantForEmission(constant); | 130 backend.constants.addCompileTimeConstantForEmission(constant); |
131 } | 131 } |
132 | 132 |
133 void registerTypeVariableBoundsSubtypeCheck(DartType subtype, | 133 void registerTypeVariableBoundsSubtypeCheck(DartType subtype, |
134 DartType supertype) { | 134 DartType supertype) { |
135 backend.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); | 135 backend.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); |
136 } | 136 } |
137 | 137 |
138 void registerClosureWithFreeTypeVariables(FunctionElement element) { | 138 void registerInstantiatedClosure(LocalFunctionElement element) { |
139 backend.registerClosureWithFreeTypeVariables(element, world, this); | 139 backend.registerInstantiatedClosure(element, this); |
140 } | 140 } |
141 | 141 |
142 void registerGetOfStaticFunction(FunctionElement element) { | 142 void registerGetOfStaticFunction(FunctionElement element) { |
143 world.registerGetOfStaticFunction(element); | 143 world.registerGetOfStaticFunction(element); |
144 } | 144 } |
145 | 145 |
146 void registerSelectorUse(Selector selector) { | 146 void registerSelectorUse(Selector selector) { |
147 world.registerSelectorUse(selector); | 147 world.registerSelectorUse(selector); |
148 } | 148 } |
149 | 149 |
(...skipping 2358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2508 InterfaceType streamType([DartType elementType]) { | 2508 InterfaceType streamType([DartType elementType]) { |
2509 InterfaceType type = streamClass.computeType(compiler); | 2509 InterfaceType type = streamClass.computeType(compiler); |
2510 if (elementType == null) { | 2510 if (elementType == null) { |
2511 return streamClass.rawType; | 2511 return streamClass.rawType; |
2512 } | 2512 } |
2513 return type.createInstantiation([elementType]); | 2513 return type.createInstantiation([elementType]); |
2514 } | 2514 } |
2515 } | 2515 } |
2516 | 2516 |
2517 typedef void InternalErrorFunction(Spannable location, String message); | 2517 typedef void InternalErrorFunction(Spannable location, String message); |
OLD | NEW |