diff options
author | Linus Groh <mail@linusgroh.de> | 2022-04-03 15:19:33 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-03 15:19:33 +0100 |
commit | 5b48912d35d2cd7cbb0dde60a594429abadbd806 (patch) | |
tree | 4ec1f577f82f2ca22f24782bb4832263e785d5cc /Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp | |
parent | f2c02077bae909a23e08c1b8c9f6800dbe3b7133 (diff) | |
download | serenity-5b48912d35d2cd7cbb0dde60a594429abadbd806.zip |
LibJS: Remove a bunch of gratuitous JS namespace qualifiers
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp b/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp index dcb04428b3..eb354b9866 100644 --- a/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp @@ -777,19 +777,19 @@ Completion ECMAScriptFunctionObject::ordinary_call_evaluate_body() if (bytecode_interpreter) { if (!m_bytecode_executable) { auto compile = [&](auto& node, auto kind, auto name) -> ThrowCompletionOr<NonnullOwnPtr<Bytecode::Executable>> { - auto executable_result = JS::Bytecode::Generator::generate(node, kind); + auto executable_result = Bytecode::Generator::generate(node, kind); if (executable_result.is_error()) return vm.throw_completion<InternalError>(bytecode_interpreter->global_object(), ErrorType::NotImplemented, executable_result.error().to_string()); auto bytecode_executable = executable_result.release_value(); bytecode_executable->name = name; - auto& passes = JS::Bytecode::Interpreter::optimization_pipeline(); + auto& passes = Bytecode::Interpreter::optimization_pipeline(); passes.perform(*bytecode_executable); if constexpr (JS_BYTECODE_DEBUG) { dbgln("Optimisation passes took {}us", passes.elapsed()); dbgln("Compiled Bytecode::Block for function '{}':", m_name); } - if (JS::Bytecode::g_dump_bytecode) + if (Bytecode::g_dump_bytecode) bytecode_executable->dump(); return bytecode_executable; |