Changeset 47405 in webkit for trunk/JavaScriptCore/bytecode/EvalCodeCache.h
- Timestamp:
- Aug 17, 2009, 6:05:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/EvalCodeCache.h
r47304 r47405 43 43 class EvalCodeCache { 44 44 public: 45 PassRefPtr< EvalExecutable> get(ExecState* exec, const UString& evalSource, ScopeChainNode* scopeChain, JSValue& exceptionValue)45 PassRefPtr<CacheableEvalExecutable> get(ExecState* exec, const UString& evalSource, ScopeChainNode* scopeChain, JSValue& exceptionValue) 46 46 { 47 RefPtr< EvalExecutable> evalExecutable;47 RefPtr<CacheableEvalExecutable> evalExecutable; 48 48 49 49 if (evalSource.size() < maxCacheableSourceLength && (*scopeChain->begin())->isVariableObject()) … … 51 51 52 52 if (!evalExecutable) { 53 evalExecutable = new EvalExecutable(makeSource(evalSource));53 evalExecutable = CacheableEvalExecutable::create(makeSource(evalSource)); 54 54 exceptionValue = evalExecutable->parse(exec); 55 55 if (exceptionValue) … … 75 75 static const int maxCacheEntries = 64; 76 76 77 typedef HashMap<RefPtr<UString::Rep>, RefPtr< EvalExecutable> > EvalCacheMap;77 typedef HashMap<RefPtr<UString::Rep>, RefPtr<CacheableEvalExecutable> > EvalCacheMap; 78 78 EvalCacheMap m_cacheMap; 79 79 };
Note:
See TracChangeset
for help on using the changeset viewer.