mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-12 12:01:52 +00:00
LibJS: Use CallBuiltin for Math.sin()
Improves performance on https://pierre.co/
This commit is contained in:
parent
04fac0031c
commit
c02535e9f9
Notes:
github-actions[bot]
2025-05-26 19:53:53 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: c02535e9f9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4884
Reviewed-by: https://github.com/awesomekling ✅
4 changed files with 14 additions and 4 deletions
|
@ -2819,6 +2819,8 @@ static ThrowCompletionOr<Value> dispatch_builtin_call(Bytecode::Interpreter& int
|
|||
return TRY(MathObject::round_impl(interpreter.vm(), interpreter.get(arguments[0])));
|
||||
case Builtin::MathSqrt:
|
||||
return TRY(MathObject::sqrt_impl(interpreter.vm(), interpreter.get(arguments[0])));
|
||||
case Builtin::MathSin:
|
||||
return TRY(MathObject::sin_impl(interpreter.vm(), interpreter.get(arguments[0])));
|
||||
case Bytecode::Builtin::__Count:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue