diff modules/javafx.web/src/main/native/Source/JavaScriptCore/dfg/DFGSSALoweringPhase.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
line wrap: on
line diff
--- a/modules/javafx.web/src/main/native/Source/JavaScriptCore/dfg/DFGSSALoweringPhase.cpp	Fri Mar 01 13:54:26 2019 +0530
+++ b/modules/javafx.web/src/main/native/Source/JavaScriptCore/dfg/DFGSSALoweringPhase.cpp	Fri Mar 08 14:03:47 2019 +0530
@@ -130,10 +130,15 @@
 
         Node* length = m_insertionSet.insertNode(
             m_nodeIndex, SpecInt32Only, op, m_node->origin,
-            OpInfo(m_node->arrayMode().asWord()), base, storage);
-        m_insertionSet.insertNode(
+            OpInfo(m_node->arrayMode().asWord()), Edge(base.node(), KnownCellUse), storage);
+        Node* checkInBounds = m_insertionSet.insertNode(
             m_nodeIndex, SpecInt32Only, CheckInBounds, m_node->origin,
             index, Edge(length, KnownInt32Use));
+
+        AdjacencyList adjacencyList = m_graph.copyVarargChildren(m_node);
+        m_graph.m_varArgChildren.append(Edge(checkInBounds, UntypedUse));
+        adjacencyList.setNumChildren(adjacencyList.numChildren() + 1);
+        m_node->children = adjacencyList;
         return true;
     }