mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibJS: Move prepare_for_ordinary_call() to ECMAScriptFunctionObject
Now that it only needs to deal with ECMAScriptFunctionObject via internal_call() / internal_construct(), we can: - Remove the generic FunctionObject parameter - Move it from the VM to ECMAScriptFunctionObject - Make it private
This commit is contained in:
parent
cf168fac50
commit
25bcd36116
Notes:
sideshowbarker
2024-07-18 02:53:15 +09:00
Author: https://github.com/linusg
Commit: 25bcd36116
Pull-request: https://github.com/SerenityOS/serenity/pull/10402
Reviewed-by: https://github.com/awesomekling ✅
4 changed files with 62 additions and 60 deletions
|
@ -82,8 +82,9 @@ private:
|
|||
virtual FunctionEnvironment* new_function_environment(Object* new_target) override;
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
ThrowCompletionOr<void> function_declaration_instantiation(Interpreter*);
|
||||
void prepare_for_ordinary_call(ExecutionContext& callee_context, Object* new_target);
|
||||
Completion ordinary_call_evaluate_body();
|
||||
ThrowCompletionOr<void> function_declaration_instantiation(Interpreter*);
|
||||
|
||||
// Internal Slots of ECMAScript Function Objects, https://tc39.es/ecma262/#table-internal-slots-of-ecmascript-function-objects
|
||||
Environment* m_environment { nullptr }; // [[Environment]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue