OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 V(CHECK_LT, 22, 7) /* check_lt uc16 addr32 */ \ | 57 V(CHECK_LT, 22, 7) /* check_lt uc16 addr32 */ \ |
58 V(CHECK_GT, 23, 7) /* check_gr uc16 addr32 */ \ | 58 V(CHECK_GT, 23, 7) /* check_gr uc16 addr32 */ \ |
59 V(CHECK_NOT_BACK_REF, 24, 6) /* check_not_back_ref capture_idx addr32 */ \ | 59 V(CHECK_NOT_BACK_REF, 24, 6) /* check_not_back_ref capture_idx addr32 */ \ |
60 V(CHECK_NOT_BACK_REF_NO_CASE, 25, 6) /* check_not_back_ref_no_case captu... */ \ | 60 V(CHECK_NOT_BACK_REF_NO_CASE, 25, 6) /* check_not_back_ref_no_case captu... */ \ |
61 V(CHECK_NOT_REGS_EQUAL, 26, 7) /* check_not_regs_equal reg1 reg2 addr32 */ \ | 61 V(CHECK_NOT_REGS_EQUAL, 26, 7) /* check_not_regs_equal reg1 reg2 addr32 */ \ |
62 V(LOOKUP_MAP1, 27, 11) /* l_map1 start16 bit_map_addr32 addr32 */ \ | 62 V(LOOKUP_MAP1, 27, 11) /* l_map1 start16 bit_map_addr32 addr32 */ \ |
63 V(LOOKUP_MAP2, 28, 99) /* l_map2 start16 half_nibble_map_addr32* */ \ | 63 V(LOOKUP_MAP2, 28, 99) /* l_map2 start16 half_nibble_map_addr32* */ \ |
64 V(LOOKUP_MAP8, 29, 99) /* l_map8 start16 byte_map addr32* */ \ | 64 V(LOOKUP_MAP8, 29, 99) /* l_map8 start16 byte_map addr32* */ \ |
65 V(LOOKUP_HI_MAP8, 30, 99) /* l_himap8 start8 byte_map_addr32 addr32* */ \ | 65 V(LOOKUP_HI_MAP8, 30, 99) /* l_himap8 start8 byte_map_addr32 addr32* */ \ |
66 V(CHECK_REGISTER_LT, 31, 8) /* check_reg_lt register_index value16 addr32 */ \ | 66 V(CHECK_REGISTER_LT, 31, 8) /* check_reg_lt register_index value16 addr32 */ \ |
67 V(CHECK_REGISTER_GE, 32, 8) /* check_reg_ge register_index value16 addr32 */ | 67 V(CHECK_REGISTER_GE, 32, 8) /* check_reg_ge register_index value16 addr32 */ \ |
| 68 V(CHECK_NOT_AT_START, 33, 5) /* check_not_at_start addr32 */ |
68 | 69 |
69 #define DECLARE_BYTECODES(name, code, length) \ | 70 #define DECLARE_BYTECODES(name, code, length) \ |
70 static const int BC_##name = code; | 71 static const int BC_##name = code; |
71 BYTECODE_ITERATOR(DECLARE_BYTECODES) | 72 BYTECODE_ITERATOR(DECLARE_BYTECODES) |
72 #undef DECLARE_BYTECODES | 73 #undef DECLARE_BYTECODES |
73 | 74 |
74 #define DECLARE_BYTECODE_LENGTH(name, code, length) \ | 75 #define DECLARE_BYTECODE_LENGTH(name, code, length) \ |
75 static const int BC_##name##_LENGTH = length; | 76 static const int BC_##name##_LENGTH = length; |
76 BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH) | 77 BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH) |
77 #undef DECLARE_BYTECODE_LENGTH | 78 #undef DECLARE_BYTECODE_LENGTH |
78 } } | 79 } } |
79 | 80 |
80 #endif // V8_BYTECODES_IRREGEXP_H_ | 81 #endif // V8_BYTECODES_IRREGEXP_H_ |
OLD | NEW |