Ignore:
Timestamp:
Jul 20, 2009, 3:03:55 AM (16 years ago)
Author:
Simon Hausmann
Message:

2009-07-20 Zoltan Horvath <[email protected]>

Reviewed by Darin Adler.

Allow custom memory allocation control in JavaScriptCore's RegexPattern.h
https://bugs.webkit.org/show_bug.cgi?id=27343

Inherits RegexPattern.h's structs (which have been instantiated by operator new) from FastAllocBase:

CharacterClass (new call: JavaScriptCore/yarr/RegexCompiler.cpp:144)
PatternAlternative (new call: JavaScriptCore/yarr/RegexPattern.h:221)
PatternDisjunction (new call: JavaScriptCore/yarr/RegexCompiler.cpp:446)

  • yarr/RegexPattern.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/yarr/RegexPattern.h

    r44174 r46119  
    5858};
    5959
    60 struct CharacterClass {
     60struct CharacterClass : FastAllocBase {
    6161    Vector<UChar> m_matches;
    6262    Vector<CharacterRange> m_ranges;
     
    182182};
    183183
    184 struct PatternAlternative {
     184struct PatternAlternative : FastAllocBase {
    185185    PatternAlternative(PatternDisjunction* disjunction)
    186186        : m_parent(disjunction)
     
    206206};
    207207
    208 struct PatternDisjunction {
     208struct PatternDisjunction : FastAllocBase {
    209209    PatternDisjunction(PatternAlternative* parent = 0)
    210210        : m_parent(parent)
Note: See TracChangeset for help on using the changeset viewer.