| 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 ResolutionEnqueuer resolution; | 8 final ResolutionEnqueuer resolution; |
| 9 final CodegenEnqueuer codegen; | 9 final CodegenEnqueuer codegen; |
| 10 | 10 |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 * If a factory constructor is used with type arguments, we lose track | 488 * If a factory constructor is used with type arguments, we lose track |
| 489 * which arguments could be used to create instances of classes that use their | 489 * which arguments could be used to create instances of classes that use their |
| 490 * type variables as expressions, so we have to remember if we saw such a use. | 490 * type variables as expressions, so we have to remember if we saw such a use. |
| 491 */ | 491 */ |
| 492 void registerFactoryWithTypeArguments(TreeElements elements) { | 492 void registerFactoryWithTypeArguments(TreeElements elements) { |
| 493 universe.usingFactoryWithTypeArguments = true; | 493 universe.usingFactoryWithTypeArguments = true; |
| 494 } | 494 } |
| 495 | 495 |
| 496 void registerAsCheck(DartType type, TreeElements elements) { | 496 void registerAsCheck(DartType type, TreeElements elements) { |
| 497 registerIsCheck(type, elements); | 497 registerIsCheck(type, elements); |
| 498 compiler.backend.registerAsCheck(type, this, elements); | 498 compiler.backend.registerAsCheck(type, elements); |
| 499 } | 499 } |
| 500 | 500 |
| 501 void registerGenericCallMethod(Element element, TreeElements elements) { | 501 void registerGenericCallMethod(Element element, TreeElements elements) { |
| 502 compiler.backend.registerGenericCallMethod(element, this, elements); | 502 compiler.backend.registerGenericCallMethod(element, this, elements); |
| 503 universe.genericCallMethods.add(element); | 503 universe.genericCallMethods.add(element); |
| 504 } | 504 } |
| 505 | 505 |
| 506 void registerBoundClosure() { | 506 void registerBoundClosure() { |
| 507 registerInstantiatedClass(compiler.boundClosureClass, | 507 registerInstantiatedClass(compiler.boundClosureClass, |
| 508 // Precise dependency is not important here. | 508 // Precise dependency is not important here. |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 while(!queue.isEmpty) { | 725 while(!queue.isEmpty) { |
| 726 // TODO(johnniwinther): Find an optimal process order for codegen. | 726 // TODO(johnniwinther): Find an optimal process order for codegen. |
| 727 f(queue.removeLast()); | 727 f(queue.removeLast()); |
| 728 } | 728 } |
| 729 } | 729 } |
| 730 | 730 |
| 731 void _logSpecificSummary(log(message)) { | 731 void _logSpecificSummary(log(message)) { |
| 732 log('Compiled ${generatedCode.length} methods.'); | 732 log('Compiled ${generatedCode.length} methods.'); |
| 733 } | 733 } |
| 734 } | 734 } |
| OLD | NEW |