Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
index 8710f840ec55c9777f40d99953f7f0c12b6635c2..1f98bde14faeba20f4a8f6fec2f2daebe0a98fd5 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
@@ -255,6 +255,11 @@ class KernelAstAdapter { |
return constantValue; |
} |
+ ConstantValue getConstantForType(ir.DartType irType) { |
+ DartType type = getDartType(irType); |
+ return _backend.constantSystem.createType(_compiler, type.asRaw()); |
+ } |
+ |
bool isIntercepted(ir.Node node) { |
Selector selector = getSelector(node); |
return _backend.isInterceptedSelector(selector); |