| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 LibraryElement library, | 327 LibraryElement library, |
| 328 Type type) { | 328 Type type) { |
| 329 task.measure(() { | 329 task.measure(() { |
| 330 Selector setter = new Selector.setter(setterName, library); | 330 Selector setter = new Selector.setter(setterName, library); |
| 331 registerNewSelector(setterName, | 331 registerNewSelector(setterName, |
| 332 new TypedSelector(type, setter), | 332 new TypedSelector(type, setter), |
| 333 universe.fieldSetters); | 333 universe.fieldSetters); |
| 334 }); | 334 }); |
| 335 } | 335 } |
| 336 | 336 |
| 337 // TODO(ngeoffray): This should get a type. | 337 void registerIsCheck(Type type) { |
| 338 void registerIsCheck(Element element) { | 338 universe.isChecks.add(type); |
| 339 universe.isChecks.add(element); | |
| 340 } | 339 } |
| 341 | 340 |
| 342 void forEach(f(WorkItem work)) { | 341 void forEach(f(WorkItem work)) { |
| 343 while (!queue.isEmpty()) { | 342 while (!queue.isEmpty()) { |
| 344 f(queue.removeLast()); // TODO(kasperl): Why isn't this removeFirst? | 343 f(queue.removeLast()); // TODO(kasperl): Why isn't this removeFirst? |
| 345 } | 344 } |
| 346 } | 345 } |
| 347 } | 346 } |
| OLD | NEW |