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

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

Issue 1180973003: dart2js cps: Support function types in 'is' and 'as' operators. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update doc comment for TypeCast Created 5 years, 6 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/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 6c2e126ca890bd53239698b05f65c12321daea08..e037ff376d1b22f1561d66a128f0f6790b83cff1 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -1185,6 +1185,14 @@ class JavaScriptBackend extends Backend {
}
}
+ /// Call during codegen if an instance of [closure] is being created.
+ void registerInstantiatedClosure(LocalFunctionElement closure,
+ CodegenRegistry registry) {
+ if (methodNeedsRti(closure)) {
+ registerComputeSignature(compiler.enqueuer.codegen, registry);
+ }
+ }
+
void registerBoundClosure(Enqueuer enqueuer) {
boundClosureClass.ensureResolved(compiler);
enqueuer.registerInstantiatedType(
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698