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

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

Issue 10992: Implement $ for non-multiline. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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/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 // 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void CheckCharacterLT(uc16 limit, Label* on_less); 96 void CheckCharacterLT(uc16 limit, Label* on_less);
97 void CheckCharacterGT(uc16 limit, Label* on_greater); 97 void CheckCharacterGT(uc16 limit, Label* on_greater);
98 98
99 // Checks current position for a match against a previous capture. Advances 99 // Checks current position for a match against a previous capture. Advances
100 // current position by the length of the capture iff it matches. The capture 100 // current position by the length of the capture iff it matches. The capture
101 // is stored in a given register and the register after. If a register 101 // is stored in a given register and the register after. If a register
102 // contains -1 then the other register must always contain -1 and the 102 // contains -1 then the other register must always contain -1 and the
103 // on_mismatch label will never be called. 103 // on_mismatch label will never be called.
104 void CheckNotBackReference(int capture_index, Label* on_mismatch); 104 void CheckNotBackReference(int capture_index, Label* on_mismatch);
105 void CheckNotBackReferenceNoCase(int capture_index, Label* on_mismatch); 105 void CheckNotBackReferenceNoCase(int capture_index, Label* on_mismatch);
106 void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal);
106 107
107 // Checks a register for strictly-less-than or greater-than-or-equal. 108 // Checks a register for strictly-less-than or greater-than-or-equal.
108 void CheckRegisterLT(int reg_index, uint16_t vs, Label* on_less_than); 109 void CheckRegisterLT(int reg_index, uint16_t vs, Label* on_less_than);
109 void CheckRegisterGE(int reg_index, uint16_t vs, Label* on_greater_equal); 110 void CheckRegisterGE(int reg_index, uint16_t vs, Label* on_greater_equal);
110 111
111 // Subtracts a 16 bit value from the current character, uses the result to 112 // Subtracts a 16 bit value from the current character, uses the result to
112 // look up in a bit array, uses the result of that to decide whether to fall 113 // look up in a bit array, uses the result of that to decide whether to fall
113 // though (on 1) or jump to the on_zero label (on 0). 114 // though (on 1) or jump to the on_zero label (on 0).
114 void LookupMap1(uc16 start, Label* bit_map, Label* on_zero); 115 void LookupMap1(uc16 start, Label* bit_map, Label* on_zero);
115 116
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // True if the assembler owns the buffer, false if buffer is external. 155 // True if the assembler owns the buffer, false if buffer is external.
155 bool own_buffer_; 156 bool own_buffer_;
156 157
157 DISALLOW_IMPLICIT_CONSTRUCTORS(IrregexpAssembler); 158 DISALLOW_IMPLICIT_CONSTRUCTORS(IrregexpAssembler);
158 }; 159 };
159 160
160 161
161 } } // namespace v8::internal 162 } } // namespace v8::internal
162 163
163 #endif // V8_ASSEMBLER_IRREGEXP_H_ 164 #endif // V8_ASSEMBLER_IRREGEXP_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler-irregexp.cc » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698