-
Notifications
You must be signed in to change notification settings - Fork 551
[static registrar] Optimize creation of delegates for blocks. (#3623) #3644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[static registrar] Optimize creation of delegates for blocks. (#3623) #3644
Conversation
…#3623) * [static registrar] Optimize creation of delegates for blocks. Optimize creation of delegates for blocks so that it doesn't require the dynamic registrar. This is done by getting the metadata token for the Create method that creates the delegate, and embed that metadata token in the generated code from the static registrar. Also add tests, since this scenario was not covered by tests already. * [mmptest] Fix test after recent changes. * [test-libraries] Avoid duplicate symbols. * [tests] Update according to changes.
dalexsoto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a back port so might be late for my comments heh, otherwise LGTM 👍
| Objective-C code, in particular when it involves blocks, since it's quite | ||
| complicated to get it right when doing it manually. | ||
|
|
||
| If this is not the case, please file a bug at [https://bugzilla.xamarin.com](https://bugzilla.xamarin.com/enter_bug.cgi?product=Xamarin.Mac) with a test case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we still point people to bugzilla?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Objective-C code, in particular when it involves blocks, since it's quite | ||
| complicated to get it right when doing it manually. | ||
|
|
||
| If this is not the case, please file a bug at [https://bugzilla.xamarin.com](https://bugzilla.xamarin.com/enter_bug.cgi?product=iOS) with a test case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, should we still point people to bugzilla?
|
@dalexsoto #3623 was original. |
|
Build failure |
|
Test failures are unrelated:
|
Optimize creation of delegates for blocks so that it doesn't require the
dynamic registrar.
This is done by getting the metadata token for the Create method that creates
the delegate, and embed that metadata token in the generated code from the
static registrar.
Also add tests, since this scenario was not covered by tests already.
[mmptest] Fix test after recent changes.
[test-libraries] Avoid duplicate symbols.
[tests] Update according to changes.