mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 01:42:54 +00:00
LibJS/Bytecode: Rename GetVariable => GetBinding
This commit is contained in:
parent
b7c04f999a
commit
6ca94bd0b1
Notes:
sideshowbarker
2024-07-16 22:34:39 +09:00
Author: https://github.com/awesomekling
Commit: 6ca94bd0b1
Pull-request: https://github.com/SerenityOS/serenity/pull/24324
5 changed files with 12 additions and 12 deletions
|
@ -577,7 +577,7 @@ FLATTEN_ON_CLANG void Interpreter::run_bytecode(size_t entry_point)
|
|||
HANDLE_INSTRUCTION(GetObjectFromIteratorRecord);
|
||||
HANDLE_INSTRUCTION(GetObjectPropertyIterator);
|
||||
HANDLE_INSTRUCTION(GetPrivateById);
|
||||
HANDLE_INSTRUCTION(GetVariable);
|
||||
HANDLE_INSTRUCTION(GetBinding);
|
||||
HANDLE_INSTRUCTION(GreaterThan);
|
||||
HANDLE_INSTRUCTION(GreaterThanEquals);
|
||||
HANDLE_INSTRUCTION(HasPrivateId);
|
||||
|
@ -1237,7 +1237,7 @@ ThrowCompletionOr<void> ConcatString::execute_impl(Bytecode::Interpreter& interp
|
|||
return {};
|
||||
}
|
||||
|
||||
ThrowCompletionOr<void> GetVariable::execute_impl(Bytecode::Interpreter& interpreter) const
|
||||
ThrowCompletionOr<void> GetBinding::execute_impl(Bytecode::Interpreter& interpreter) const
|
||||
{
|
||||
auto& vm = interpreter.vm();
|
||||
auto& executable = interpreter.current_executable();
|
||||
|
@ -2122,9 +2122,9 @@ ByteString GetCalleeAndThisFromEnvironment::to_byte_string_impl(Bytecode::Execut
|
|||
executable.identifier_table->get(m_identifier));
|
||||
}
|
||||
|
||||
ByteString GetVariable::to_byte_string_impl(Bytecode::Executable const& executable) const
|
||||
ByteString GetBinding::to_byte_string_impl(Bytecode::Executable const& executable) const
|
||||
{
|
||||
return ByteString::formatted("GetVariable {}, {}",
|
||||
return ByteString::formatted("GetBinding {}, {}",
|
||||
format_operand("dst"sv, dst(), executable),
|
||||
executable.identifier_table->get(m_identifier));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue