| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |