| 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; | |
| 6 | |
| 7 class EnqueueTask extends CompilerTask { | 5 class EnqueueTask extends CompilerTask { |
| 8 final Enqueuer codegen; | 6 final Enqueuer codegen; |
| 9 final Enqueuer resolution; | 7 final Enqueuer resolution; |
| 10 | 8 |
| 11 String get name => 'Enqueue'; | 9 String get name => 'Enqueue'; |
| 12 | 10 |
| 13 EnqueueTask(Compiler compiler) | 11 EnqueueTask(Compiler compiler) |
| 14 : codegen = new Enqueuer('codegen enqueuer', compiler, | 12 : codegen = new Enqueuer('codegen enqueuer', compiler, |
| 15 compiler.backend.createItemCompilationContext), | 13 compiler.backend.createItemCompilationContext), |
| 16 resolution = new Enqueuer('resolution enqueuer', compiler, | 14 resolution = new Enqueuer('resolution enqueuer', compiler, |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 | 362 |
| 365 String toString() => 'Enqueuer($name)'; | 363 String toString() => 'Enqueuer($name)'; |
| 366 | 364 |
| 367 registerUsedSelector(Selector selector) { | 365 registerUsedSelector(Selector selector) { |
| 368 Element interceptor = compiler.backend.getInterceptor(selector); | 366 Element interceptor = compiler.backend.getInterceptor(selector); |
| 369 if (interceptor != null) { | 367 if (interceptor != null) { |
| 370 registerStaticUse(interceptor); | 368 registerStaticUse(interceptor); |
| 371 } | 369 } |
| 372 } | 370 } |
| 373 } | 371 } |
| OLD | NEW |