Ignore:
Timestamp:
Jun 25, 2010, 5:41:49 PM (15 years ago)
Author:
[email protected]
Message:

2010-06-25 Renata Hodovan <[email protected]>

Reviewed by Geoffrey Garen.

Merge RegExp constructor and RegExp::create methods into one.
Both of function are called with tree parameters and check whether
flags (the third param) is given or not.
Simplify hash lookups in RegExpCache::create with giving them an extra
iterator parameter.
https://bugs.webkit.org/show_bug.cgi?id=41055

  • runtime/RegExp.cpp: (JSC::RegExp::RegExp):
  • runtime/RegExp.h:
  • runtime/RegExpCache.cpp: (JSC::RegExpCache::lookupOrCreate): (JSC::RegExpCache::create):
  • runtime/RegExpCache.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/RegExp.h

    r61845 r61924  
    3838    class RegExp : public RefCounted<RegExp> {
    3939    public:
    40         static PassRefPtr<RegExp> create(JSGlobalData* globalData, const UString& pattern);
    4140        static PassRefPtr<RegExp> create(JSGlobalData* globalData, const UString& pattern, const UString& flags);
    4241#if !ENABLE(YARR)
     
    5756
    5857    private:
    59         RegExp(JSGlobalData* globalData, const UString& pattern);
    6058        RegExp(JSGlobalData* globalData, const UString& pattern, const UString& flags);
    6159
Note: See TracChangeset for help on using the changeset viewer.