| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 }); | 316 }); |
| 317 } | 317 } |
| 318 | 318 |
| 319 // TODO(ngeoffray): This should get a type. | 319 // TODO(ngeoffray): This should get a type. |
| 320 void registerIsCheck(Element element) { | 320 void registerIsCheck(Element element) { |
| 321 universe.isChecks.add(element); | 321 universe.isChecks.add(element); |
| 322 } | 322 } |
| 323 | 323 |
| 324 void forEach(f(WorkItem work)) { | 324 void forEach(f(WorkItem work)) { |
| 325 while (!queue.isEmpty()) { | 325 while (!queue.isEmpty()) { |
| 326 f(queue.removeLast()); | 326 do { |
| 327 f(queue.removeLast()); |
| 328 } while (!queue.isEmpty()); |
| 329 // TODO(ahe): we shouldn't register the field closure invocations here. |
| 330 registerFieldClosureInvocations(); |
| 327 } | 331 } |
| 328 } | 332 } |
| 329 } | 333 } |
| OLD | NEW |