-
fpizlo@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=74170 Reviewed by Geoff Garen. DFG optimizes for rare cases only when the rare case counter is above some threshold and it also constitutes a large enough fraction of total function executions. Also added some minor debug logic. * bytecode/CodeBlock.cpp: (JSC::CodeBlock::CodeBlock): * bytecode/CodeBlock.h: (JSC::CodeBlock::likelyToTakeSlowCase): (JSC::CodeBlock::couldTakeSlowCase): (JSC::CodeBlock::likelyToTakeSpecialFastCase): (JSC::CodeBlock::likelyToTakeDeepestSlowCase): (JSC::CodeBlock::likelyToTakeAnySlowCase): (JSC::CodeBlock::executionEntryCount): * dfg/DFGByteCodeParser.cpp: (JSC::DFG::ByteCodeParser::makeSafe): (JSC::DFG::ByteCodeParser::makeDivSafe): (JSC::DFG::ByteCodeParser::handleCall): (JSC::DFG::ByteCodeParser::parseBlock): * dfg/DFGDriver.cpp: (JSC::DFG::compile): * jit/JIT.cpp: (JSC::JIT::privateCompile): * runtime/Heuristics.cpp: (JSC::Heuristics::initializeHeuristics): * runtime/Heuristics.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@102489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
b490fcff