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):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.