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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 12280012: Apply Issue 12253048: "Add back --disallow-unsafe-eval for M3. This flag will be temporarily disabl… (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 7 years, 10 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 part of js_backend; 5 part of js_backend;
6 6
7 typedef void Recompile(Element element); 7 typedef void Recompile(Element element);
8 8
9 class ReturnInfo { 9 class ReturnInfo {
10 HType returnType; 10 HType returnType;
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 invalidateAfterCodegen = new List<Element>(), 723 invalidateAfterCodegen = new List<Element>(),
724 usedInterceptors = new Set<Selector>(), 724 usedInterceptors = new Set<Selector>(),
725 oneShotInterceptors = new Set<Selector>(), 725 oneShotInterceptors = new Set<Selector>(),
726 interceptedElements = new Map<SourceString, Set<Element>>(), 726 interceptedElements = new Map<SourceString, Set<Element>>(),
727 rti = new RuntimeTypeInformation(compiler), 727 rti = new RuntimeTypeInformation(compiler),
728 specializedGetInterceptors = 728 specializedGetInterceptors =
729 new Map<String, Collection<ClassElement>>(), 729 new Map<String, Collection<ClassElement>>(),
730 interceptedClasses = new LinkedHashMap<ClassElement, ClassElement>(), 730 interceptedClasses = new LinkedHashMap<ClassElement, ClassElement>(),
731 super(compiler, JAVA_SCRIPT_CONSTANT_SYSTEM) { 731 super(compiler, JAVA_SCRIPT_CONSTANT_SYSTEM) {
732 emitter = disableEval 732 emitter = disableEval
733 // TODO(8522): Restore --disallow-unsafe-eval. 733 ? new CodeEmitterNoEvalTask(compiler, namer, generateSourceMap)
734 ? null // new CodeEmitterNoEvalTask(compiler, namer, generateSourceMap)
735 : new CodeEmitterTask(compiler, namer, generateSourceMap); 734 : new CodeEmitterTask(compiler, namer, generateSourceMap);
736 builder = new SsaBuilderTask(this); 735 builder = new SsaBuilderTask(this);
737 optimizer = new SsaOptimizerTask(this); 736 optimizer = new SsaOptimizerTask(this);
738 generator = new SsaCodeGeneratorTask(this); 737 generator = new SsaCodeGeneratorTask(this);
739 argumentTypes = new ArgumentTypesRegistry(this); 738 argumentTypes = new ArgumentTypesRegistry(this);
740 fieldTypes = new FieldTypesRegistry(this); 739 fieldTypes = new FieldTypesRegistry(this);
741 } 740 }
742 741
743 static Namer determineNamer(Compiler compiler) { 742 static Namer determineNamer(Compiler compiler) {
744 return compiler.enableMinification ? 743 return compiler.enableMinification ?
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 * 1256 *
1258 * Invariant: [element] must be a declaration element. 1257 * Invariant: [element] must be a declaration element.
1259 */ 1258 */
1260 void eagerRecompile(Element element) { 1259 void eagerRecompile(Element element) {
1261 assert(invariant(element, element.isDeclaration)); 1260 assert(invariant(element, element.isDeclaration));
1262 generatedCode.remove(element); 1261 generatedCode.remove(element);
1263 generatedBailoutCode.remove(element); 1262 generatedBailoutCode.remove(element);
1264 compiler.enqueuer.codegen.addToWorkList(element); 1263 compiler.enqueuer.codegen.addToWorkList(element);
1265 } 1264 }
1266 } 1265 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698