Commit bca175c
authored
Handle Generic Context Arg in runtime implementation of signature key computation (#128171)
> [!NOTE]
> PR description generated with AI assistance.
Fixes issue where methods with generic instantiation arguments cannot be
called from managed code if they are called from R2R code.
The WASM signature key computation in `helpers.cpp` was not accounting
for `HasGenericContextArg()`, which meant that methods requiring a
generic instantiation context (hidden argument) would produce an
incorrect signature key. This caused call mismatches when managed code
invoked R2R-compiled methods with generic context.
The fix adds a check for `HasGenericContextArg()` and appends the
appropriate `'i'` (integer/pointer) parameter to the signature key
buffer, matching the actual calling convention.1 parent a4e4aee commit bca175c
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
950 | 957 | | |
951 | 958 | | |
952 | 959 | | |
| |||
0 commit comments