Changeset 112624 in webkit for trunk/Source/JavaScriptCore/heap/Heap.cpp
- Timestamp:
- Mar 29, 2012, 5:36:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/Heap.cpp
r111877 r112624 766 766 } 767 767 768 void Heap::discardAllCompiledCode() 769 { 770 // If JavaScript is running, it's not safe to recompile, since we'll end 771 // up throwing away code that is live on the stack. 772 ASSERT(!m_globalData->dynamicGlobalObject); 773 774 for (FunctionExecutable* current = m_functions.head(); current; current = current->next()) 775 current->discardCode(); 776 } 777 768 778 void Heap::collectAllGarbage() 769 779 { … … 771 781 return; 772 782 if (!m_globalData->dynamicGlobalObject) 773 m_globalData->recompileAllJSFunctions();783 discardAllCompiledCode(); 774 784 775 785 collect(DoSweep); … … 926 936 } 927 937 938 void Heap::addFunctionExecutable(FunctionExecutable* executable) 939 { 940 m_functions.append(executable); 941 } 942 943 void Heap::removeFunctionExecutable(FunctionExecutable* executable) 944 { 945 m_functions.remove(executable); 946 } 947 928 948 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.