summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/dfg/DFGGraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGGraph.h')
-rw-r--r--Source/JavaScriptCore/dfg/DFGGraph.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGGraph.h b/Source/JavaScriptCore/dfg/DFGGraph.h
index 4091c48f7..3e6539353 100644
--- a/Source/JavaScriptCore/dfg/DFGGraph.h
+++ b/Source/JavaScriptCore/dfg/DFGGraph.h
@@ -441,6 +441,15 @@ public:
return m_codeBlock->usesArguments();
}
+ bool isCreatedThisArgument(int operand)
+ {
+ if (!operandIsArgument(operand))
+ return false;
+ if (operandToArgument(operand))
+ return false;
+ return m_codeBlock->specializationKind() == CodeForConstruct;
+ }
+
unsigned numSuccessors(BasicBlock* block)
{
return at(block->last()).numSuccessors();