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

Unified Diff: pkg/kernel/lib/target/targets.dart

Issue 2962913002: Create an option to disable type inference and type promotion. (Closed)
Patch Set: Created 3 years, 6 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 | « pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/target/targets.dart
diff --git a/pkg/kernel/lib/target/targets.dart b/pkg/kernel/lib/target/targets.dart
index 7389dc073975ac9726a1db5356a3e626a9a70199..c47c117fe972d1c61487e542d1d93fa44f648396 100644
--- a/pkg/kernel/lib/target/targets.dart
+++ b/pkg/kernel/lib/target/targets.dart
@@ -69,6 +69,13 @@ abstract class Target {
bool get strongMode;
+ /// A derived class may change this to `true` to disable type inference and
+ /// type promotion phases of analysis.
+ ///
+ /// This is intended for profiling, to ensure that type inference and type
+ /// promotion do not slow down compilation too much.
+ bool get disableTypeInference => false;
+
/// If true, the SDK should be loaded in strong mode.
bool get strongModeSdk => strongMode;
« no previous file with comments | « pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698