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

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

Issue 1411783005: Remove [addForEmission] parameter from [registerCompileTimeConstant] (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 part of js_backend; 5 part of js_backend;
6 6
7 /** 7 /**
8 * Support for Custom Elements. 8 * Support for Custom Elements.
9 * 9 *
10 * The support for custom elements the compiler builds a table that maps the 10 * The support for custom elements the compiler builds a table that maps the
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 Iterable<Element> escapingConstructors = 161 Iterable<Element> escapingConstructors =
162 computeEscapingConstructors(classElement); 162 computeEscapingConstructors(classElement);
163 escapingConstructors.forEach(enqueuer.registerStaticUse); 163 escapingConstructors.forEach(enqueuer.registerStaticUse);
164 escapingConstructors 164 escapingConstructors
165 .forEach(compiler.globalDependencies.registerDependency); 165 .forEach(compiler.globalDependencies.registerDependency);
166 // Force the generaton of the type constant that is the key to an entry 166 // Force the generaton of the type constant that is the key to an entry
167 // in the generated table. 167 // in the generated table.
168 ConstantValue constant = makeTypeConstant(classElement); 168 ConstantValue constant = makeTypeConstant(classElement);
169 backend.registerCompileTimeConstant( 169 backend.registerCompileTimeConstant(
170 constant, compiler.globalDependencies); 170 constant, compiler.globalDependencies);
171 backend.addCompileTimeConstantForEmission(constant);
171 } 172 }
172 } 173 }
173 activeClasses.addAll(newActiveClasses); 174 activeClasses.addAll(newActiveClasses);
174 instantiatedClasses.removeAll(newActiveClasses); 175 instantiatedClasses.removeAll(newActiveClasses);
175 } 176 }
176 177
177 TypeConstantValue makeTypeConstant(ClassElement element) { 178 TypeConstantValue makeTypeConstant(ClassElement element) {
178 DartType elementType = element.rawType; 179 DartType elementType = element.rawType;
179 return backend.constantSystem.createType(compiler, elementType); 180 return backend.constantSystem.createType(compiler, elementType);
180 } 181 }
(...skipping 15 matching lines...) Expand all
196 result.add(member); 197 result.add(member);
197 } 198 }
198 } 199 }
199 } 200 }
200 classElement.forEachMember(selectGenerativeConstructors, 201 classElement.forEachMember(selectGenerativeConstructors,
201 includeBackendMembers: false, 202 includeBackendMembers: false,
202 includeSuperAndInjectedMembers: false); 203 includeSuperAndInjectedMembers: false);
203 return result; 204 return result;
204 } 205 }
205 } 206 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698