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 '../backend_strategy.dart'; | 7 import '../backend_strategy.dart'; |
8 import '../closure.dart' show ClosureConversionTask; | 8 import '../closure.dart' show ClosureConversionTask; |
9 import '../common/tasks.dart'; | 9 import '../common/tasks.dart'; |
10 import '../common_elements.dart'; | 10 import '../common_elements.dart'; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 @override | 136 @override |
137 WorkItemBuilder createCodegenWorkItemBuilder(ClosedWorld closedWorld) { | 137 WorkItemBuilder createCodegenWorkItemBuilder(ClosedWorld closedWorld) { |
138 return new KernelCodegenWorkItemBuilder(_compiler.backend, closedWorld); | 138 return new KernelCodegenWorkItemBuilder(_compiler.backend, closedWorld); |
139 } | 139 } |
140 | 140 |
141 @override | 141 @override |
142 CodegenWorldBuilder createCodegenWorldBuilder( | 142 CodegenWorldBuilder createCodegenWorldBuilder( |
143 NativeBasicData nativeBasicData, | 143 NativeBasicData nativeBasicData, |
144 ClosedWorld closedWorld, | 144 ClosedWorld closedWorld, |
145 SelectorConstraintsStrategy selectorConstraintsStrategy) { | 145 SelectorConstraintsStrategy selectorConstraintsStrategy) { |
146 return new KernelCodegenWorldBuilder(closedWorld.elementEnvironment, | 146 KernelFrontEndStrategy frontendStrategy = _compiler.frontendStrategy; |
147 nativeBasicData, closedWorld, selectorConstraintsStrategy); | 147 return new KernelCodegenWorldBuilder( |
| 148 frontendStrategy.elementMap, |
| 149 closedWorld.elementEnvironment, |
| 150 nativeBasicData, |
| 151 closedWorld, |
| 152 selectorConstraintsStrategy); |
148 } | 153 } |
149 } | 154 } |
OLD | NEW |