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

Unified Diff: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart

Issue 2538643002: Handle "as" in kernel with ir.AsExpression case. (Closed)
Patch Set: . Created 4 years, 1 month 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/compiler/lib/src/ssa/builder_kernel.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6d8943de579119ce2f1695bd85298ff815273a91..07c515c3a0388e23df5a1effbff2cd586e67c69f 100644
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
@@ -318,6 +318,9 @@ class KernelAstAdapter {
ir.Procedure get assertHelper =>
kernel.functions[_backend.helpers.assertHelper];
+ TypeMask get throwTypeErrorType => TypeMaskFactory
+ .inferredReturnTypeForElement(_backend.helpers.throwTypeError, _compiler);
+
TypeMask get assertHelperReturnType => TypeMaskFactory
.inferredReturnTypeForElement(_backend.helpers.assertHelper, _compiler);
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698