Changeset 61833 in webkit for trunk/JavaScriptCore/runtime/RegExpCache.h
- Timestamp:
- Jun 24, 2010, 11:33:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/RegExpCache.h
r61623 r61833 36 36 37 37 class RegExpCache { 38 39 typedef HashMap<RegExpKey, RefPtr<RegExp> > RegExpCacheMap; 40 38 41 public: 39 42 PassRefPtr<RegExp> lookupOrCreate(const UString& patternString, const UString& flags); 40 PassRefPtr<RegExp> create(const UString& patternString, const UString& flags );43 PassRefPtr<RegExp> create(const UString& patternString, const UString& flags, RegExpCacheMap::iterator iterator); 41 44 RegExpCache(JSGlobalData* globalData); 42 45 … … 45 48 static const int maxCacheableEntries = 256; 46 49 47 typedef HashMap<RegExpKey, RefPtr<RegExp> > RegExpCacheMap;48 50 RegExpKey patternKeyArray[maxCacheableEntries]; 49 51 RegExpCacheMap m_cacheMap;
Note:
See TracChangeset
for help on using the changeset viewer.