mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibJS: Don't track executing AST nodes in a Vector
Instead just link together the InterpreterNodeScopes in a linked list. This was surprisingly hot on CanvasCycle.
This commit is contained in:
@@ -143,17 +143,6 @@ void Interpreter::exit_scope(const ScopeNode& scope_node)
|
||||
vm().unwind(ScopeType::None);
|
||||
}
|
||||
|
||||
void Interpreter::enter_node(const ASTNode& node)
|
||||
{
|
||||
vm().call_frame().current_node = &node;
|
||||
push_ast_node(node);
|
||||
}
|
||||
|
||||
void Interpreter::exit_node(const ASTNode&)
|
||||
{
|
||||
pop_ast_node();
|
||||
}
|
||||
|
||||
void Interpreter::push_scope(ScopeFrame frame)
|
||||
{
|
||||
m_scope_stack.append(move(frame));
|
||||
|
||||
Reference in New Issue
Block a user