mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-17 16:42:54 +00:00
LibJS/Bytecode: Leave GlobalDeclarationInstantiation in C++
Don't try to implement this AO in bytecode. Instead, the bytecode Interpreter class now has a run() API with the same inputs as the AST interpreter. It sets up the necessary environments etc, including invoking the GlobalDeclarationInstantiation AO.
This commit is contained in:
parent
32d9c8e3ca
commit
d063f35afd
Notes:
sideshowbarker
2024-07-18 01:43:16 +09:00
Author: https://github.com/awesomekling
Commit: d063f35afd
Pull-request: https://github.com/SerenityOS/serenity/pull/19408
Issue: https://github.com/SerenityOS/serenity/issues/15210
12 changed files with 172 additions and 284 deletions
|
@ -134,7 +134,7 @@ ThrowCompletionOr<Value> Interpreter::run(SourceTextModule& module)
|
|||
|
||||
VM::InterpreterExecutionScope scope(*this);
|
||||
|
||||
TRY(vm.link_and_eval_module({}, module));
|
||||
TRY(vm.link_and_eval_module(Badge<JS::Interpreter> {}, module));
|
||||
|
||||
vm.run_queued_promise_jobs();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue