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