[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.
This commit is contained in:
Yuta Saito
2022-03-30 07:48:46 +00:00
parent 26ba09738e
commit 8c598e98f7
13 changed files with 251 additions and 44 deletions

View File

@@ -269,6 +269,10 @@ function(_add_target_variant_swift_compile_flags
list(APPEND result "-D" "INTERNAL_CHECKS_ENABLED")
endif()
if(SWIFT_STDLIB_COMPACT_ABSOLUTE_FUNCTION_POINTER)
list(APPEND result "-D" "SWIFT_COMPACT_ABSOLUTE_FUNCTION_POINTER")
endif()
if(SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY)
list(APPEND result "-D" "SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY")
endif()