|
@@ -12,15 +12,16 @@
|
|
|
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) \
|
|
|
- O(MathExp, math_exp, Math, exp, 1) \
|
|
|
- O(MathCeil, math_ceil, Math, ceil, 1) \
|
|
|
- O(MathFloor, math_floor, Math, floor, 1) \
|
|
|
- O(MathImul, math_imul, Math, imul, 2) \
|
|
|
- O(MathRound, math_round, Math, round, 1) \
|
|
|
+#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(MathExp, math_exp, Math, exp, 1) \
|
|
|
+ O(MathCeil, math_ceil, Math, ceil, 1) \
|
|
|
+ O(MathFloor, math_floor, Math, floor, 1) \
|
|
|
+ O(MathImul, math_imul, Math, imul, 2) \
|
|
|
+ O(MathRandom, math_random, Math, random, 0) \
|
|
|
+ O(MathRound, math_round, Math, round, 1) \
|
|
|
O(MathSqrt, math_sqrt, Math, sqrt, 1)
|
|
|
|
|
|
enum class Builtin : u8 {
|