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 class EnqueueTask extends CompilerTask { | 7 class EnqueueTask extends CompilerTask { |
8 final Enqueuer codegen; | 8 final Enqueuer codegen; |
9 final Enqueuer resolution; | 9 final Enqueuer resolution; |
10 | 10 |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 } | 397 } |
398 | 398 |
399 String toString() => 'Enqueuer($name)'; | 399 String toString() => 'Enqueuer($name)'; |
400 | 400 |
401 void logSummary(log(message)) { | 401 void logSummary(log(message)) { |
402 log(isResolutionQueue | 402 log(isResolutionQueue |
403 ? 'Resolved ${resolvedElements.length} elements.' | 403 ? 'Resolved ${resolvedElements.length} elements.' |
404 : 'Compiled ${universe.generatedCode.length} methods.'); | 404 : 'Compiled ${universe.generatedCode.length} methods.'); |
405 nativeEnqueuer.logSummary(log); | 405 nativeEnqueuer.logSummary(log); |
406 } | 406 } |
407 | |
408 registerUsedSelector(Selector selector) { | |
409 Element interceptor = compiler.backend.getInterceptor(selector); | |
410 if (interceptor != null) { | |
411 registerStaticUse(interceptor); | |
412 } | |
413 } | |
414 } | 407 } |
OLD | NEW |