Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: pkg/compiler/lib/src/js_model/js_strategy.dart

Issue 2964493002: Move implementation from KernelToElementMapImpl to *BaseImpl and *ForImpactImpl (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 ClosureConversionTask _closureDataLookup; 41 ClosureConversionTask _closureDataLookup;
42 final GlobalLocalsMap _globalLocalsMap = new GlobalLocalsMap(); 42 final GlobalLocalsMap _globalLocalsMap = new GlobalLocalsMap();
43 43
44 JsBackendStrategy(this._compiler); 44 JsBackendStrategy(this._compiler);
45 45
46 KernelToElementMapForBuilding get elementMap { 46 KernelToElementMapForBuilding get elementMap {
47 if (_elementMap == null) { 47 if (_elementMap == null) {
48 KernelFrontEndStrategy strategy = _compiler.frontendStrategy; 48 KernelFrontEndStrategy strategy = _compiler.frontendStrategy;
49 KernelToElementMapForBuilding elementMap = strategy.elementMap; 49 KernelToElementMapForBuilding elementMap = strategy.elementMap;
50 _elementMap = new JsKernelToElementMap( 50 _elementMap = new JsKernelToElementMap(
51 _map, _elementEnvironment, _commonElements, elementMap); 51 _compiler.reporter,
52 _compiler.environment,
53 _map,
54 _elementEnvironment,
55 _commonElements,
56 elementMap);
52 } 57 }
53 return _elementMap; 58 return _elementMap;
54 } 59 }
55 60
56 GlobalLocalsMap get globalLocalsMapForTesting => _globalLocalsMap; 61 GlobalLocalsMap get globalLocalsMapForTesting => _globalLocalsMap;
57 62
58 @override 63 @override
59 ClosedWorldRefiner createClosedWorldRefiner(ClosedWorld closedWorld) { 64 ClosedWorldRefiner createClosedWorldRefiner(ClosedWorld closedWorld) {
60 _elementEnvironment = 65 _elementEnvironment =
61 new JsElementEnvironment(_map, closedWorld.elementEnvironment); 66 new JsElementEnvironment(_map, closedWorld.elementEnvironment);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 ClosedWorld closedWorld, 163 ClosedWorld closedWorld,
159 SelectorConstraintsStrategy selectorConstraintsStrategy) { 164 SelectorConstraintsStrategy selectorConstraintsStrategy) {
160 return new KernelCodegenWorldBuilder( 165 return new KernelCodegenWorldBuilder(
161 elementMap, 166 elementMap,
162 closedWorld.elementEnvironment, 167 closedWorld.elementEnvironment,
163 nativeBasicData, 168 nativeBasicData,
164 closedWorld, 169 closedWorld,
165 selectorConstraintsStrategy); 170 selectorConstraintsStrategy);
166 } 171 }
167 } 172 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698