1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

LibJS/JIT: Add builtin for Math.floor()

This commit is contained in:
Andreas Kling 2023-11-24 09:44:00 +01:00
parent 5e976d611e
commit 08590adf40
4 changed files with 28 additions and 7 deletions

View file

@ -12,10 +12,11 @@
namespace JS::Bytecode {
// TitleCaseName, snake_case_name, base, property, argument_count
#define JS_ENUMERATE_BUILTINS(O) \
O(MathAbs, math_abs, Math, abs, 1) \
O(MathLog, math_log, Math, log, 1) \
O(MathPow, math_pow, Math, pow, 2) \
#define JS_ENUMERATE_BUILTINS(O) \
O(MathAbs, math_abs, Math, abs, 1) \
O(MathLog, math_log, Math, log, 1) \
O(MathPow, math_pow, Math, pow, 2) \
O(MathFloor, math_floor, Math, floor, 1) \
O(MathSqrt, math_sqrt, Math, sqrt, 1)
enum class Builtin {