Ignore:
Timestamp:
Jun 24, 2010, 11:33:48 PM (15 years ago)
Author:
[email protected]
Message:

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

Patch by Renata Hodovan <[email protected]> on 2010-06-24
Reviewed by Geoffrey Garen.

  • 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

    r55322 r61833  
    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.