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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 703083002: --trust-primitives: Remove bounds checks and receiver and argument type checks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 new ResolutionRegistry.internal(null, new TreeElementMapping(null)); 645 new ResolutionRegistry.internal(null, new TreeElementMapping(null));
646 646
647 final bool enableMinification; 647 final bool enableMinification;
648 648
649 /// When `true` emits URIs in the reflection metadata. 649 /// When `true` emits URIs in the reflection metadata.
650 final bool preserveUris; 650 final bool preserveUris;
651 651
652 final bool enableTypeAssertions; 652 final bool enableTypeAssertions;
653 final bool enableUserAssertions; 653 final bool enableUserAssertions;
654 final bool trustTypeAnnotations; 654 final bool trustTypeAnnotations;
655 final bool trustPrimitives;
655 final bool enableConcreteTypeInference; 656 final bool enableConcreteTypeInference;
656 final bool disableTypeInferenceFlag; 657 final bool disableTypeInferenceFlag;
657 final bool dumpInfo; 658 final bool dumpInfo;
658 final bool useContentSecurityPolicy; 659 final bool useContentSecurityPolicy;
659 660
660 /** 661 /**
661 * The maximum size of a concrete type before it widens to dynamic during 662 * The maximum size of a concrete type before it widens to dynamic during
662 * concrete type inference. 663 * concrete type inference.
663 */ 664 */
664 final int maxConcreteTypeSize; 665 final int maxConcreteTypeSize;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 bool compilationFailed = false; 934 bool compilationFailed = false;
934 935
935 bool hasCrashed = false; 936 bool hasCrashed = false;
936 937
937 /// Set by the backend if real reflection is detected in use of dart:mirrors. 938 /// Set by the backend if real reflection is detected in use of dart:mirrors.
938 bool disableTypeInferenceForMirrors = false; 939 bool disableTypeInferenceForMirrors = false;
939 940
940 Compiler({this.enableTypeAssertions: false, 941 Compiler({this.enableTypeAssertions: false,
941 this.enableUserAssertions: false, 942 this.enableUserAssertions: false,
942 this.trustTypeAnnotations: false, 943 this.trustTypeAnnotations: false,
944 this.trustPrimitives: false,
943 this.enableConcreteTypeInference: false, 945 this.enableConcreteTypeInference: false,
944 bool disableTypeInferenceFlag: false, 946 bool disableTypeInferenceFlag: false,
945 this.maxConcreteTypeSize: 5, 947 this.maxConcreteTypeSize: 5,
946 this.enableMinification: false, 948 this.enableMinification: false,
947 this.preserveUris: false, 949 this.preserveUris: false,
948 this.enableNativeLiveTypeAnalysis: false, 950 this.enableNativeLiveTypeAnalysis: false,
949 bool emitJavaScript: true, 951 bool emitJavaScript: true,
950 bool dart2dartMultiFile: false, 952 bool dart2dartMultiFile: false,
951 bool generateSourceMap: true, 953 bool generateSourceMap: true,
952 bool analyzeAllFlag: false, 954 bool analyzeAllFlag: false,
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
2175 int warnings = 0; 2177 int warnings = 0;
2176 int hints = 0; 2178 int hints = 0;
2177 } 2179 }
2178 2180
2179 class GenericTask extends CompilerTask { 2181 class GenericTask extends CompilerTask {
2180 final String name; 2182 final String name;
2181 2183
2182 GenericTask(this.name, Compiler compiler) 2184 GenericTask(this.name, Compiler compiler)
2183 : super(compiler); 2185 : super(compiler);
2184 } 2186 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698