Changeset 239287 in webkit


Ignore:
Timestamp:
Dec 17, 2018 1:32:39 PM (5 years ago)
Author:
mark.lam@apple.com
Message:

Fix stale assertion in attemptToForceStringArrayModeByToStringConversion().
https://bugs.webkit.org/show_bug.cgi?id=192770
<rdar://problem/46449037>

Reviewed by Keith Miller.

JSTests:

  • stress/force-string-arrayMode-on-originalNonArray-array-class.js: Added.

Source/JavaScriptCore:

This assertion was added before Array::OriginalNonArray was introduced. It just
needs to be updated to allow for Array::OriginalNonArray.

  • dfg/DFGFixupPhase.cpp:

(JSC::DFG::FixupPhase::attemptToForceStringArrayModeByToStringConversion):

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r239244 r239287  
     12018-12-17  Mark Lam  <mark.lam@apple.com>
     2
     3        Fix stale assertion in attemptToForceStringArrayModeByToStringConversion().
     4        https://bugs.webkit.org/show_bug.cgi?id=192770
     5        <rdar://problem/46449037>
     6
     7        Reviewed by Keith Miller.
     8
     9        * stress/force-string-arrayMode-on-originalNonArray-array-class.js: Added.
     10
    1112018-12-14  Mark Lam  <mark.lam@apple.com>
    212
  • trunk/Source/JavaScriptCore/ChangeLog

    r239273 r239287  
     12018-12-17  Mark Lam  <mark.lam@apple.com>
     2
     3        Fix stale assertion in attemptToForceStringArrayModeByToStringConversion().
     4        https://bugs.webkit.org/show_bug.cgi?id=192770
     5        <rdar://problem/46449037>
     6
     7        Reviewed by Keith Miller.
     8
     9        This assertion was added before Array::OriginalNonArray was introduced.  It just
     10        needs to be updated to allow for Array::OriginalNonArray.
     11
     12        * dfg/DFGFixupPhase.cpp:
     13        (JSC::DFG::FixupPhase::attemptToForceStringArrayModeByToStringConversion):
     14
    1152018-12-17  Matt Lewis  <jlewis3@apple.com>
    216
  • trunk/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp

    r239231 r239287  
    24332433    void attemptToForceStringArrayModeByToStringConversion(ArrayMode& arrayMode, Node* node)
    24342434    {
    2435         ASSERT(arrayMode == ArrayMode(Array::Generic, Array::Read));
     2435        ASSERT(arrayMode == ArrayMode(Array::Generic, Array::Read) || arrayMode == ArrayMode(Array::Generic, Array::OriginalNonArray, Array::Read));
    24362436       
    24372437        if (!m_graph.canOptimizeStringObjectAccess(node->origin.semantic))
Note: See TracChangeset for help on using the changeset viewer.