Changeset 70764 in webkit


Ignore:
Timestamp:
Oct 28, 2010 4:17:18 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-28 Peter Varga <pvarga@inf.u-szeged.hu>

Reviewed by Csaba Osztrogonác.

resetAssertionMatches() is an unused function in YARR Interpreter
https://bugs.webkit.org/show_bug.cgi?id=48503

The resetAssertionMatches() function is removed from YARR Interpreter
because it's never called.

  • yarr/RegexInterpreter.cpp: (JSC::Yarr::Interpreter::resetMatches):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r70752 r70764  
     12010-10-28  Peter Varga  <pvarga@inf.u-szeged.hu>
     2
     3        Reviewed by Csaba Osztrogonác.
     4
     5        resetAssertionMatches() is an unused function in YARR Interpreter
     6        https://bugs.webkit.org/show_bug.cgi?id=48503
     7
     8        The resetAssertionMatches() function is removed from YARR Interpreter
     9        because it's never called.
     10
     11        * yarr/RegexInterpreter.cpp:
     12        (JSC::Yarr::Interpreter::resetMatches):
     13
    1142010-10-28  Zoltan Herczeg  <zherczeg@webkit.org>
    215
  • trunk/JavaScriptCore/yarr/RegexInterpreter.cpp

    r69847 r70764  
    591591        unsigned count = term.atom.parenthesesDisjunction->m_numSubpatterns;
    592592        context->restoreOutput(output, firstSubpatternId, count);
    593     }
    594     void resetAssertionMatches(ByteTerm& term)
    595     {
    596         unsigned firstSubpatternId = term.atom.subpatternId;
    597         unsigned count = term.atom.parenthesesDisjunction->m_numSubpatterns;
    598         for (unsigned i = 0; i < (count << 1); ++i)
    599             output[(firstSubpatternId << 1) + i] = -1;
    600593    }
    601594    bool parenthesesDoBacktrack(ByteTerm& term, BackTrackInfoParentheses* backTrack)
Note: See TracChangeset for help on using the changeset viewer.