Changeset 50143 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 27, 2009, 6:51:42 AM (16 years ago)
Author:
Csaba Osztrogonác
Message:

Rubber-stamped by Tor Arne Vestbø.

Patch by Peter Varga <[email protected]> on 2009-10-27
Fix typo in RegexInterpreter.cpp and RegexJIT.cpp alterantive to
alternative.

  • yarr/RegexInterpreter.cpp:

(JSC::Yarr::ByteCompiler::alternativeBodyDisjunction):
(JSC::Yarr::ByteCompiler::alternativeDisjunction):
(JSC::Yarr::ByteCompiler::emitDisjunction):

  • yarr/RegexJIT.cpp:

(JSC::Yarr::RegexGenerator::generateDisjunction):

Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r50120 r50143  
     12009-10-27  Peter Varga  <[email protected]>
     2
     3        Rubber-stamped by Tor Arne Vestbø.
     4
     5        Fix typo in RegexInterpreter.cpp and RegexJIT.cpp alterantive to
     6        alternative.
     7
     8        * yarr/RegexInterpreter.cpp:
     9        (JSC::Yarr::ByteCompiler::alternativeBodyDisjunction):
     10        (JSC::Yarr::ByteCompiler::alternativeDisjunction):
     11        (JSC::Yarr::ByteCompiler::emitDisjunction):
     12        * yarr/RegexJIT.cpp:
     13        (JSC::Yarr::RegexGenerator::generateDisjunction):
     14
    1152009-10-26  Laszlo Gombos  <[email protected]>
    216
  • trunk/JavaScriptCore/yarr/RegexInterpreter.cpp

    r47338 r50143  
    14911491    }
    14921492
    1493     void alterantiveBodyDisjunction()
     1493    void alternativeBodyDisjunction()
    14941494    {
    14951495        int newAlternativeIndex = m_bodyDisjunction->terms.size();
     
    15001500    }
    15011501
    1502     void alterantiveDisjunction()
     1502    void alternativeDisjunction()
    15031503    {
    15041504        int newAlternativeIndex = m_bodyDisjunction->terms.size();
     
    15161516            if (alt) {
    15171517                if (disjunction == m_pattern.m_body)
    1518                     alterantiveBodyDisjunction();
     1518                    alternativeBodyDisjunction();
    15191519                else
    1520                     alterantiveDisjunction();
     1520                    alternativeDisjunction();
    15211521            }
    15221522
  • trunk/JavaScriptCore/yarr/RegexJIT.cpp

    r50109 r50143  
    12651265        //
    12661266        // FIXME: a nice improvement here may be to stop trying to match sooner, based on the least
    1267         // of the minimum-alterantive-lengths.  E.g. if I have two alternatives of length 200 and 150,
     1267        // of the minimum-alternative-lengths.  E.g. if I have two alternatives of length 200 and 150,
    12681268        // and a string of length 100, we'll end up looping index from 0 to 100, checking whether there
    12691269        // is sufficient input to run either alternative (constantly failing).  If there had been only
Note: See TracChangeset for help on using the changeset viewer.