LibJS: Rename Bytecode::ExecutionUnit => Bytecode::Executable

This commit is contained in:
Andreas Kling 2021-06-09 09:11:20 +02:00
parent 597e0d95fe
commit b61f198d22
Notes: sideshowbarker 2024-07-18 12:35:29 +09:00
6 changed files with 14 additions and 14 deletions

View file

@ -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();