Revision: 11314
Author: [email protected]
Date: Fri Apr 13 04:47:31 2012
Log: MIPS: Implement CheckNotCharacterAfterMinusAnd. This is a commit
of http://codereview.chromium.org/9721011/ for Daniel Kalmar
http://code.google.com/p/v8/source/detail?r=11314
Modified:
/branches/bleeding_edge/src/mips/regexp-macro-assembler-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/regexp-macro-assembler-mips.cc Thu Apr
12 00:45:25 2012
+++ /branches/bleeding_edge/src/mips/regexp-macro-assembler-mips.cc Fri Apr
13 04:47:31 2012
@@ -480,7 +480,10 @@
uc16 minus,
uc16 mask,
Label* on_not_equal) {
- UNIMPLEMENTED_MIPS();
+ ASSERT(minus < String::kMaxUtf16CodeUnit);
+ __ Subu(a0, current_character(), Operand(minus));
+ __ And(a0, a0, Operand(mask));
+ BranchOrBacktrack(on_not_equal, ne, a0, Operand(c));
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev