summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Forward.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-10 00:49:23 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-10 21:59:49 +0200
commitb3e6a6c1cdfb7aec7a1ac96b1a6200e5bb106253 (patch)
treea7a0a424a1b65707592d05f6f49908b021463cc8 /Userland/Libraries/LibJS/Forward.h
parent941be2dcc232c3d9ea1e909c8b21b311e29481e4 (diff)
downloadserenity-b3e6a6c1cdfb7aec7a1ac96b1a6200e5bb106253.zip
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. :^)
Diffstat (limited to 'Userland/Libraries/LibJS/Forward.h')
-rw-r--r--Userland/Libraries/LibJS/Forward.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Forward.h b/Userland/Libraries/LibJS/Forward.h
index 81404dfa30..da0eb5fe27 100644
--- a/Userland/Libraries/LibJS/Forward.h
+++ b/Userland/Libraries/LibJS/Forward.h
@@ -114,6 +114,7 @@ class Error;
class ErrorType;
class Exception;
class Expression;
+class FunctionNode;
class Accessor;
class GlobalObject;
class HandleImpl;