mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibJS: Pass argument value vectors as const Vector<Value>&
Now that Interpreter keeps all arguments in the CallFrame stack, we can just pass a const-reference to the CallFrame's argument vector to each function handler (instead of copying it.)
This commit is contained in:
parent
bf9912cc59
commit
0a71533aff
Notes:
sideshowbarker
2024-07-19 08:16:19 +09:00
Author: https://github.com/awesomekling
Commit: 0a71533aff
8 changed files with 13 additions and 13 deletions
|
@ -38,7 +38,7 @@ public:
|
|||
const ScopeNode& body() const { return m_body; }
|
||||
const Vector<String>& parameters() const { return m_parameters; };
|
||||
|
||||
virtual Value call(Interpreter&, Vector<Value>) override;
|
||||
virtual Value call(Interpreter&, const Vector<Value>&) override;
|
||||
|
||||
private:
|
||||
virtual bool is_script_function() const final { return true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue