mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:07:36 +00:00
LibJS/JIT: Add builtin for Math.log()
Note that we still call out to a C++ helper, but by having a builtin, we still avoid the cost of a full JS function call.
This commit is contained in:
parent
a6106ca221
commit
1d8a601f96
4 changed files with 28 additions and 5 deletions
|
@ -18,6 +18,8 @@ public:
|
|||
virtual void initialize(Realm&) override;
|
||||
virtual ~MathObject() override = default;
|
||||
|
||||
static ThrowCompletionOr<Value> log_impl(VM&, Value);
|
||||
|
||||
private:
|
||||
explicit MathObject(Realm&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue