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

Side by Side Diff: src/regexp-macro-assembler-ia32.h

Issue 18750: * Remember to check for end of string even where we... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 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 | « src/regexp-macro-assembler.h ('k') | no next file » | no next file with comments »
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 Label* on_no_match); 64 Label* on_no_match);
65 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal); 65 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal);
66 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal); 66 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal);
67 virtual void CheckNotCharacterAfterAnd(uint32_t c, 67 virtual void CheckNotCharacterAfterAnd(uint32_t c,
68 uint32_t mask, 68 uint32_t mask,
69 Label* on_not_equal); 69 Label* on_not_equal);
70 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, 70 virtual void CheckNotCharacterAfterMinusAnd(uc16 c,
71 uc16 minus, 71 uc16 minus,
72 uc16 mask, 72 uc16 mask,
73 Label* on_not_equal); 73 Label* on_not_equal);
74 // Checks whether the given offset from the current position is before
75 // the end of the string.
76 virtual void CheckPosition(int cp_offset, Label* on_outside_input);
74 virtual bool CheckSpecialCharacterClass(uc16 type, 77 virtual bool CheckSpecialCharacterClass(uc16 type,
75 int cp_offset, 78 int cp_offset,
76 bool check_offset, 79 bool check_offset,
77 Label* on_no_match); 80 Label* on_no_match);
78 virtual void DispatchByteMap(uc16 start, 81 virtual void DispatchByteMap(uc16 start,
79 Label* byte_map, 82 Label* byte_map,
80 const Vector<Label*>& destinations); 83 const Vector<Label*>& destinations);
81 virtual void DispatchHalfNibbleMap(uc16 start, 84 virtual void DispatchHalfNibbleMap(uc16 start,
82 Label* half_nibble_map, 85 Label* half_nibble_map,
83 const Vector<Label*>& destinations); 86 const Vector<Label*>& destinations);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // If the code object is relocated, the return address is fixed before 167 // If the code object is relocated, the return address is fixed before
165 // returning. 168 // returning.
166 static int CheckStackGuardState(Address return_address, Code* re_code); 169 static int CheckStackGuardState(Address return_address, Code* re_code);
167 170
168 // Called from RegExp if the backtrack stack limit is hit. 171 // Called from RegExp if the backtrack stack limit is hit.
169 // Tries to expand the stack. Returns the new stack-top pointer if 172 // Tries to expand the stack. Returns the new stack-top pointer if
170 // successful, or 0 if unable to grow the stack. 173 // successful, or 0 if unable to grow the stack.
171 // This function must not trigger a garbage collection. 174 // This function must not trigger a garbage collection.
172 static Address GrowStack(Address stack_top); 175 static Address GrowStack(Address stack_top);
173 176
174 // Checks whether the given offset from the current position is before
175 // the end of the string.
176 void CheckPosition(int cp_offset, Label* on_outside_input);
177
178 // The ebp-relative location of a regexp register. 177 // The ebp-relative location of a regexp register.
179 Operand register_location(int register_index); 178 Operand register_location(int register_index);
180 179
181 // The register containing the current character after LoadCurrentCharacter. 180 // The register containing the current character after LoadCurrentCharacter.
182 inline Register current_character() { return edx; } 181 inline Register current_character() { return edx; }
183 182
184 // The register containing the backtrack stack top. Provides a meaningful 183 // The register containing the backtrack stack top. Provides a meaningful
185 // name to the register. 184 // name to the register.
186 inline Register backtrack_stackpointer() { return ecx; } 185 inline Register backtrack_stackpointer() { return ecx; }
187 186
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 Label check_preempt_label_; 253 Label check_preempt_label_;
255 Label stack_overflow_label_; 254 Label stack_overflow_label_;
256 255
257 // Handle used to represent the generated code object itself. 256 // Handle used to represent the generated code object itself.
258 Handle<Object> self_; 257 Handle<Object> self_;
259 }; 258 };
260 259
261 }} // namespace v8::internal 260 }} // namespace v8::internal
262 261
263 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */ 262 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698