summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/tools/CodeProfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/tools/CodeProfile.cpp')
-rw-r--r--Source/JavaScriptCore/tools/CodeProfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/JavaScriptCore/tools/CodeProfile.cpp b/Source/JavaScriptCore/tools/CodeProfile.cpp
index beed4b2d5..0020c7285 100644
--- a/Source/JavaScriptCore/tools/CodeProfile.cpp
+++ b/Source/JavaScriptCore/tools/CodeProfile.cpp
@@ -107,7 +107,7 @@ void CodeProfile::sample(void* pc, void** framePointer)
CodeBlock* codeBlock = static_cast<CodeBlock*>(ownerUID);
if (codeBlock->getJITType() == JITCode::DFGJIT)
type = DFGJIT;
- else if (codeBlock->canCompileWithDFGState() == CodeBlock::CompileWithDFGFalse)
+ else if (codeBlock->canCompileWithDFGState() != DFG::CanCompile)
type = BaselineOnly;
else if (codeBlock->replacement())
type = BaselineOSR;