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

Side by Side Diff: pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart

Issue 2643863005: Use entities in interceptor_stub_generator. (Closed)
Patch Set: Created 3 years, 11 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import '../compiler.dart' show Compiler; 5 import '../compiler.dart' show Compiler;
6 import '../constants/values.dart'; 6 import '../constants/values.dart';
7 import '../elements/resolution_types.dart'; 7 import '../elements/resolution_types.dart';
8 import '../elements/elements.dart'; 8 import '../elements/elements.dart';
9 import '../enqueue.dart' show Enqueuer; 9 import '../enqueue.dart' show Enqueuer;
10 import '../universe/use.dart' show StaticUse; 10 import '../universe/use.dart' show StaticUse;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 /// Computes the [WorldImpact] of the classes registered since last flush. 119 /// Computes the [WorldImpact] of the classes registered since last flush.
120 WorldImpact flush({bool forResolution}) { 120 WorldImpact flush({bool forResolution}) {
121 return joinFor(forResolution: forResolution).flush(); 121 return joinFor(forResolution: forResolution).flush();
122 } 122 }
123 123
124 bool get needsTable => codegenJoin.demanded; 124 bool get needsTable => codegenJoin.demanded;
125 125
126 bool needsClass(ClassElement classElement) => 126 bool needsClass(ClassElement classElement) =>
127 codegenJoin.activeClasses.contains(classElement); 127 codegenJoin.activeClasses.contains(classElement);
128 128
129 List<Element> constructors(ClassElement classElement) => 129 List<ConstructorElement> constructors(ClassElement classElement) =>
130 codegenJoin.computeEscapingConstructors(classElement); 130 codegenJoin.computeEscapingConstructors(classElement);
131 } 131 }
132 132
133 class CustomElementsAnalysisJoin { 133 class CustomElementsAnalysisJoin {
134 final JavaScriptBackend backend; 134 final JavaScriptBackend backend;
135 Compiler get compiler => backend.compiler; 135 Compiler get compiler => backend.compiler;
136 136
137 final StagedWorldImpactBuilder impactBuilder = new StagedWorldImpactBuilder(); 137 final StagedWorldImpactBuilder impactBuilder = new StagedWorldImpactBuilder();
138 138
139 // Classes that are candidates for needing constructors. Classes are moved to 139 // Classes that are candidates for needing constructors. Classes are moved to
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 result.add(member); 211 result.add(member);
212 } 212 }
213 } 213 }
214 } 214 }
215 215
216 classElement.forEachMember(selectGenerativeConstructors, 216 classElement.forEachMember(selectGenerativeConstructors,
217 includeBackendMembers: false, includeSuperAndInjectedMembers: false); 217 includeBackendMembers: false, includeSuperAndInjectedMembers: false);
218 return result; 218 return result;
219 } 219 }
220 } 220 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698