1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

LibJS/JIT: Compile the New##ErrorName instructions

This commit is contained in:
Simon Wanner 2023-10-30 01:12:58 +01:00 committed by Andreas Kling
parent fd059d4e4a
commit 847889343f
3 changed files with 25 additions and 2 deletions

View file

@ -62,9 +62,13 @@ private:
O(RightShift, right_shift) \
O(UnsignedRightShift, unsigned_right_shift)
# define JS_ENUMERATE_NEW_BUILTIN_ERROR_BYTECODE_OPS(O) \
O(NewTypeError, new_type_error, TypeError)
# define JS_ENUMERATE_IMPLEMENTED_JIT_OPS(O) \
JS_ENUMERATE_COMMON_BINARY_OPS(O) \
JS_ENUMERATE_COMMON_UNARY_OPS(O) \
JS_ENUMERATE_NEW_BUILTIN_ERROR_BYTECODE_OPS(O) \
O(LoadImmediate, load_immediate) \
O(Load, load) \
O(Store, store) \
@ -135,7 +139,7 @@ private:
O(GetNewTarget, get_new_target) \
O(HasPrivateId, has_private_id)
# define DECLARE_COMPILE_OP(OpTitleCase, op_snake_case) \
# define DECLARE_COMPILE_OP(OpTitleCase, op_snake_case, ...) \
void compile_##op_snake_case(Bytecode::Op::OpTitleCase const&);
JS_ENUMERATE_IMPLEMENTED_JIT_OPS(DECLARE_COMPILE_OP)