mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Currently, for each exposed interface, we generate one massive function to create every Web constructor and prototype. In an effort to lazily create these instead, this first step is to extract the creation of each of these into its own method. First, this generates a forwarding header for all IDL types. This is to allow callers to remain unchanged without forcing them to include the (very heavy) generated IDL headers. This header is included by LibWeb's forwarding header. Next, this defines a base template method on Web::Bindings::Intrinsics to create a prototype/constructor pair. Specializations of this template are now generated in a new .cpp file, IntrinsicDefinitions.cpp. The base Intrinsics class is updated to use this new method, and will continue to cache the result. Last, some WebAssembly classes are updated to use this new mechanism. They were using some ad hoc cache keys that are now in line with the generated specializations. That one massive function is still used to invoke these specializations, so they are not lazy as of this commit. |
||
---|---|---|
.. | ||
Superbuild | ||
all_the_debug_macros.cmake | ||
check_for_dependencies.cmake | ||
cmake-version.cmake | ||
code_generators.cmake | ||
common_compile_options.cmake | ||
common_options.cmake | ||
commonmark_spec.cmake | ||
flac_spec_tests.cmake | ||
jakt.cmake | ||
lagom_compile_options.cmake | ||
lagom_options.cmake | ||
lagom-install-config.cmake | ||
libgl_generators.cmake | ||
libweb_generators.cmake | ||
locale_data.cmake | ||
pnp_ids.cmake | ||
processor-count.cmake | ||
serenity_compile_options.cmake | ||
serenity_components.cmake | ||
serenity_options.cmake | ||
setup_ccache.cmake | ||
time_zone_data.cmake | ||
unicode_data.cmake | ||
utils.cmake | ||
wasm_spec_tests.cmake |