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

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

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
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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 241
242 void IrregexpAssembler::CheckNotBackReferenceNoCase(int capture_index, 242 void IrregexpAssembler::CheckNotBackReferenceNoCase(int capture_index,
243 Label* on_mismatch) { 243 Label* on_mismatch) {
244 Emit(BC_CHECK_NOT_BACK_REF_NO_CASE); 244 Emit(BC_CHECK_NOT_BACK_REF_NO_CASE);
245 Emit(capture_index); 245 Emit(capture_index);
246 EmitOrLink(on_mismatch); 246 EmitOrLink(on_mismatch);
247 } 247 }
248 248
249 249
250 void IrregexpAssembler::CheckNotRegistersEqual(int reg1,
251 int reg2,
252 Label* on_not_equal) {
253 Emit(BC_CHECK_NOT_REGS_EQUAL);
254 Emit(reg1);
255 Emit(reg2);
256 EmitOrLink(on_not_equal);
257 }
258
259
250 void IrregexpAssembler::CheckRegister(int byte_code, 260 void IrregexpAssembler::CheckRegister(int byte_code,
251 int reg_index, 261 int reg_index,
252 uint16_t vs, 262 uint16_t vs,
253 Label* on_true) { 263 Label* on_true) {
254 Emit(byte_code); 264 Emit(byte_code);
255 Emit(reg_index); 265 Emit(reg_index);
256 Emit16(vs); 266 Emit16(vs);
257 EmitOrLink(on_true); 267 EmitOrLink(on_true);
258 } 268 }
259 269
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 buffer_ = Vector<byte>::New(old_buffer.length() * 2); 348 buffer_ = Vector<byte>::New(old_buffer.length() * 2);
339 own_buffer_ = true; 349 own_buffer_ = true;
340 memcpy(buffer_.start(), old_buffer.start(), old_buffer.length()); 350 memcpy(buffer_.start(), old_buffer.start(), old_buffer.length());
341 if (old_buffer_was_our_own) { 351 if (old_buffer_was_our_own) {
342 old_buffer.Dispose(); 352 old_buffer.Dispose();
343 } 353 }
344 } 354 }
345 355
346 356
347 } } // namespace v8::internal 357 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler-irregexp.h ('k') | src/bytecodes-irregexp.h » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698