| 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 class EnqueueTask extends CompilerTask { | 5 class EnqueueTask extends CompilerTask { |
| 6 final Enqueuer codegen; | 6 final Enqueuer codegen; |
| 7 final Enqueuer resolution; | 7 final Enqueuer resolution; |
| 8 | 8 |
| 9 String get name => 'Enqueue'; | 9 String get name => 'Enqueue'; |
| 10 | 10 |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 universe.isChecks.add(type); | 352 universe.isChecks.add(type); |
| 353 } | 353 } |
| 354 | 354 |
| 355 void forEach(f(WorkItem work)) { | 355 void forEach(f(WorkItem work)) { |
| 356 while (!queue.isEmpty()) { | 356 while (!queue.isEmpty()) { |
| 357 f(queue.removeLast()); // TODO(kasperl): Why isn't this removeFirst? | 357 f(queue.removeLast()); // TODO(kasperl): Why isn't this removeFirst? |
| 358 } | 358 } |
| 359 } | 359 } |
| 360 | 360 |
| 361 String toString() => 'Enqueuer($name)'; | 361 String toString() => 'Enqueuer($name)'; |
| 362 |
| 363 registerUsedSelector(Selector selector) { |
| 364 Element interceptor = compiler.backend.getInterceptor(selector); |
| 365 if (interceptor != null) { |
| 366 registerStaticUse(interceptor); |
| 367 } |
| 368 } |
| 362 } | 369 } |
| OLD | NEW |