mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-03 00:42:54 +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
|
@ -33,9 +33,9 @@ Interpreter::~Interpreter()
|
|||
s_current = nullptr;
|
||||
}
|
||||
|
||||
Value Interpreter::run(ExecutionUnit const& execution_unit)
|
||||
Value Interpreter::run(Executable const& executable)
|
||||
{
|
||||
dbgln_if(JS_BYTECODE_DEBUG, "Bytecode::Interpreter will run unit {:p}", &execution_unit);
|
||||
dbgln_if(JS_BYTECODE_DEBUG, "Bytecode::Interpreter will run unit {:p}", &executable);
|
||||
|
||||
CallFrame global_call_frame;
|
||||
if (vm().call_stack().is_empty()) {
|
||||
|
@ -50,9 +50,9 @@ Value Interpreter::run(ExecutionUnit const& execution_unit)
|
|||
VERIFY(!vm().exception());
|
||||
}
|
||||
|
||||
auto block = &execution_unit.basic_blocks.first();
|
||||
auto block = &executable.basic_blocks.first();
|
||||
m_register_windows.append(make<RegisterWindow>());
|
||||
registers().resize(execution_unit.number_of_registers);
|
||||
registers().resize(executable.number_of_registers);
|
||||
|
||||
for (;;) {
|
||||
Bytecode::InstructionStreamIterator pc(block->instruction_stream());
|
||||
|
@ -80,7 +80,7 @@ Value Interpreter::run(ExecutionUnit const& execution_unit)
|
|||
break;
|
||||
}
|
||||
|
||||
dbgln_if(JS_BYTECODE_DEBUG, "Bytecode::Interpreter did run unit {:p}", &execution_unit);
|
||||
dbgln_if(JS_BYTECODE_DEBUG, "Bytecode::Interpreter did run unit {:p}", &executable);
|
||||
|
||||
if constexpr (JS_BYTECODE_DEBUG) {
|
||||
for (size_t i = 0; i < registers().size(); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue