Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: src/bytecodes-re2k.h

Issue 11350: Add back references. Since "back references" is two words... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 V(POP_REGISTER, 12, 2) /* pop_register register_index */ \ 47 V(POP_REGISTER, 12, 2) /* pop_register register_index */ \
48 V(FAIL, 13, 1) /* fail */ \ 48 V(FAIL, 13, 1) /* fail */ \
49 V(SUCCEED, 14, 1) /* succeed */ \ 49 V(SUCCEED, 14, 1) /* succeed */ \
50 V(ADVANCE_CP, 15, 5) /* advance_cp offset32 */ \ 50 V(ADVANCE_CP, 15, 5) /* advance_cp offset32 */ \
51 V(GOTO, 16, 5) /* goto addr32 */ \ 51 V(GOTO, 16, 5) /* goto addr32 */ \
52 V(LOAD_CURRENT_CHAR, 17, 9) /* load offset32 addr32 */ \ 52 V(LOAD_CURRENT_CHAR, 17, 9) /* load offset32 addr32 */ \
53 V(CHECK_CHAR, 18, 7) /* check_char uc16 addr32 */ \ 53 V(CHECK_CHAR, 18, 7) /* check_char uc16 addr32 */ \
54 V(CHECK_NOT_CHAR, 19, 7) /* check_not_char uc16 addr32 */ \ 54 V(CHECK_NOT_CHAR, 19, 7) /* check_not_char uc16 addr32 */ \
55 V(CHECK_LT, 20, 7) /* check_lt uc16 addr32 */ \ 55 V(CHECK_LT, 20, 7) /* check_lt uc16 addr32 */ \
56 V(CHECK_GT, 21, 7) /* check_gr uc16 addr32 */ \ 56 V(CHECK_GT, 21, 7) /* check_gr uc16 addr32 */ \
57 V(CHECK_BACKREF, 22, 9) /* check_backref offset32 capture_idx addr32 */ \ 57 V(CHECK_NOT_BACK_REF, 22, 6) /* check_not_back_ref capture_idx addr32 */ \
58 V(CHECK_NOT_BACKREF, 23, 9) /* check_not_backref offset32 capture_idx addr32*/ \ 58 V(LOOKUP_MAP1, 23, 11) /* l_map1 start16 bit_map_addr32 addr32 */ \
59 V(LOOKUP_MAP1, 24, 11) /* l_map1 start16 bit_map_addr32 addr32 */ \ 59 V(LOOKUP_MAP2, 24, 99) /* l_map2 start16 half_nibble_map_addr32* */ \
60 V(LOOKUP_MAP2, 25, 99) /* l_map2 start16 half_nibble_map_addr32* */ \ 60 V(LOOKUP_MAP8, 25, 99) /* l_map8 start16 byte_map addr32* */ \
61 V(LOOKUP_MAP8, 26, 99) /* l_map8 start16 byte_map addr32* */ \ 61 V(LOOKUP_HI_MAP8, 26, 99) /* l_himap8 start8 byte_map_addr32 addr32* */ \
62 V(LOOKUP_HI_MAP8, 27, 99) /* l_himap8 start8 byte_map_addr32 addr32* */ \ 62 V(CHECK_REGISTER_LT, 27, 8) /* check_reg_lt register_index value16 addr32 */ \
63 V(CHECK_REGISTER_LT, 28, 8) /* check_reg_lt register_index value16 addr32 */ \ 63 V(CHECK_REGISTER_GE, 28, 8) /* check_reg_ge register_index value16 addr32 */ \
64 V(CHECK_REGISTER_GE, 29, 8) /* check_reg_ge register_index value16 addr32 */ \
65 64
66 #define DECLARE_BYTECODES(name, code, length) \ 65 #define DECLARE_BYTECODES(name, code, length) \
67 static const int BC_##name = code; 66 static const int BC_##name = code;
68 BYTECODE_ITERATOR(DECLARE_BYTECODES) 67 BYTECODE_ITERATOR(DECLARE_BYTECODES)
69 #undef DECLARE_BYTECODES 68 #undef DECLARE_BYTECODES
70 69
71 #define DECLARE_BYTECODE_LENGTH(name, code, length) \ 70 #define DECLARE_BYTECODE_LENGTH(name, code, length) \
72 static const int BC_##name##_LENGTH = length; 71 static const int BC_##name##_LENGTH = length;
73 BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH) 72 BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH)
74 #undef DECLARE_BYTECODE_LENGTH 73 #undef DECLARE_BYTECODE_LENGTH
75 } } 74 } }
76 75
77 #endif // V8_BYTECODES_IA32_H_ 76 #endif // V8_BYTECODES_IA32_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/interpreter-re2k.cc » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698