mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibJS: Move AST node stack from VM to Interpreter
This commit is contained in:
parent
b3b8c01ebf
commit
1603623772
7 changed files with 29 additions and 19 deletions
|
@ -146,12 +146,12 @@ void Interpreter::exit_scope(const ScopeNode& scope_node)
|
|||
void Interpreter::enter_node(const ASTNode& node)
|
||||
{
|
||||
vm().call_frame().current_node = &node;
|
||||
vm().push_ast_node(node);
|
||||
push_ast_node(node);
|
||||
}
|
||||
|
||||
void Interpreter::exit_node(const ASTNode&)
|
||||
{
|
||||
vm().pop_ast_node();
|
||||
pop_ast_node();
|
||||
}
|
||||
|
||||
void Interpreter::push_scope(ScopeFrame frame)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue