Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: lib/compiler/implementation/compiler.dart

Issue 10910088: Fix host-checked + checked by registering when a class is being instantiated, not when being proces… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/compile_time_constants.dart ('k') | lib/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698