Changeset 108484 in webkit for trunk/Source/JavaScriptCore/yarr


Ignore:
Timestamp:
Feb 22, 2012, 5:05:14 AM (13 years ago)
Author:
Csaba Osztrogonác
Message:

Unreviewed, rolling out r108456.
http://trac.webkit.org/changeset/108456
https://bugs.webkit.org/show_bug.cgi?id=79223

Broke fast/regex/pcre-test-4.html and cannot find anyone on
IRC (Requested by zherczeg on #webkit).

Patch by Sheriff Bot <[email protected]> on 2012-02-22

  • yarr/YarrJIT.cpp:

(JSC::Yarr::YarrGenerator::backtrackPatternCharacterGreedy):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/yarr/YarrJIT.cpp

    r108456 r108484  
    844844        YarrOp& op = m_ops[opIndex];
    845845        PatternTerm* term = op.m_term;
    846         UChar ch = term->patternCharacter;
    847846
    848847        const RegisterID countRegister = regT1;
     
    850849        m_backtrackingState.link(this);
    851850
    852         if ((ch > 0xff) && (m_charSize == Char8)) {
    853             // Have a 16 bit pattern character and an 8 bit string - short circuit
    854             m_backtrackingState.append(op.m_jumps);
    855         } else {
    856             loadFromFrame(term->frameLocation, countRegister);
    857             m_backtrackingState.append(branchTest32(Zero, countRegister));
    858             sub32(TrustedImm32(1), countRegister);
    859             sub32(TrustedImm32(1), index);
    860             jump(op.m_reentry);
    861         }
     851        loadFromFrame(term->frameLocation, countRegister);
     852        m_backtrackingState.append(branchTest32(Zero, countRegister));
     853        sub32(TrustedImm32(1), countRegister);
     854        sub32(TrustedImm32(1), index);
     855        jump(op.m_reentry);
    862856    }
    863857
Note: See TracChangeset for help on using the changeset viewer.