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

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

Issue 12388018: Re-enable support for --disallow-unsafe-eval. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review feedback. Created 7 years, 9 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 invalidateAfterCodegen = new List<Element>(), 731 invalidateAfterCodegen = new List<Element>(),
732 usedInterceptors = new Set<Selector>(), 732 usedInterceptors = new Set<Selector>(),
733 oneShotInterceptors = new Map<String, Selector>(), 733 oneShotInterceptors = new Map<String, Selector>(),
734 interceptedElements = new Map<SourceString, Set<Element>>(), 734 interceptedElements = new Map<SourceString, Set<Element>>(),
735 rti = new RuntimeTypeInformation(compiler), 735 rti = new RuntimeTypeInformation(compiler),
736 specializedGetInterceptors = 736 specializedGetInterceptors =
737 new Map<String, Collection<ClassElement>>(), 737 new Map<String, Collection<ClassElement>>(),
738 interceptedClasses = new LinkedHashMap<ClassElement, ClassElement>(), 738 interceptedClasses = new LinkedHashMap<ClassElement, ClassElement>(),
739 super(compiler, JAVA_SCRIPT_CONSTANT_SYSTEM) { 739 super(compiler, JAVA_SCRIPT_CONSTANT_SYSTEM) {
740 emitter = disableEval 740 emitter = disableEval
741 // TODO(8522): Restore --disallow-unsafe-eval. 741 ? new CodeEmitterNoEvalTask(compiler, namer, generateSourceMap)
742 ? null // new CodeEmitterNoEvalTask(compiler, namer, generateSourceMap)
743 : new CodeEmitterTask(compiler, namer, generateSourceMap); 742 : new CodeEmitterTask(compiler, namer, generateSourceMap);
744 builder = new SsaBuilderTask(this); 743 builder = new SsaBuilderTask(this);
745 optimizer = new SsaOptimizerTask(this); 744 optimizer = new SsaOptimizerTask(this);
746 generator = new SsaCodeGeneratorTask(this); 745 generator = new SsaCodeGeneratorTask(this);
747 argumentTypes = new ArgumentTypesRegistry(this); 746 argumentTypes = new ArgumentTypesRegistry(this);
748 fieldTypes = new FieldTypesRegistry(this); 747 fieldTypes = new FieldTypesRegistry(this);
749 } 748 }
750 749
751 static Namer determineNamer(Compiler compiler) { 750 static Namer determineNamer(Compiler compiler) {
752 return compiler.enableMinification ? 751 return compiler.enableMinification ?
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 * 1497 *
1499 * Invariant: [element] must be a declaration element. 1498 * Invariant: [element] must be a declaration element.
1500 */ 1499 */
1501 void eagerRecompile(Element element) { 1500 void eagerRecompile(Element element) {
1502 assert(invariant(element, element.isDeclaration)); 1501 assert(invariant(element, element.isDeclaration));
1503 generatedCode.remove(element); 1502 generatedCode.remove(element);
1504 generatedBailoutCode.remove(element); 1503 generatedBailoutCode.remove(element);
1505 compiler.enqueuer.codegen.addToWorkList(element); 1504 compiler.enqueuer.codegen.addToWorkList(element);
1506 } 1505 }
1507 } 1506 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698