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

Side by Side Diff: src/assembler-re2k.cc

Issue 11352: * Match literals in a case independent way.... (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 | « src/assembler-re2k.h ('k') | src/bytecodes-re2k.h » ('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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 EmitOrLink(on_match); 189 EmitOrLink(on_match);
190 } 190 }
191 191
192 192
193 void Re2kAssembler::CheckNotCharacter(uc16 c, Label* on_mismatch) { 193 void Re2kAssembler::CheckNotCharacter(uc16 c, Label* on_mismatch) {
194 Emit(BC_CHECK_NOT_CHAR); 194 Emit(BC_CHECK_NOT_CHAR);
195 Emit16(c); 195 Emit16(c);
196 EmitOrLink(on_mismatch); 196 EmitOrLink(on_mismatch);
197 } 197 }
198 198
199 void Re2kAssembler::OrThenCheckNotCharacter(uc16 c,
200 uc16 mask,
201 Label* on_mismatch) {
202 Emit(BC_OR_CHECK_NOT_CHAR);
203 Emit16(c);
204 Emit16(mask);
205 EmitOrLink(on_mismatch);
206 }
207
208
209 void Re2kAssembler::MinusOrThenCheckNotCharacter(uc16 c,
210 uc16 mask,
211 Label* on_mismatch) {
212 Emit(BC_MINUS_OR_CHECK_NOT_CHAR);
213 Emit16(c);
214 Emit16(mask);
215 EmitOrLink(on_mismatch);
216 }
217
199 218
200 void Re2kAssembler::CheckCharacterLT(uc16 limit, Label* on_less) { 219 void Re2kAssembler::CheckCharacterLT(uc16 limit, Label* on_less) {
201 Emit(BC_CHECK_LT); 220 Emit(BC_CHECK_LT);
202 Emit16(limit); 221 Emit16(limit);
203 EmitOrLink(on_less); 222 EmitOrLink(on_less);
204 } 223 }
205 224
206 225
207 void Re2kAssembler::CheckCharacterGT(uc16 limit, Label* on_greater) { 226 void Re2kAssembler::CheckCharacterGT(uc16 limit, Label* on_greater) {
208 Emit(BC_CHECK_GT); 227 Emit(BC_CHECK_GT);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 buffer_ = Vector<byte>::New(old_buffer.length() * 2); 329 buffer_ = Vector<byte>::New(old_buffer.length() * 2);
311 own_buffer_ = true; 330 own_buffer_ = true;
312 memcpy(buffer_.start(), old_buffer.start(), old_buffer.length()); 331 memcpy(buffer_.start(), old_buffer.start(), old_buffer.length());
313 if (old_buffer_was_our_own) { 332 if (old_buffer_was_our_own) {
314 old_buffer.Dispose(); 333 old_buffer.Dispose();
315 } 334 }
316 } 335 }
317 336
318 337
319 } } // namespace v8::internal 338 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler-re2k.h ('k') | src/bytecodes-re2k.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698