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

Unified Diff: pkg/compiler/lib/src/dart2js.dart

Issue 3004593002: Support enabling of type inference with useKernel (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index 34c0a996466a742b6c114314c00a78b7ca63c2bc..ac8d65a78d59a9fa40148c5a0a4678fd210314cd 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -280,6 +280,10 @@ Future<api.CompilationResult> compile(List<String> argv) {
void setPreviewDart2(String argument) {
Siggi Cherem (dart-lang) 2017/08/25 14:45:46 my fault, when I renamed "--preview-dart-2" to "--
Johnni Winther 2017/08/25 16:50:41 Done.
useKernel = true;
+ // TODO(sigmund): remove once we support inlining and type-inference
+ // with `useKernel`.
+ options.add(Flags.disableInlining);
+ options.add(Flags.disableTypeInference);
passThrough(argument);
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698