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

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

Issue 12406: Case independent back references. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: Created 12 years 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/assembler-irregexp.cc » ('j') | src/interpreter-irregexp.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 2
3 // A light-weight assembler for the Irregexp byte code. 3 // A light-weight assembler for the Irregexp byte code.
4 4
5 #ifndef V8_ASSEMBLER_IRREGEXP_H_ 5 #ifndef V8_ASSEMBLER_IRREGEXP_H_
6 #define V8_ASSEMBLER_IRREGEXP_H_ 6 #define V8_ASSEMBLER_IRREGEXP_H_
7 7
8 namespace v8 { namespace internal { 8 namespace v8 { namespace internal {
9 9
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Used to check current char register against a range. 68 // Used to check current char register against a range.
69 void CheckCharacterLT(uc16 limit, Label* on_less); 69 void CheckCharacterLT(uc16 limit, Label* on_less);
70 void CheckCharacterGT(uc16 limit, Label* on_greater); 70 void CheckCharacterGT(uc16 limit, Label* on_greater);
71 71
72 // Checks current position for a match against a 72 // Checks current position for a match against a
73 // previous capture. Advances current position by the length of the capture 73 // previous capture. Advances current position by the length of the capture
74 // iff it matches. The capture is stored in a given register and the 74 // iff it matches. The capture is stored in a given register and the
75 // the register after. If a register contains -1 then the other register 75 // the register after. If a register contains -1 then the other register
76 // must always contain -1 and the on_mismatch label will never be called. 76 // must always contain -1 and the on_mismatch label will never be called.
77 void CheckNotBackReference(int capture_index, Label* on_mismatch); 77 void CheckNotBackReference(int capture_index, Label* on_mismatch);
78 void CheckNotBackReferenceNoCase(int capture_index, Label* on_mismatch);
78 79
79 // Checks a register for strictly-less-than or greater-than-or-equal. 80 // Checks a register for strictly-less-than or greater-than-or-equal.
80 void CheckRegisterLT(int reg_index, uint16_t vs, Label* on_less_than); 81 void CheckRegisterLT(int reg_index, uint16_t vs, Label* on_less_than);
81 void CheckRegisterGE(int reg_index, uint16_t vs, Label* on_greater_equal); 82 void CheckRegisterGE(int reg_index, uint16_t vs, Label* on_greater_equal);
82 83
83 // Subtracts a 16 bit value from the current character, uses the result to 84 // Subtracts a 16 bit value from the current character, uses the result to
84 // look up in a bit array, uses the result of that decide whether to fall 85 // look up in a bit array, uses the result of that decide whether to fall
85 // though (on 1) or jump to the on_zero label (on 0). 86 // though (on 1) or jump to the on_zero label (on 0).
86 void LookupMap1(uc16 start, Label* bit_map, Label* on_zero); 87 void LookupMap1(uc16 start, Label* bit_map, Label* on_zero);
87 88
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // True if the assembler owns the buffer, false if buffer is external. 129 // True if the assembler owns the buffer, false if buffer is external.
129 bool own_buffer_; 130 bool own_buffer_;
130 131
131 void Expand(); 132 void Expand();
132 }; 133 };
133 134
134 135
135 } } // namespace v8::internal 136 } } // namespace v8::internal
136 137
137 #endif // V8_ASSEMBLER_IRREGEXP_H_ 138 #endif // V8_ASSEMBLER_IRREGEXP_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler-irregexp.cc » ('j') | src/interpreter-irregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698