Changeset 113445 in webkit for trunk/Source/JavaScriptCore/heap
- Timestamp:
- Apr 6, 2012, 9:09:22 AM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore/heap
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/Heap.cpp
r113141 r113445 773 773 // If JavaScript is running, it's not safe to recompile, since we'll end 774 774 // up throwing away code that is live on the stack. 775 ASSERT(!m_globalData->dynamicGlobalObject); 776 775 if (m_globalData->dynamicGlobalObject) 776 return; 777 777 778 for (FunctionExecutable* current = m_functions.head(); current; current = current->next()) 778 779 current->discardCode(); … … 783 784 if (!m_isSafeToCollect) 784 785 return; 785 if (!m_globalData->dynamicGlobalObject) 786 discardAllCompiledCode(); 786 discardAllCompiledCode(); 787 787 788 788 collect(DoSweep); -
trunk/Source/JavaScriptCore/heap/Heap.h
r113141 r113445 149 149 double lastGCLength() { return m_lastGCLength; } 150 150 151 void discardAllCompiledCode();151 JS_EXPORT_PRIVATE void discardAllCompiledCode(); 152 152 153 153 private:
Note:
See TracChangeset
for help on using the changeset viewer.