OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart2js; | 5 part of dart2js; |
6 | 6 |
7 /** | 7 /** |
8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
9 * compiled. | 9 * compiled. |
10 */ | 10 */ |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 void registerInstantiatedType(InterfaceType type) { | 78 void registerInstantiatedType(InterfaceType type) { |
79 world.registerInstantiatedType(type, this); | 79 world.registerInstantiatedType(type, this); |
80 } | 80 } |
81 | 81 |
82 void registerStaticUse(Element element) { | 82 void registerStaticUse(Element element) { |
83 world.registerStaticUse(element); | 83 world.registerStaticUse(element); |
84 } | 84 } |
85 | 85 |
86 void registerDynamicInvocation(Selector selector) { | 86 void registerDynamicInvocation(Selector selector) { |
87 world.registerDynamicInvocation(currentElement, selector); | 87 world.registerDynamicInvocation(selector); |
| 88 compiler.dumpInfoTask.elementUsesSelector(currentElement, selector); |
88 } | 89 } |
89 | 90 |
90 void registerDynamicSetter(Selector selector) { | 91 void registerDynamicSetter(Selector selector) { |
91 world.registerDynamicSetter(currentElement, selector); | 92 world.registerDynamicSetter(selector); |
| 93 compiler.dumpInfoTask.elementUsesSelector(currentElement, selector); |
92 } | 94 } |
93 | 95 |
94 void registerDynamicGetter(Selector selector) { | 96 void registerDynamicGetter(Selector selector) { |
95 world.registerDynamicGetter(currentElement, selector); | 97 world.registerDynamicGetter(selector); |
| 98 compiler.dumpInfoTask.elementUsesSelector(currentElement, selector); |
96 } | 99 } |
97 | 100 |
98 void registerGetterForSuperMethod(Element element) { | 101 void registerGetterForSuperMethod(Element element) { |
99 world.registerGetterForSuperMethod(element); | 102 world.registerGetterForSuperMethod(element); |
100 } | 103 } |
101 | 104 |
102 void registerFieldGetter(Element element) { | 105 void registerFieldGetter(Element element) { |
103 world.registerFieldGetter(element); | 106 world.registerFieldGetter(element); |
104 } | 107 } |
105 | 108 |
(...skipping 18 matching lines...) Expand all Loading... |
124 | 127 |
125 void registerGenericClosure(FunctionElement element) { | 128 void registerGenericClosure(FunctionElement element) { |
126 backend.registerGenericClosure(element, world, this); | 129 backend.registerGenericClosure(element, world, this); |
127 } | 130 } |
128 | 131 |
129 void registerGetOfStaticFunction(FunctionElement element) { | 132 void registerGetOfStaticFunction(FunctionElement element) { |
130 world.registerGetOfStaticFunction(element); | 133 world.registerGetOfStaticFunction(element); |
131 } | 134 } |
132 | 135 |
133 void registerSelectorUse(Selector selector) { | 136 void registerSelectorUse(Selector selector) { |
134 world.registerSelectorUse(currentElement, selector); | 137 world.registerSelectorUse(selector); |
135 } | 138 } |
136 | 139 |
137 void registerFactoryWithTypeArguments() { | 140 void registerFactoryWithTypeArguments() { |
138 world.registerFactoryWithTypeArguments(this); | 141 world.registerFactoryWithTypeArguments(this); |
139 } | 142 } |
140 | 143 |
141 void registerConstSymbol(String name) { | 144 void registerConstSymbol(String name) { |
142 backend.registerConstSymbol(name, this); | 145 backend.registerConstSymbol(name, this); |
143 } | 146 } |
144 | 147 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 /** | 309 /** |
307 * Call this to register that the [:runtimeType:] property has been accessed. | 310 * Call this to register that the [:runtimeType:] property has been accessed. |
308 */ | 311 */ |
309 void registerRuntimeType(Enqueuer enqueuer, Registry registry) {} | 312 void registerRuntimeType(Enqueuer enqueuer, Registry registry) {} |
310 | 313 |
311 /** | 314 /** |
312 * Call this method to enable [noSuchMethod] handling in the | 315 * Call this method to enable [noSuchMethod] handling in the |
313 * backend. | 316 * backend. |
314 */ | 317 */ |
315 void enableNoSuchMethod(Element context, Enqueuer enqueuer) { | 318 void enableNoSuchMethod(Element context, Enqueuer enqueuer) { |
316 enqueuer.registerInvocation(null, compiler.noSuchMethodSelector); | 319 enqueuer.registerInvocation(compiler.noSuchMethodSelector); |
317 } | 320 } |
318 | 321 |
319 /// Call this method to enable support for isolates. | 322 /// Call this method to enable support for isolates. |
320 void enableIsolateSupport(Enqueuer enqueuer) {} | 323 void enableIsolateSupport(Enqueuer enqueuer) {} |
321 | 324 |
322 void registerRequiredType(DartType type, Element enclosingElement) {} | 325 void registerRequiredType(DartType type, Element enclosingElement) {} |
323 void registerClassUsingVariableExpression(ClassElement cls) {} | 326 void registerClassUsingVariableExpression(ClassElement cls) {} |
324 | 327 |
325 void registerConstSymbol(String name, Registry registry) {} | 328 void registerConstSymbol(String name, Registry registry) {} |
326 void registerNewSymbol(Registry registry) {} | 329 void registerNewSymbol(Registry registry) {} |
(...skipping 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2068 static NullSink outputProvider(String name, String extension) { | 2071 static NullSink outputProvider(String name, String extension) { |
2069 return new NullSink('$name.$extension'); | 2072 return new NullSink('$name.$extension'); |
2070 } | 2073 } |
2071 } | 2074 } |
2072 | 2075 |
2073 /// Information about suppressed warnings and hints for a given library. | 2076 /// Information about suppressed warnings and hints for a given library. |
2074 class SuppressionInfo { | 2077 class SuppressionInfo { |
2075 int warnings = 0; | 2078 int warnings = 0; |
2076 int hints = 0; | 2079 int hints = 0; |
2077 } | 2080 } |
OLD | NEW |