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

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

Issue 2380573004: kernel->ssa: implement assert statements (Closed)
Patch Set: remove todo after discussion Created 4 years, 3 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/compiler/lib/src/ssa/graph_builder.dart ('k') | tests/compiler/dart2js/kernel/assert_test.dart » ('j') | 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 86aee00033e96b6efae6aca5aa52479642bf262c..0b54193ad356ab74e563f6de983d88c93ca8e20f 100644
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
@@ -255,6 +255,23 @@ class KernelAstAdapter {
TypeMaskFactory.inferredReturnTypeForElement(
_backend.helpers.checkConcurrentModificationError, _compiler);
+ ir.Procedure get assertHelper =>
+ kernel.functions[_backend.helpers.assertHelper];
+
+ TypeMask get assertHelperReturnType => TypeMaskFactory
+ .inferredReturnTypeForElement(_backend.helpers.assertHelper, _compiler);
+
+ ir.Procedure get assertTest => kernel.functions[_backend.helpers.assertTest];
+
+ TypeMask get assertTestReturnType => TypeMaskFactory
+ .inferredReturnTypeForElement(_backend.helpers.assertTest, _compiler);
+
+ ir.Procedure get assertThrow =>
+ kernel.functions[_backend.helpers.assertThrow];
+
+ TypeMask get assertThrowReturnType => TypeMaskFactory
+ .inferredReturnTypeForElement(_backend.helpers.assertThrow, _compiler);
+
DartType getDartType(ir.DartType type) {
return type.accept(_typeConverter);
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/graph_builder.dart ('k') | tests/compiler/dart2js/kernel/assert_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698