Commit Graph

3 Commits

Author SHA1 Message Date
Yuta Saito
5a40933a93 [Runtime] Fix AbsoluteFuncPtr to allow template parameter inference
`AbsoluteFunctionPointer` was not able to be passed to a function that
takes a `TargetCompactFunctionPointer` because the template parameters
`Nullable` and `Offset` were not parameterized by `AbsoluteFunctionPointer`.

29c350e813 introduced the first such
function `InProcessReaderWriter::resolveFunctionPointer` and it revealed
this issue.
2024-01-12 14:48:07 +00:00
Yuta Saito
dc176f3a0d [Runtime] NFC: Use std::invoke_result instead of deprecated std::result_of 2023-10-19 22:17:47 +00:00
Yuta Saito
8c598e98f7 [Wasm][Runtime] Interpret absolute function pointer in runtime structures
When SWIFT_COMPACT_ABSOLUTE_FUNCTION_POINTER is enabled, relative direct
pointers whose pointees are functions will be turned into absolute
pointer at compile-time.
2022-04-02 04:32:41 +00:00