Changeset 53860 in webkit
- Timestamp:
- Jan 26, 2010 11:22:51 AM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/APIShims.h
r52856 r53860 35 35 protected: 36 36 APIEntryShimWithoutLock(JSGlobalData* globalData, bool registerThread) 37 : m_entryIdentifierTable(setCurrentIdentifierTable(globalData->identifierTable)) 37 : m_globalData(globalData) 38 , m_entryIdentifierTable(setCurrentIdentifierTable(globalData->identifierTable)) 38 39 { 39 40 if (registerThread) 40 41 globalData->heap.registerThread(); 42 m_globalData->timeoutChecker.start(); 41 43 } 42 44 43 45 ~APIEntryShimWithoutLock() 44 46 { 47 m_globalData->timeoutChecker.stop(); 45 48 setCurrentIdentifierTable(m_entryIdentifierTable); 46 49 } 47 50 48 51 private: 52 JSGlobalData* m_globalData; 49 53 IdentifierTable* m_entryIdentifierTable; 50 54 }; … … 77 81 { 78 82 resetCurrentIdentifierTable(); 83 m_globalData->timeoutChecker.start(); 79 84 } 80 85 81 86 ~APICallbackShim() 82 87 { 88 m_globalData->timeoutChecker.stop(); 83 89 setCurrentIdentifierTable(m_globalData->identifierTable); 84 90 } -
trunk/JavaScriptCore/ChangeLog
r53854 r53860 1 2010-01-26 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Geoffrey Garen. 4 5 Using JavaScriptCore API with a webkit vended context can result in slow script dialog 6 https://bugs.webkit.org/show_bug.cgi?id=34172 7 8 Make the APIShim correctly increment and decrement the timeout 9 entry counter. 10 11 * API/APIShims.h: 12 (JSC::APIEntryShimWithoutLock::APIEntryShimWithoutLock): 13 (JSC::APIEntryShimWithoutLock::~APIEntryShimWithoutLock): 14 (JSC::APICallbackShim::APICallbackShim): 15 (JSC::APICallbackShim::~APICallbackShim): 16 1 17 2010-01-26 Simon Hausmann <simon.hausmann@nokia.com> 2 18
Note: See TracChangeset
for help on using the changeset viewer.