⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 284806 in webkit


Ignore:
Timestamp:
Oct 25, 2021, 12:09:53 PM (5 years ago)
Author:
Alan Coon
Message:

Cherry-pick r284506. rdar://problem/84340372

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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284506 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612-branch/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612-branch/Source/JavaScriptCore/ChangeLog

    r284805 r284806  
     12021-10-25  Null  <null@apple.com>
     2
     3        Cherry-pick r284506. rdar://problem/84340372
     4
     5    canDoFastSpread should also check that the Structure is from the global object we're watching
     6    https://bugs.webkit.org/show_bug.cgi?id=231976
     7    <rdar://84340372>
     8   
     9    Reviewed by Keith Miller.
     10   
     11    * dfg/DFGGraph.cpp:
     12    (JSC::DFG::Graph::canDoFastSpread):
     13   
     14   
     15    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     16
     17    2021-10-19  Saam Barati  <sbarati@apple.com>
     18
     19            canDoFastSpread should also check that the Structure is from the global object we're watching
     20            https://bugs.webkit.org/show_bug.cgi?id=231976
     21            <rdar://84340372>
     22
     23            Reviewed by Keith Miller.
     24
     25            * dfg/DFGGraph.cpp:
     26            (JSC::DFG::Graph::canDoFastSpread):
     27
    1282021-10-25  Null  <null@apple.com>
    229
  • branches/safari-612-branch/Source/JavaScriptCore/dfg/DFGGraph.cpp

    r281892 r284806  
    18441844        return false;
    18451845
    1846     ArrayPrototype* arrayPrototype = globalObjectFor(node->child1()->origin.semantic)->arrayPrototype();
     1846    JSGlobalObject* globalObject = globalObjectFor(node->child1()->origin.semantic);
     1847    ArrayPrototype* arrayPrototype = globalObject->arrayPrototype();
    18471848    bool allGood = true;
    18481849    value.m_structure.forEach([&] (RegisteredStructure structure) {
    18491850        allGood &= structure->hasMonoProto()
     1851            && structure->globalObject() == globalObject
    18501852            && structure->storedPrototype() == arrayPrototype
    18511853            && !structure->isDictionary()
Note: See TracChangeset for help on using the changeset viewer.