OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 dart2js.js_model.strategy; | 5 library dart2js.js_model.strategy; |
6 | 6 |
7 import '../closure.dart' show ClosureConversionTask; | 7 import '../closure.dart' show ClosureConversionTask; |
8 import '../common/tasks.dart'; | 8 import '../common/tasks.dart'; |
9 import '../common_elements.dart'; | 9 import '../common_elements.dart'; |
10 import '../compiler.dart'; | 10 import '../compiler.dart'; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 } | 132 } |
133 | 133 |
134 @override | 134 @override |
135 Sorter get sorter { | 135 Sorter get sorter { |
136 throw new UnimplementedError('JsBackendStrategy.sorter'); | 136 throw new UnimplementedError('JsBackendStrategy.sorter'); |
137 } | 137 } |
138 | 138 |
139 @override | 139 @override |
140 ClosureConversionTask get closureDataLookup => | 140 ClosureConversionTask get closureDataLookup => |
141 _closureDataLookup ??= new KernelClosureConversionTask( | 141 _closureDataLookup ??= new KernelClosureConversionTask( |
142 _compiler.measurer, elementMap, _globalLocalsMap); | 142 _compiler.measurer, elementMap, _map, _globalLocalsMap); |
143 | 143 |
144 @override | 144 @override |
145 SourceInformationStrategy get sourceInformationStrategy => | 145 SourceInformationStrategy get sourceInformationStrategy => |
146 const JavaScriptSourceInformationStrategy(); | 146 const JavaScriptSourceInformationStrategy(); |
147 | 147 |
148 @override | 148 @override |
149 SsaBuilder createSsaBuilder(CompilerTask task, JavaScriptBackend backend, | 149 SsaBuilder createSsaBuilder(CompilerTask task, JavaScriptBackend backend, |
150 SourceInformationStrategy sourceInformationStrategy) { | 150 SourceInformationStrategy sourceInformationStrategy) { |
151 return new KernelSsaBuilder( | 151 return new KernelSsaBuilder( |
152 task, backend.compiler, elementMap, _globalLocalsMap); | 152 task, backend.compiler, elementMap, _globalLocalsMap); |
(...skipping 10 matching lines...) Expand all Loading... |
163 ClosedWorld closedWorld, | 163 ClosedWorld closedWorld, |
164 SelectorConstraintsStrategy selectorConstraintsStrategy) { | 164 SelectorConstraintsStrategy selectorConstraintsStrategy) { |
165 return new KernelCodegenWorldBuilder( | 165 return new KernelCodegenWorldBuilder( |
166 elementMap, | 166 elementMap, |
167 closedWorld.elementEnvironment, | 167 closedWorld.elementEnvironment, |
168 nativeBasicData, | 168 nativeBasicData, |
169 closedWorld, | 169 closedWorld, |
170 selectorConstraintsStrategy); | 170 selectorConstraintsStrategy); |
171 } | 171 } |
172 } | 172 } |
OLD | NEW |