mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
631bbcd00a
This also refactors interpreter creation to follow InitializeHostDefinedRealm, but I couldn't fit it in the title :^) This allows us to follow the spec much more closely rather than being completely ad-hoc with just the parse node instead of having all the surrounding data such as the realm of the parse node. The interpreter creation refactor creates the global execution context once and doesn't take it off the stack. This allows LibWeb to take the global execution context and manually handle it, following the HTML spec. The HTML spec calls this the "realm execution context" of the environment settings object. It also allows us to specify the globalThis type, as it can be different from the global object type. For example, on the web, Window global objects use a WindowProxy global this value to enforce the same origin policy on operations like [[GetOwnProperty]]. Finally, it allows us to directly call Program::execute in perform_eval and perform_shadow_realm_eval as this moves global_declaration_instantiation into Interpreter::run (ScriptEvaluation) as per the spec. Note that this doesn't evalulate Source Text Modules yet or refactor the bytecode interpreter, that's work for future us :^) This patch was originally build by Luke for the environment settings object change but was also needed for modules. So I (davidot) have modified it with the new completion changes and setup for that. Co-authored-by: davidot <davidot@serenityos.org> |
||
---|---|---|
.. | ||
Azure | ||
CMake | ||
HeaderCheck | ||
Lagom | ||
ShellCompletions/zsh | ||
Websites | ||
bochsrc | ||
build-image-extlinux.sh | ||
build-image-grub.sh | ||
build-image-qemu.sh | ||
build-manpages-website.sh | ||
build-root-filesystem.sh | ||
check-ak-test-files.sh | ||
check-debug-flags.sh | ||
check-markdown.sh | ||
check-newlines-at-eof.py | ||
check-style.py | ||
check-symbols.sh | ||
check-syscall-lists.sh | ||
convert-markdown-links.lua | ||
debug-kernel.sh | ||
export-argsparser-manpages.sh | ||
extlinux.conf | ||
generate-embedded-resource-assembly.sh | ||
generate-libwasm-spec-test.py | ||
generate-libwasm-spec-test.sh | ||
grub-ebr.cfg | ||
grub-gpt.cfg | ||
grub-mbr.cfg | ||
install-ports-tree.sh | ||
lint-ci.sh | ||
lint-clang-format.sh | ||
lint-commit.sh | ||
lint-executable-resources.sh | ||
lint-keymaps.py | ||
lint-missing-resources.sh | ||
lint-ports.py | ||
lint-prettier.sh | ||
lint-python.sh | ||
lint-shell-scripts.sh | ||
new-project.sh | ||
refresh-serenity-qtcreator.sh | ||
run.sh | ||
screenshot-000ccc0.png | ||
screenshot-0f85753.png | ||
screenshot-8ea4375.png | ||
screenshot-1133aca.png | ||
screenshot-9145a72.png | ||
screenshot-23263aa.png | ||
screenshot-191112e.png | ||
screenshot-b5521e1.png | ||
screenshot-b36968c.png | ||
screenshot-cdb82f6.png | ||
screenshot-d727005.png | ||
screenshot-ef9fbef.png | ||
screenshot-f8fc892.png | ||
serenity.sh | ||
serenity_gdb.py | ||
text-to-cpp-string.sh | ||
tweet-commits.js |