Changeset 39910 in webkit for trunk/JavaScriptCore/bytecode/EvalCodeCache.h
- Timestamp:
- Jan 14, 2009, 2:14:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/EvalCodeCache.h
r39670 r39910 1 1 /* 2 * Copyright (C) 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 69 69 bool isEmpty() const { return m_cacheMap.isEmpty(); } 70 70 71 void mark() 72 { 73 EvalCacheMap::iterator end = m_cacheMap.end(); 74 for (EvalCacheMap::iterator ptr = m_cacheMap.begin(); ptr != end; ++ptr) 75 ptr->second->mark(); 76 } 71 77 private: 72 78 static const int maxCacheableSourceLength = 256; 73 79 static const int maxCacheEntries = 64; 74 80 75 HashMap<RefPtr<UString::Rep>, RefPtr<EvalNode> > m_cacheMap; 81 typedef HashMap<RefPtr<UString::Rep>, RefPtr<EvalNode> > EvalCacheMap; 82 EvalCacheMap m_cacheMap; 76 83 }; 77 84
Note:
See TracChangeset
for help on using the changeset viewer.