Changeset 172961 in webkit for trunk/Source/JavaScriptCore/dfg/DFGTierUpCheckInjectionPhase.cpp
- Timestamp:
- Aug 26, 2014, 9:46:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGTierUpCheckInjectionPhase.cpp
r172940 r172961 51 51 return false; 52 52 53 if (m_graph.m_profiledBlock->m_didFailFTLCompilation) { 54 removeFTLProfiling(); 53 if (m_graph.m_profiledBlock->m_didFailFTLCompilation) 55 54 return false; 56 }57 55 58 56 #if ENABLE(FTL_JIT) 59 57 FTL::CapabilityLevel level = FTL::canCompile(m_graph); 60 if (level == FTL::CannotCompile) { 61 removeFTLProfiling(); 58 if (level == FTL::CannotCompile) 62 59 return false; 63 }64 60 65 61 if (!Options::enableOSREntryToFTL()) … … 123 119 #endif // ENABLE(FTL_JIT) 124 120 } 125 126 private:127 void removeFTLProfiling()128 {129 for (BlockIndex blockIndex = m_graph.numBlocks(); blockIndex--;) {130 BasicBlock* block = m_graph.block(blockIndex);131 if (!block)132 continue;133 134 for (unsigned nodeIndex = 0; nodeIndex < block->size(); ++nodeIndex) {135 Node* node = block->at(nodeIndex);136 switch (node->op()) {137 case ProfiledCall:138 node->setOp(Call);139 break;140 141 case ProfiledConstruct:142 node->setOp(Construct);143 break;144 145 default:146 break;147 }148 }149 }150 }151 121 }; 152 122
Note:
See TracChangeset
for help on using the changeset viewer.