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

LibJS/JIT: Add a builtin for Math.abs

This commit is contained in:
Simon Wanner 2023-11-17 11:56:40 +01:00 committed by Andreas Kling
parent 86b85aa68b
commit 6c8ab1ca0d
4 changed files with 58 additions and 3 deletions

View file

@ -12,7 +12,8 @@
namespace JS::Bytecode {
// TitleCaseName, snake_case_name, base, property, argument_count
#define JS_ENUMERATE_BUILTINS(O)
#define JS_ENUMERATE_BUILTINS(O) \
O(MathAbs, math_abs, Math, abs, 1)
enum class Builtin {
#define DEFINE_BUILTIN_ENUM(name, ...) name,