comparison modules/javafx.web/src/main/native/Source/JavaScriptCore/dfg/DFGArgumentsEliminationPhase.cpp @ 11208:db2c977a840b

8220147: Cherry pick GTK WebKit 2.22.7 changes Reviewed-by: mbilla, kcr
author arajkumar
date Fri, 08 Mar 2019 14:03:47 +0530
parents ab4db0272524
children a1fb556cdd7d
comparison
equal deleted inserted replaced
6:aeff7e7e12f1 7:07f55c2e28d5
765 VirtualRegister arg = virtualRegisterForArgument(index + 1); 765 VirtualRegister arg = virtualRegisterForArgument(index + 1);
766 if (inlineCallFrame) 766 if (inlineCallFrame)
767 arg += inlineCallFrame->stackOffset; 767 arg += inlineCallFrame->stackOffset;
768 data = m_graph.m_stackAccessData.add(arg, FlushedJSValue); 768 data = m_graph.m_stackAccessData.add(arg, FlushedJSValue);
769 769
770 Node* check = nullptr;
770 if (!inlineCallFrame || inlineCallFrame->isVarargs()) { 771 if (!inlineCallFrame || inlineCallFrame->isVarargs()) {
771 insertionSet.insertNode( 772 check = insertionSet.insertNode(
772 nodeIndex, SpecNone, CheckInBounds, node->origin, 773 nodeIndex, SpecNone, CheckInBounds, node->origin,
773 m_graph.varArgChild(node, 1), Edge(getArrayLength(candidate), Int32Use)); 774 m_graph.varArgChild(node, 1), Edge(getArrayLength(candidate), Int32Use));
774 } 775 }
775 776
776 result = insertionSet.insertNode( 777 result = insertionSet.insertNode(
777 nodeIndex, node->prediction(), GetStack, node->origin, OpInfo(data)); 778 nodeIndex, node->prediction(), GetStack, node->origin, OpInfo(data), Edge(check, UntypedUse));
778 } 779 }
779 } 780 }
780 781
781 if (!result) { 782 if (!result) {
782 NodeType op; 783 NodeType op;