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

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

Issue 12944: * Implemented case-insensitive back-reference matching in irregexp-ia32. (Closed)
Patch Set: Review comments addressed 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
« no previous file with comments | « no previous file | src/regexp-macro-assembler-ia32.cc » ('j') | 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 static const int kInputEndOffset = kInputStartOffset + sizeof(uint32_t); 112 static const int kInputEndOffset = kInputStartOffset + sizeof(uint32_t);
113 static const int kRegisterOutput = kInputEndOffset + sizeof(uint32_t); 113 static const int kRegisterOutput = kInputEndOffset + sizeof(uint32_t);
114 static const int kAtStart = kRegisterOutput + sizeof(uint32_t); 114 static const int kAtStart = kRegisterOutput + sizeof(uint32_t);
115 115
116 // Initial size of code buffer. 116 // Initial size of code buffer.
117 static const size_t kRegExpCodeSize = 1024; 117 static const size_t kRegExpCodeSize = 1024;
118 // Initial size of constant buffers allocated during compilation. 118 // Initial size of constant buffers allocated during compilation.
119 static const int kRegExpConstantsSize = 256; 119 static const int kRegExpConstantsSize = 256;
120 // Only unroll loops up to this length. 120 // Only unroll loops up to this length.
121 static const int kMaxInlineStringTests = 8; 121 static const int kMaxInlineStringTests = 8;
122 // Special "character" marking end of input. 122
123 static const uint32_t kEndOfInput = ~0; 123 // Compares two-byte strings case insenstively.
124 static int CaseInsensitiveCompareUC16(uc16** buffer,
125 int byte_offset1,
126 int byte_offset2,
127 size_t byte_length);
124 128
125 // The ebp-relative location of a regexp register. 129 // The ebp-relative location of a regexp register.
126 Operand register_location(int register_index); 130 Operand register_location(int register_index);
127 131
128 // The register containing the current character after LoadCurrentCharacter. 132 // The register containing the current character after LoadCurrentCharacter.
129 Register current_character(); 133 Register current_character();
130 134
131 // Byte size of chars in the string to match (decided by the Mode argument) 135 // Byte size of chars in the string to match (decided by the Mode argument)
132 size_t char_size(); 136 size_t char_size();
133 137
(...skipping 30 matching lines...) Expand all
164 Label start_label_; 168 Label start_label_;
165 Label success_label_; 169 Label success_label_;
166 Label exit_label_; 170 Label exit_label_;
167 // Handle used to represent the generated code object itself. 171 // Handle used to represent the generated code object itself.
168 Handle<Object> self_; 172 Handle<Object> self_;
169 }; 173 };
170 174
171 }} // namespace v8::internal 175 }} // namespace v8::internal
172 176
173 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */ 177 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */
OLDNEW
« no previous file with comments | « no previous file | src/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698