Title: [288191] releases/WebKitGTK/webkit-2.34/Source/_javascript_Core
Revision
288191
Author
[email protected]
Date
2022-01-19 04:55:46 -0800 (Wed, 19 Jan 2022)

Log Message

Merge r284506 - canDoFastSpread should also check that the Structure is from the global object we're watching
https://bugs.webkit.org/show_bug.cgi?id=231976
<rdar://84340372>

Reviewed by Keith Miller.

* dfg/DFGGraph.cpp:
(JSC::DFG::Graph::canDoFastSpread):

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/ChangeLog (288190 => 288191)


--- releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/ChangeLog	2022-01-19 12:53:33 UTC (rev 288190)
+++ releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/ChangeLog	2022-01-19 12:55:46 UTC (rev 288191)
@@ -1,3 +1,14 @@
+2021-10-19  Saam Barati  <[email protected]>
+
+        canDoFastSpread should also check that the Structure is from the global object we're watching
+        https://bugs.webkit.org/show_bug.cgi?id=231976
+        <rdar://84340372>
+
+        Reviewed by Keith Miller.
+
+        * dfg/DFGGraph.cpp:
+        (JSC::DFG::Graph::canDoFastSpread):
+
 2021-10-20  Yusuke Suzuki  <[email protected]>
 
         [JSC] ArithAbs should care about INT32_MIN

Modified: releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/dfg/DFGGraph.cpp (288190 => 288191)


--- releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/dfg/DFGGraph.cpp	2022-01-19 12:53:33 UTC (rev 288190)
+++ releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/dfg/DFGGraph.cpp	2022-01-19 12:55:46 UTC (rev 288191)
@@ -1843,10 +1843,12 @@
     if (!value.m_structure.isFinite())
         return false;
 
-    ArrayPrototype* arrayPrototype = globalObjectFor(node->child1()->origin.semantic)->arrayPrototype();
+    JSGlobalObject* globalObject = globalObjectFor(node->child1()->origin.semantic);
+    ArrayPrototype* arrayPrototype = globalObject->arrayPrototype();
     bool allGood = true;
     value.m_structure.forEach([&] (RegisteredStructure structure) {
         allGood &= structure->hasMonoProto()
+            && structure->globalObject() == globalObject
             && structure->storedPrototype() == arrayPrototype
             && !structure->isDictionary()
             && structure->getConcurrently(m_vm.propertyNames->iteratorSymbol.impl()) == invalidOffset
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to