Index: pkg/compiler/lib/src/common/codegen.dart |
diff --git a/pkg/compiler/lib/src/common/codegen.dart b/pkg/compiler/lib/src/common/codegen.dart |
index 323822b1f470af3b979468aa28a9c3f34b3cbaf3..002589cd6e90d912748da6f2830e7e73b28f42ca 100644 |
--- a/pkg/compiler/lib/src/common/codegen.dart |
+++ b/pkg/compiler/lib/src/common/codegen.dart |
@@ -56,6 +56,15 @@ class CodegenRegistry extends Registry { |
CodegenEnqueuer get world => compiler.enqueuer.codegen; |
JavaScriptBackend get backend => compiler.backend; |
+ void registerAssert(bool hasMessage) { |
+ if (hasMessage) { |
+ registerStaticInvocation(backend.assertTestMethod); |
+ registerStaticInvocation(backend.assertThrowMethod); |
+ } else { |
+ registerStaticInvocation(backend.assertHelperMethod); |
+ } |
+ } |
+ |
void registerDependency(Element element) { |
treeElements.registerDependency(element); |
} |