LibJS: Perform function instantiation in bytecode

This replaces Bytecode::Op::EnterScope with a new NewFunction op that
instantiates a ScriptFunction from a given FunctionNode (AST).

This is then used to instantiate the local functions directly from
bytecode when entering a ScopeNode. :^)
This commit is contained in:
Andreas Kling 2021-06-10 00:49:23 +02:00
commit b3e6a6c1cd
Notes: sideshowbarker 2024-07-18 12:28:49 +09:00
5 changed files with 16 additions and 21 deletions

View file

@ -39,7 +39,7 @@
O(JumpConditional) \
O(JumpNullish) \
O(Call) \
O(EnterScope) \
O(NewFunction) \
O(Return) \
O(BitwiseAnd) \
O(BitwiseOr) \