| 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 | 5 |
| 6 /** | 6 /** |
| 7 * If true, print a warning for each method that was resolved, but not | 7 * If true, print a warning for each method that was resolved, but not |
| 8 * compiled. | 8 * compiled. |
| 9 */ | 9 */ |
| 10 const bool REPORT_EXCESS_RESOLUTION = false; | 10 const bool REPORT_EXCESS_RESOLUTION = false; |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 if (phase == PHASE_COMPILING) { | 714 if (phase == PHASE_COMPILING) { |
| 715 log('Compiled ${codegenWorld.generatedCode.length} methods.'); | 715 log('Compiled ${codegenWorld.generatedCode.length} methods.'); |
| 716 } else { | 716 } else { |
| 717 log('Recompiled ${world.recompilationCandidates.processed} methods.'); | 717 log('Recompiled ${world.recompilationCandidates.processed} methods.'); |
| 718 } | 718 } |
| 719 progress.reset(); | 719 progress.reset(); |
| 720 } | 720 } |
| 721 backend.codegen(work); | 721 backend.codegen(work); |
| 722 } | 722 } |
| 723 | 723 |
| 724 void registerInstantiatedClass(ClassElement cls) { | |
| 725 enqueuer.resolution.registerInstantiatedClass(cls); | |
| 726 enqueuer.codegen.registerInstantiatedClass(cls); | |
| 727 } | |
| 728 | |
| 729 DartType resolveTypeAnnotation(Element element, TypeAnnotation annotation) { | 724 DartType resolveTypeAnnotation(Element element, TypeAnnotation annotation) { |
| 730 return resolver.resolveTypeAnnotation(element, annotation); | 725 return resolver.resolveTypeAnnotation(element, annotation); |
| 731 } | 726 } |
| 732 | 727 |
| 733 FunctionSignature resolveSignature(FunctionElement element) { | 728 FunctionSignature resolveSignature(FunctionElement element) { |
| 734 return withCurrentElement(element, | 729 return withCurrentElement(element, |
| 735 () => resolver.resolveSignature(element)); | 730 () => resolver.resolveSignature(element)); |
| 736 } | 731 } |
| 737 | 732 |
| 738 FunctionSignature resolveFunctionExpression(Element element, | 733 FunctionSignature resolveFunctionExpression(Element element, |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 final endOffset = end.charOffset + end.slowCharCount; | 923 final endOffset = end.charOffset + end.slowCharCount; |
| 929 | 924 |
| 930 // [begin] and [end] might be the same for the same empty token. This | 925 // [begin] and [end] might be the same for the same empty token. This |
| 931 // happens for instance when scanning '$$'. | 926 // happens for instance when scanning '$$'. |
| 932 assert(endOffset >= beginOffset); | 927 assert(endOffset >= beginOffset); |
| 933 return f(beginOffset, endOffset); | 928 return f(beginOffset, endOffset); |
| 934 } | 929 } |
| 935 | 930 |
| 936 String toString() => 'SourceSpan($uri, $begin, $end)'; | 931 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 937 } | 932 } |
| OLD | NEW |