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

Side by Side Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 1376113002: dart2js: Remove ConcreteTypeInference (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « tests/compiler/dart2js/cpa_inference_test.dart ('k') | no next file » | 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 library mock_compiler; 5 library mock_compiler;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 final Map<String, SourceFile> sourceFiles; 69 final Map<String, SourceFile> sourceFiles;
70 Node parsedTree; 70 Node parsedTree;
71 final String testedPatchVersion; 71 final String testedPatchVersion;
72 final LibrarySourceProvider librariesOverride; 72 final LibrarySourceProvider librariesOverride;
73 73
74 MockCompiler.internal( 74 MockCompiler.internal(
75 {Map<String, String> coreSource, 75 {Map<String, String> coreSource,
76 bool enableTypeAssertions: false, 76 bool enableTypeAssertions: false,
77 bool enableUserAssertions: false, 77 bool enableUserAssertions: false,
78 bool enableMinification: false, 78 bool enableMinification: false,
79 bool enableConcreteTypeInference: false,
80 int maxConcreteTypeSize: 5, 79 int maxConcreteTypeSize: 5,
81 bool disableTypeInference: false, 80 bool disableTypeInference: false,
82 bool analyzeAll: false, 81 bool analyzeAll: false,
83 bool analyzeOnly: false, 82 bool analyzeOnly: false,
84 bool emitJavaScript: true, 83 bool emitJavaScript: true,
85 bool preserveComments: false, 84 bool preserveComments: false,
86 // Our unit tests check code generation output that is 85 // Our unit tests check code generation output that is
87 // affected by inlining support. 86 // affected by inlining support.
88 bool disableInlining: true, 87 bool disableInlining: true,
89 bool trustTypeAnnotations: false, 88 bool trustTypeAnnotations: false,
90 bool enableAsyncAwait: false, 89 bool enableAsyncAwait: false,
91 int this.expectedWarnings, 90 int this.expectedWarnings,
92 int this.expectedErrors, 91 int this.expectedErrors,
93 api.CompilerOutputProvider outputProvider, 92 api.CompilerOutputProvider outputProvider,
94 String patchVersion, 93 String patchVersion,
95 LibrarySourceProvider this.librariesOverride}) 94 LibrarySourceProvider this.librariesOverride})
96 : sourceFiles = new Map<String, SourceFile>(), 95 : sourceFiles = new Map<String, SourceFile>(),
97 testedPatchVersion = patchVersion, 96 testedPatchVersion = patchVersion,
98 super(enableTypeAssertions: enableTypeAssertions, 97 super(enableTypeAssertions: enableTypeAssertions,
99 enableUserAssertions: enableUserAssertions, 98 enableUserAssertions: enableUserAssertions,
100 enableAssertMessage: true, 99 enableAssertMessage: true,
101 enableMinification: enableMinification, 100 enableMinification: enableMinification,
102 enableConcreteTypeInference: enableConcreteTypeInference,
103 maxConcreteTypeSize: maxConcreteTypeSize, 101 maxConcreteTypeSize: maxConcreteTypeSize,
104 disableTypeInferenceFlag: disableTypeInference, 102 disableTypeInferenceFlag: disableTypeInference,
105 analyzeAllFlag: analyzeAll, 103 analyzeAllFlag: analyzeAll,
106 analyzeOnly: analyzeOnly, 104 analyzeOnly: analyzeOnly,
107 emitJavaScript: emitJavaScript, 105 emitJavaScript: emitJavaScript,
108 preserveComments: preserveComments, 106 preserveComments: preserveComments,
109 trustTypeAnnotations: trustTypeAnnotations, 107 trustTypeAnnotations: trustTypeAnnotations,
110 showPackageWarnings: true, 108 showPackageWarnings: true,
111 outputProvider: new LegacyCompilerOutput(outputProvider)) { 109 outputProvider: new LegacyCompilerOutput(outputProvider)) {
112 this.disableInlining = disableInlining; 110 this.disableInlining = disableInlining;
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 trustTypeAnnotations: trustTypeAnnotations, 465 trustTypeAnnotations: trustTypeAnnotations,
468 enableTypeAssertions: enableTypeAssertions, 466 enableTypeAssertions: enableTypeAssertions,
469 enableUserAssertions: enableUserAssertions, 467 enableUserAssertions: enableUserAssertions,
470 expectedErrors: expectedErrors, 468 expectedErrors: expectedErrors,
471 expectedWarnings: expectedWarnings, 469 expectedWarnings: expectedWarnings,
472 outputProvider: outputProvider); 470 outputProvider: outputProvider);
473 compiler.registerSource(uri, code); 471 compiler.registerSource(uri, code);
474 compiler.diagnosticHandler = createHandler(compiler, code); 472 compiler.diagnosticHandler = createHandler(compiler, code);
475 return compiler; 473 return compiler;
476 } 474 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/cpa_inference_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698