mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:07:34 +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:
parent
b7ce0680dd
commit
df3ff76815
7 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -45,10 +45,10 @@ public:
|
|||
void push_interpreter(Interpreter&);
|
||||
void pop_interpreter(Interpreter&);
|
||||
|
||||
class InterpreterScope {
|
||||
class InterpreterExecutionScope {
|
||||
public:
|
||||
InterpreterScope(Interpreter&);
|
||||
~InterpreterScope();
|
||||
InterpreterExecutionScope(Interpreter&);
|
||||
~InterpreterExecutionScope();
|
||||
private:
|
||||
Interpreter& m_interpreter;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue