1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 07:57:49 +00:00

LibJS: Rename InterpreterScope => InterpreterExecutionScope

To make it a little clearer what this is for. (This is an RAII helper
class for adding and removing an Interpreter to a VM's list of the
currently active (executing code) Interpreters.)
This commit is contained in:
Andreas Kling 2020-09-21 13:36:32 +02:00
parent b7ce0680dd
commit df3ff76815
7 changed files with 11 additions and 11 deletions

View file

@ -71,13 +71,13 @@ void VM::pop_interpreter(Interpreter& interpreter)
ASSERT(popped_interpreter == &interpreter);
}
VM::InterpreterScope::InterpreterScope(Interpreter& interpreter)
VM::InterpreterExecutionScope::InterpreterExecutionScope(Interpreter& interpreter)
: m_interpreter(interpreter)
{
m_interpreter.vm().push_interpreter(m_interpreter);
}
VM::InterpreterScope::~InterpreterScope()
VM::InterpreterExecutionScope::~InterpreterExecutionScope()
{
m_interpreter.vm().pop_interpreter(m_interpreter);
}