Irregexp (bytecodes) don't forget to update current position
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 8 Dec 2008 09:43:34 +0000 (09:43 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 8 Dec 2008 09:43:34 +0000 (09:43 +0000)
on a no-case successful backref.
Review URL: http://codereview.chromium.org/13615

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@932 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/interpreter-irregexp.cc

index afc58ca80fc6c01e69730631605e0c9eb15544d8..73701b9ac18c033764818bf75424653efc4990cd 100644 (file)
@@ -381,6 +381,7 @@ static bool RawMatch(const byte* code_base,
           break;
         } else {
           if (BackRefMatchesNoCase(from, current, len, subject)) {
+            current += len;
             pc += BC_CHECK_NOT_BACK_REF_NO_CASE_LENGTH;
           } else {
             pc = code_base + Load32(pc + 2);