mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
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:
parent
941be2dcc2
commit
b3e6a6c1cd
5 changed files with 16 additions and 21 deletions
|
@ -114,6 +114,7 @@ class Error;
|
|||
class ErrorType;
|
||||
class Exception;
|
||||
class Expression;
|
||||
class FunctionNode;
|
||||
class Accessor;
|
||||
class GlobalObject;
|
||||
class HandleImpl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue