mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
LibJS: Rename Bytecode::ExecutionUnit => Bytecode::Executable
This commit is contained in:
parent
597e0d95fe
commit
b61f198d22
Notes:
sideshowbarker
2024-07-18 12:35:29 +09:00
Author: https://github.com/awesomekling
Commit: b61f198d22
6 changed files with 14 additions and 14 deletions
|
@ -151,15 +151,15 @@ Value ScriptFunction::execute_function_body()
|
|||
|
||||
if (bytecode_interpreter) {
|
||||
prepare_arguments();
|
||||
if (!m_bytecode_execution_unit.has_value()) {
|
||||
m_bytecode_execution_unit = Bytecode::Generator::generate(m_body);
|
||||
if (!m_bytecode_executable.has_value()) {
|
||||
m_bytecode_executable = Bytecode::Generator::generate(m_body);
|
||||
if constexpr (JS_BYTECODE_DEBUG) {
|
||||
dbgln("Compiled Bytecode::Block for function '{}':", m_name);
|
||||
for (auto& block : m_bytecode_execution_unit->basic_blocks)
|
||||
for (auto& block : m_bytecode_executable->basic_blocks)
|
||||
block.dump();
|
||||
}
|
||||
}
|
||||
return bytecode_interpreter->run(*m_bytecode_execution_unit);
|
||||
return bytecode_interpreter->run(*m_bytecode_executable);
|
||||
} else {
|
||||
OwnPtr<Interpreter> local_interpreter;
|
||||
ast_interpreter = vm.interpreter_if_exists();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue