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

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

Issue 2969013002: Support creating elements from IR nodes in JsKernelToElementMap (Closed)
Patch Set: Updated cf. comments 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
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 108
109 closedWorld 109 closedWorld
110 .getClassHierarchyNode(closedWorld.commonElements.objectClass) 110 .getClassHierarchyNode(closedWorld.commonElements.objectClass)
111 .forEachSubclass((ClassEntity cls) { 111 .forEachSubclass((ClassEntity cls) {
112 convertClassSet(closedWorld.getClassSet(cls)); 112 convertClassSet(closedWorld.getClassSet(cls));
113 }, ClassHierarchyNode.ALL); 113 }, ClassHierarchyNode.ALL);
114 114
115 return new JsClosedWorld( 115 return new JsClosedWorld(
116 elementEnvironment: _elementEnvironment, 116 elementEnvironment: _elementEnvironment,
117 dartTypes: _elementMap.types,
117 commonElements: _commonElements, 118 commonElements: _commonElements,
118 constantSystem: const JavaScriptConstantSystem(), 119 constantSystem: const JavaScriptConstantSystem(),
119 backendUsage: backendUsage, 120 backendUsage: backendUsage,
120 nativeData: nativeData, 121 nativeData: nativeData,
121 interceptorData: interceptorData, 122 interceptorData: interceptorData,
122 classHierarchyNodes: classHierarchyNodes, 123 classHierarchyNodes: classHierarchyNodes,
123 classSets: classSets, 124 classSets: classSets,
124 implementedClasses: implementedClasses, 125 implementedClasses: implementedClasses,
125 // TODO(johnniwinther): Support this. 126 // TODO(johnniwinther): Support these.
126 allTypedefs: new ImmutableEmptySet<TypedefElement>()); 127 allTypedefs: new ImmutableEmptySet<TypedefElement>(),
128 resolutionWorldBuilder: null,
129 functionSet: null,
130 mixinUses: null,
131 typesImplementedBySubclasses: null);
127 } 132 }
128 133
129 @override 134 @override
130 Sorter get sorter { 135 Sorter get sorter {
131 return _sorter ??= new KernelSorter(elementMap); 136 return _sorter ??= new KernelSorter(elementMap);
132 } 137 }
133 138
134 @override 139 @override
135 ClosureConversionTask get closureDataLookup => 140 ClosureConversionTask get closureDataLookup =>
136 _closureDataLookup ??= new KernelClosureConversionTask( 141 _closureDataLookup ??= new KernelClosureConversionTask(
(...skipping 21 matching lines...) Expand all
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 | « pkg/compiler/lib/src/js_model/elements.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698