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

Unified Diff: pkg/compiler/lib/src/js_backend/element_strategy.dart

Issue 2999723002: Add stub versions of KernelInferrerEngine and friends (Closed)
Patch Set: Updated cf. comments 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
Index: pkg/compiler/lib/src/js_backend/element_strategy.dart
diff --git a/pkg/compiler/lib/src/js_backend/element_strategy.dart b/pkg/compiler/lib/src/js_backend/element_strategy.dart
index e50e5249cae8ebe4dabe6a266ca553d836fd90cf..e1c77da66b15e5d6799a055880bce5316d14a7f8 100644
--- a/pkg/compiler/lib/src/js_backend/element_strategy.dart
+++ b/pkg/compiler/lib/src/js_backend/element_strategy.dart
@@ -13,6 +13,7 @@ import '../common/work.dart';
import '../compiler.dart';
import '../elements/elements.dart';
import '../enqueue.dart';
+import '../inferrer/type_graph_inferrer.dart' show AstTypeGraphInferrer;
import '../io/multi_information.dart' show MultiSourceInformationStrategy;
import '../io/position_information.dart' show PositionSourceInformationStrategy;
import '../io/source_information.dart';
@@ -26,6 +27,7 @@ import '../resolution/resolution_strategy.dart';
import '../ssa/builder.dart';
import '../ssa/rasta_ssa_builder_task.dart';
import '../ssa/ssa.dart';
+import '../types/types.dart';
import '../options.dart';
import '../universe/world_builder.dart';
import '../universe/world_impact.dart';
@@ -105,6 +107,14 @@ class ElementBackendStrategy extends ComputeSpannableMixin
return const StartEndSourceInformationStrategy();
}
}
+
+ @override
+ TypesInferrer createTypesInferrer(ClosedWorldRefiner closedWorldRefiner,
+ {bool disableTypeInference: false}) {
+ return new AstTypeGraphInferrer(
+ _compiler, closedWorldRefiner.closedWorld, closedWorldRefiner,
+ disableTypeInference: disableTypeInference);
+ }
}
/// Builder that creates the work item necessary for the code generation of a
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart ('k') | pkg/compiler/lib/src/js_model/js_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698