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

This commit is contained in:
Andreas Kling 2023-11-24 09:44:00 +01:00
commit 08590adf40
Notes: sideshowbarker 2024-07-16 22:22:13 +09:00
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 {