ladybird/Userland/Services
Luke Wilde 631bbcd00a LibJS: Refactor interpreter to use Script and Source Text Modules
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>
2022-01-22 01:21:18 +00:00
..
AudioServer LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
ChessEngine ChessEngine: Remove unused 'rpath' promise 2022-01-03 15:56:41 +01:00
Clipboard LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
ConfigServer LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
CrashDaemon Everywhere: Use default execpromises argument for Core::System::pledge 2021-11-28 08:04:57 +01:00
DHCPClient DHCP4Client: Cast unused Timer return values to void 2021-12-05 15:31:03 +01:00
EchoServer LibCore+Userland+Tests: Convert Stream APIs to construct on heap 2022-01-13 15:16:12 +03:30
FileOperation Userland: Use Core::ArgsParser's Vector<StringView> API everywhere 2021-11-26 23:27:57 +01:00
FileSystemAccessServer LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
ImageDecoder LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
InspectorServer LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
KeyboardPreferenceLoader KeyboardPreferenceLoader: Use Core::System::ioctl() 2021-11-30 23:34:40 +01:00
LaunchServer LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LoginServer Everywhere: Fix spelling mistakes 2022-01-07 15:44:42 +01:00
LookupServer LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
NotificationServer LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
RequestServer LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
SpiceAgent LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
SQLServer LibSQL+SQLServer: Implement first cut of SELECT ... ORDER BY foo 2022-01-16 11:17:15 +01:00
SystemServer Everywhere: Add serenity_dev_{makedev,major,minor} 2022-01-09 00:58:44 +01:00
Taskbar Taskbar: Remove QuickLaunch entries if corresponding file was deleted 2022-01-21 13:44:36 +01:00
TelnetServer LibCore+Userland+Tests: Convert Stream APIs to construct on heap 2022-01-13 15:16:12 +03:30
WebContent LibJS: Refactor interpreter to use Script and Source Text Modules 2022-01-22 01:21:18 +00:00
WebServer WebServer: Add charset declaration to directory listings 2022-01-14 21:32:55 +01:00
WebSocket LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
WindowServer Userland: Add horizontal mouse scroll support 2022-01-20 10:37:52 +01:00
CMakeLists.txt LoginServer: Layout a basic login window 2021-10-17 22:18:48 +02:00