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

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

Issue 18193: Add support for \b and ^ and $ in multiline mode, completing Irregexp... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 11 months 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
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/flag-definitions.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 V(CHECK_NOT_BACK_REF, 30, 6) /* check_not_back_ref capture_idx addr32 */ \ 65 V(CHECK_NOT_BACK_REF, 30, 6) /* check_not_back_ref capture_idx addr32 */ \
66 V(CHECK_NOT_BACK_REF_NO_CASE, 31, 6) /* check_not_back_ref_no_case captu... */ \ 66 V(CHECK_NOT_BACK_REF_NO_CASE, 31, 6) /* check_not_back_ref_no_case captu... */ \
67 V(CHECK_NOT_REGS_EQUAL, 32, 7) /* check_not_regs_equal reg1 reg2 addr32 */ \ 67 V(CHECK_NOT_REGS_EQUAL, 32, 7) /* check_not_regs_equal reg1 reg2 addr32 */ \
68 V(LOOKUP_MAP1, 33, 11) /* l_map1 start16 bit_map_addr32 addr32 */ \ 68 V(LOOKUP_MAP1, 33, 11) /* l_map1 start16 bit_map_addr32 addr32 */ \
69 V(LOOKUP_MAP2, 34, 99) /* l_map2 start16 half_nibble_map_addr32* */ \ 69 V(LOOKUP_MAP2, 34, 99) /* l_map2 start16 half_nibble_map_addr32* */ \
70 V(LOOKUP_MAP8, 35, 99) /* l_map8 start16 byte_map addr32* */ \ 70 V(LOOKUP_MAP8, 35, 99) /* l_map8 start16 byte_map addr32* */ \
71 V(LOOKUP_HI_MAP8, 36, 99) /* l_himap8 start8 byte_map_addr32 addr32* */ \ 71 V(LOOKUP_HI_MAP8, 36, 99) /* l_himap8 start8 byte_map_addr32 addr32* */ \
72 V(CHECK_REGISTER_LT, 37, 8) /* check_reg_lt register_index value16 addr32 */ \ 72 V(CHECK_REGISTER_LT, 37, 8) /* check_reg_lt register_index value16 addr32 */ \
73 V(CHECK_REGISTER_GE, 38, 8) /* check_reg_ge register_index value16 addr32 */ \ 73 V(CHECK_REGISTER_GE, 38, 8) /* check_reg_ge register_index value16 addr32 */ \
74 V(CHECK_REGISTER_EQ_POS, 39, 6) /* check_register_eq_pos index addr32 */ \ 74 V(CHECK_REGISTER_EQ_POS, 39, 6) /* check_register_eq_pos index addr32 */ \
75 V(CHECK_NOT_AT_START, 40, 5) /* check_not_at_start addr32 */ \ 75 V(CHECK_AT_START, 40, 5) /* check_at_start addr32 */ \
76 V(CHECK_GREEDY, 41, 5) /* check_greedy addr32 */ 76 V(CHECK_NOT_AT_START, 41, 5) /* check_not_at_start addr32 */ \
77 V(CHECK_GREEDY, 42, 5) /* check_greedy addr32 */
77 78
78 #define DECLARE_BYTECODES(name, code, length) \ 79 #define DECLARE_BYTECODES(name, code, length) \
79 static const int BC_##name = code; 80 static const int BC_##name = code;
80 BYTECODE_ITERATOR(DECLARE_BYTECODES) 81 BYTECODE_ITERATOR(DECLARE_BYTECODES)
81 #undef DECLARE_BYTECODES 82 #undef DECLARE_BYTECODES
82 83
83 #define DECLARE_BYTECODE_LENGTH(name, code, length) \ 84 #define DECLARE_BYTECODE_LENGTH(name, code, length) \
84 static const int BC_##name##_LENGTH = length; 85 static const int BC_##name##_LENGTH = length;
85 BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH) 86 BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH)
86 #undef DECLARE_BYTECODE_LENGTH 87 #undef DECLARE_BYTECODE_LENGTH
87 } } 88 } }
88 89
89 #endif // V8_BYTECODES_IRREGEXP_H_ 90 #endif // V8_BYTECODES_IRREGEXP_H_
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698