Changeset 44206

Show
Ignore:
Timestamp:
05/27/09 17:27:35 (10 months ago)
Author:
mrowe@apple.com
Message:

Merge r44169.

Location:
branches/WWDC-2009-branch/JavaScriptCore
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/WWDC-2009-branch/JavaScriptCore/ChangeLog

    r44026 r44206  
     12009-05-27  Mark Rowe  <mrowe@apple.com> 
     2 
     3        Merge r44169. 
     4 
     5    2009-05-26  Gavin Barraclough  <barraclough@apple.com> 
     6 
     7        Reviewed by Oliver "pieces of eight" Hunt. 
     8 
     9        When reseting RegexPattern class, should fully reset the class, not just bits of it. 
     10        In particular, we delete the cached character classes (for wordchars, etc), but do 
     11        not reset the set of pointers to the cached classes.  In the case of a repeated parse 
     12        due to an illegal back-reference we will continue to use the deleted character class. 
     13 
     14        * yarr/RegexPattern.h: 
     15        (JSC::Yarr::RegexPattern::reset): 
     16 
    1172009-05-21  Mark Rowe  <mrowe@apple.com> 
    218 
  • branches/WWDC-2009-branch/JavaScriptCore/yarr/RegexPattern.h

    r42853 r44206  
    264264        m_maxBackReference = 0; 
    265265 
     266        newlineCached = 0; 
     267        digitsCached = 0; 
     268        spacesCached = 0; 
     269        wordcharCached = 0; 
     270        nondigitsCached = 0; 
     271        nonspacesCached = 0; 
     272        nonwordcharCached = 0; 
     273 
    266274        deleteAllValues(m_disjunctions); 
    267275        m_disjunctions.clear();