c53054b9a8
Closures are all invoked dynamically when dynamic modules are enabled so we can skip most of the closure representation logic. However, we still need to handle instantiation of type parameters. Previously we had only one representation for all generic functions. However, the instantiation logic is dependent on the number of type parameters. So we update this to have one representation per type parameter count. Fixes: https://github.com/dart-lang/sdk/issues/62592 Change-Id: I5ec1468e1f366ffe4db9b339f777e7de98efe12c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/479800 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Nate Biggs <natebiggs@google.com>