Uh oh!
There was an error while loading. Please reload this page.
[Mono] added simple reverse pinvoke support to interpreter - #102185
Conversation
| imethod->swift_error_offset = -1; | ||
| MonoClass *swift_error = mono_class_try_get_swift_error_class (); | ||
| MonoClass *swift_error_ptr = mono_class_create_ptr (m_class_get_this_arg (swift_error)); | ||
| int swift_error_index = -1; | ||
| for (int i = 0; i < sig->param_count; i++) { | ||
| MonoClass *klass = mono_class_from_mono_type_internal (sig->params [i]); | ||
| if (klass == swift_error_ptr) { | ||
| swift_error_index = i; | ||
| break; | ||
| } | ||
| } |
There was a problem hiding this comment.
We could probably hardcode type and allocate this variable without checking whether SwiftError* exists on signature
There was a problem hiding this comment.
Sounds good. It can allocate a variable for SwiftError* if a signature is CallConvSwift.
There was a problem hiding this comment.
I got rid of the loop as you suggested. I don't think there is a significant benefit of hardcoding it now. What you think?
a135604 to
232d512CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jkurdek
commented
May 15, 2024
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jkurdek
commented
May 16, 2024
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jkurdek
commented
May 16, 2024
Verified that using |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Adds simple (no structs) Swift reverse pinvoke support to mono interpreter.