| 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 registerNewSelector(setterName, | 387 registerNewSelector(setterName, |
| 388 new TypedSelector(type, setter), | 388 new TypedSelector(type, setter), |
| 389 universe.fieldSetters); | 389 universe.fieldSetters); |
| 390 }); | 390 }); |
| 391 } | 391 } |
| 392 | 392 |
| 393 void registerIsCheck(DartType type) { | 393 void registerIsCheck(DartType type) { |
| 394 universe.isChecks.add(type); | 394 universe.isChecks.add(type); |
| 395 } | 395 } |
| 396 | 396 |
| 397 void registerJsCall(Send node, ResolverVisitor resolver) { |
| 398 nativeEnqueuer.registerJsCall(node, resolver); |
| 399 } |
| 400 |
| 401 |
| 397 void forEach(f(WorkItem work)) { | 402 void forEach(f(WorkItem work)) { |
| 398 while (!queue.isEmpty) { | 403 while (!queue.isEmpty) { |
| 399 f(queue.removeLast()); // TODO(kasperl): Why isn't this removeFirst? | 404 f(queue.removeLast()); // TODO(kasperl): Why isn't this removeFirst? |
| 400 } | 405 } |
| 401 } | 406 } |
| 402 | 407 |
| 403 String toString() => 'Enqueuer($name)'; | 408 String toString() => 'Enqueuer($name)'; |
| 404 | 409 |
| 405 void logSummary(log(message)) { | 410 void logSummary(log(message)) { |
| 406 log(isResolutionQueue | 411 log(isResolutionQueue |
| 407 ? 'Resolved ${resolvedElements.length} elements.' | 412 ? 'Resolved ${resolvedElements.length} elements.' |
| 408 : 'Compiled ${universe.generatedCode.length} methods.'); | 413 : 'Compiled ${universe.generatedCode.length} methods.'); |
| 409 nativeEnqueuer.logSummary(log); | 414 nativeEnqueuer.logSummary(log); |
| 410 } | 415 } |
| 411 } | 416 } |
| OLD | NEW |