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

Changeset 284699 in webkit


Ignore:
Timestamp:
Oct 22, 2021, 11:23:09 AM (5 years ago)
Author:
sbarati@apple.com
Message:

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.

Just reorder the checks for clarity.

  • dfg/DFGGraph.cpp:

(JSC::DFG::Graph::canDoFastSpread):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r284690 r284699  
     12021-10-22  Saam Barati  <sbarati@apple.com>
     2
     3        canDoFastSpread should also check that the Structure is from the global object we're watching
     4        https://bugs.webkit.org/show_bug.cgi?id=231976
     5        <rdar://84340372>
     6
     7        Reviewed by Keith Miller.
     8
     9        Just reorder the checks for clarity.
     10
     11        * dfg/DFGGraph.cpp:
     12        (JSC::DFG::Graph::canDoFastSpread):
     13
    1142021-10-22  Robin Morisset  <rmorisset@apple.com>
    215
  • trunk/Source/JavaScriptCore/dfg/DFGGraph.cpp

    r284506 r284699  
    18481848    bool allGood = true;
    18491849    value.m_structure.forEach([&] (RegisteredStructure structure) {
    1850         allGood &= structure->hasMonoProto()
    1851             && structure->globalObject() == globalObject
     1850        allGood &= structure->globalObject() == globalObject
     1851            && structure->hasMonoProto()
    18521852            && structure->storedPrototype() == arrayPrototype
    18531853            && !structure->isDictionary()
Note: See TracChangeset for help on using the changeset viewer.