if (thisArgumentReg.isValid())
thisArgument = get(thisArgumentReg);
else
- thisArgument = 0;
+ thisArgument = nullptr;
JSCell* calleeCell;
Node* callTargetForCheck;
}
ASSERT(calleeCell);
- addToGraph(CheckCell, OpInfo(m_graph.freeze(calleeCell)), callTargetForCheck, thisArgument);
+ if (thisArgument)
+ addToGraph(Phantom, thisArgument);
+ addToGraph(CheckCell, OpInfo(m_graph.freeze(calleeCell)), callTargetForCheck);
}
Node* ByteCodeParser::getArgumentCount()
if (handleIntrinsicGetter(destinationOperand, variant, base,
[&] () {
- addToGraph(CheckCell, OpInfo(m_graph.freeze(variant.intrinsicFunction())), getter, base);
+ addToGraph(Phantom, base);
+ addToGraph(CheckCell, OpInfo(m_graph.freeze(variant.intrinsicFunction())), getter);
})) {
addToGraph(Phantom, getter);
return;