5#ifndef RUNTIME_VM_REGEXP_BYTECODES_H_
6#define RUNTIME_VM_REGEXP_BYTECODES_H_
18#define BYTECODE_ITERATOR(V) \
22V(PUSH_REGISTER, 3, 4) \
23V(SET_REGISTER_TO_CP, 4, 8) \
24V(SET_CP_TO_REGISTER, 5, 4) \
25V(SET_REGISTER_TO_SP, 6, 4) \
26V(SET_SP_TO_REGISTER, 7, 4) \
27V(SET_REGISTER, 8, 8) \
28V(ADVANCE_REGISTER, 9, 8) \
31V(POP_REGISTER, 12, 4) \
36V(LOAD_CURRENT_CHAR, 17, 8) \
37V(LOAD_CURRENT_CHAR_UNCHECKED, 18, 4) \
38V(LOAD_2_CURRENT_CHARS, 19, 8) \
39V(LOAD_2_CURRENT_CHARS_UNCHECKED, 20, 4) \
40V(LOAD_4_CURRENT_CHARS, 21, 8) \
41V(LOAD_4_CURRENT_CHARS_UNCHECKED, 22, 4) \
42V(CHECK_4_CHARS, 23, 12) \
44V(CHECK_NOT_4_CHARS, 25, 12) \
45V(CHECK_NOT_CHAR, 26, 8) \
46V(AND_CHECK_4_CHARS, 27, 16) \
47V(AND_CHECK_CHAR, 28, 12) \
48V(AND_CHECK_NOT_4_CHARS, 29, 16) \
49V(AND_CHECK_NOT_CHAR, 30, 12) \
50V(MINUS_AND_CHECK_NOT_CHAR, 31, 12) \
51V(CHECK_CHAR_IN_RANGE, 32, 12) \
52V(CHECK_CHAR_NOT_IN_RANGE, 33, 12) \
53V(CHECK_BIT_IN_TABLE, 34, 24) \
56V(CHECK_NOT_BACK_REF, 37, 8) \
57V(CHECK_NOT_BACK_REF_NO_CASE, 38, 8) \
58V(CHECK_NOT_BACK_REF_NO_CASE_UNICODE, 39, 8) \
59V(CHECK_NOT_BACK_REF_BACKWARD, 40, 8) \
60V(CHECK_NOT_BACK_REF_NO_CASE_BACKWARD, 41, 8) \
61V(CHECK_NOT_BACK_REF_NO_CASE_UNICODE_BACKWARD, 42, 8) \
62V(CHECK_NOT_REGS_EQUAL, 43, 12) \
63V(CHECK_REGISTER_LT, 44, 12) \
64V(CHECK_REGISTER_GE, 45, 12) \
65V(CHECK_REGISTER_EQ_POS, 46, 8) \
66V(CHECK_AT_START, 47, 8) \
67V(CHECK_NOT_AT_START, 48, 8) \
68V(CHECK_GREEDY, 49, 8) \
69V(ADVANCE_CP_AND_GOTO, 50, 8) \
70V(SET_CURRENT_POSITION_FROM_END, 51, 4)
74#define DECLARE_BYTECODES(name, code, length) \
75 static constexpr int BC_##name = code;
77#undef DECLARE_BYTECODES
79#define DECLARE_BYTECODE_LENGTH(name, code, length) \
80 static constexpr int BC_##name##_LENGTH = length;
82#undef DECLARE_BYTECODE_LENGTH
const unsigned int MAX_FIRST_ARG
#define DECLARE_BYTECODES(name, code, length)
#define BYTECODE_ITERATOR(V)
#define DECLARE_BYTECODE_LENGTH(name, code, length)