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

Side by Side Diff: src/assembler-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
« no previous file with comments | « no previous file | src/assembler-re2k.cc » ('j') | src/jsregexp.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 Regexp2000 byte code. 3 // A light-weight assembler for the Regexp2000 byte code.
4 4
5 #ifndef V8_ASSEMBLER_RE2K_H_ 5 #ifndef V8_ASSEMBLER_RE2K_H_
6 #define V8_ASSEMBLER_RE2K_H_ 6 #define V8_ASSEMBLER_RE2K_H_
7 7
8 namespace v8 { namespace internal { 8 namespace v8 { namespace internal {
9 9
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void CheckNotCharacter(uc16 c, Label* on_mismatch); 64 void CheckNotCharacter(uc16 c, Label* on_mismatch);
65 65
66 // Used to check current char register against a range. 66 // Used to check current char register against a range.
67 void CheckCharacterLT(uc16 limit, Label* on_less); 67 void CheckCharacterLT(uc16 limit, Label* on_less);
68 void CheckCharacterGT(uc16 limit, Label* on_greater); 68 void CheckCharacterGT(uc16 limit, Label* on_greater);
69 69
70 // Checks current position for a match against a 70 // Checks current position for a match against a
71 // previous capture. Advances current position by the length of the capture 71 // previous capture. Advances current position by the length of the capture
72 // iff it matches. The capture is stored in a given register and the 72 // iff it matches. The capture is stored in a given register and the
73 // the register after. If a register contains -1 then the other register 73 // the register after. If a register contains -1 then the other register
74 // mush always contain -1 and the on_mismatch label will never be called. 74 // must always contain -1 and the on_mismatch label will never be called.
75 void CheckBackref(int capture_index, Label* on_mismatch); 75 void CheckNotBackReference(int capture_index, Label* on_mismatch);
76 76
77 // Checks a register for strictly-less-than or greater-than-or-equal. 77 // Checks a register for strictly-less-than or greater-than-or-equal.
78 void CheckRegisterLT(int reg_index, uint16_t vs, Label* on_less_than); 78 void CheckRegisterLT(int reg_index, uint16_t vs, Label* on_less_than);
79 void CheckRegisterGE(int reg_index, uint16_t vs, Label* on_greater_equal); 79 void CheckRegisterGE(int reg_index, uint16_t vs, Label* on_greater_equal);
80 80
81 // Subtracts a 16 bit value from the current character, uses the result to 81 // Subtracts a 16 bit value from the current character, uses the result to
82 // look up in a bit array, uses the result of that decide whether to fall 82 // look up in a bit array, uses the result of that decide whether to fall
83 // though (on 1) or jump to the on_zero label (on 0). 83 // though (on 1) or jump to the on_zero label (on 0).
84 void LookupMap1(uc16 start, Label* bit_map, Label* on_zero); 84 void LookupMap1(uc16 start, Label* bit_map, Label* on_zero);
85 85
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // True if the assembler owns the buffer, false if buffer is external. 126 // True if the assembler owns the buffer, false if buffer is external.
127 bool own_buffer_; 127 bool own_buffer_;
128 128
129 void Expand(); 129 void Expand();
130 }; 130 };
131 131
132 132
133 } } // namespace v8::internal 133 } } // namespace v8::internal
134 134
135 #endif // V8_ASSEMBLER_RE2K_H_ 135 #endif // V8_ASSEMBLER_RE2K_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler-re2k.cc » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698