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

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

Issue 1413213004: Move remaining helpers to BackendHelpers (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void registerTypeConstant(Element element, Enqueuer enqueuer) { 94 void registerTypeConstant(Element element, Enqueuer enqueuer) {
95 assert(element.isClass); 95 assert(element.isClass);
96 assert(!enqueuer.isResolutionQueue); 96 assert(!enqueuer.isResolutionQueue);
97 codegenJoin.selectedClasses.add(element); 97 codegenJoin.selectedClasses.add(element);
98 } 98 }
99 99
100 void registerStaticUse(Element element, Enqueuer enqueuer) { 100 void registerStaticUse(Element element, Enqueuer enqueuer) {
101 assert(element != null); 101 assert(element != null);
102 if (!fetchedTableAccessorMethod) { 102 if (!fetchedTableAccessorMethod) {
103 fetchedTableAccessorMethod = true; 103 fetchedTableAccessorMethod = true;
104 tableAccessorMethod = backend.findInterceptor( 104 tableAccessorMethod = backend.helpers.findIndexForNativeSubclassType;
105 'findIndexForNativeSubclassType');
106 } 105 }
107 if (element == tableAccessorMethod) { 106 if (element == tableAccessorMethod) {
108 joinFor(enqueuer).demanded = true; 107 joinFor(enqueuer).demanded = true;
109 } 108 }
110 } 109 }
111 110
112 void onQueueEmpty(Enqueuer enqueuer) { 111 void onQueueEmpty(Enqueuer enqueuer) {
113 joinFor(enqueuer).flush(enqueuer); 112 joinFor(enqueuer).flush(enqueuer);
114 } 113 }
115 114
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 result.add(member); 196 result.add(member);
198 } 197 }
199 } 198 }
200 } 199 }
201 classElement.forEachMember(selectGenerativeConstructors, 200 classElement.forEachMember(selectGenerativeConstructors,
202 includeBackendMembers: false, 201 includeBackendMembers: false,
203 includeSuperAndInjectedMembers: false); 202 includeSuperAndInjectedMembers: false);
204 return result; 203 return result;
205 } 204 }
206 } 205 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698