LibWeb+LibGC: Import GC swift module into LibWeb and an initial user

Start work on a speculative HTML Parser in Swift. This component will
walk ahead of the normal HTML parser looking for fetch() requests to
make while the normal parser is blocked. This work exposed many holes in
the Swift C++ interop component, which have been reported upstream.
This commit is contained in:
Andrew Kaster 2025-03-22 19:12:30 -06:00 committed by Andrew Kaster
commit 9ee2473aa4
Notes: github-actions[bot] 2025-04-03 22:49:20 +00:00
5 changed files with 70 additions and 4 deletions

View file

@ -999,7 +999,8 @@ if (ENABLE_SWIFT)
HTML/Parser/HTMLToken.swift
HTML/Parser/HTMLTokenizer.swift
HTML/Parser/HTMLTokenizerHelpers.cpp
HTML/Parser/SpeculativeHTMLParser.swift
)
target_link_libraries(LibWeb PRIVATE AK Collections)
add_swift_target_properties(LibWeb LAGOM_LIBRARIES AK LibGfx)
add_swift_target_properties(LibWeb LAGOM_LIBRARIES AK LibGfx LibGC COMPILE_DEFINITIONS LIBGC_WORKAROUND_BOOL_BITFIELD)
endif()