Saying "jitType() == JITCode::DFGJIT" is almost never correct.
<http://webkit.org/b/128045>
Reviewed by Filip Pizlo.
JITCode::isOptimizingJIT(jitType()) is the right way to say it.
* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::addBreakpoint):
(JSC::CodeBlock::setSteppingMode):
* runtime/VM.cpp:
(JSC::SetEnabledProfilerFunctor::operator()):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/JavaScriptCore/bytecode/CodeBlock.cpp b/Source/JavaScriptCore/bytecode/CodeBlock.cpp
index 1c953c1..94d6f01 100644
--- a/Source/JavaScriptCore/bytecode/CodeBlock.cpp
+++ b/Source/JavaScriptCore/bytecode/CodeBlock.cpp
@@ -3558,14 +3558,14 @@
{
m_numBreakpoints += numBreakpoints;
ASSERT(m_numBreakpoints);
- if (jitType() == JITCode::DFGJIT)
+ if (JITCode::isOptimizingJIT(jitType()))
jettison();
}
void CodeBlock::setSteppingMode(CodeBlock::SteppingMode mode)
{
m_steppingMode = mode;
- if (mode == SteppingModeEnabled && jitType() == JITCode::DFGJIT)
+ if (mode == SteppingModeEnabled && JITCode::isOptimizingJIT(jitType()))
jettison();
}