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

Changeset 243448 in webkit


Ignore:
Timestamp:
Mar 25, 2019, 1:29:19 PM (7 years ago)
Author:
keith_miller@apple.com
Message:

ASSERTION FAILED: m_op == CompareStrictEq in JSC::DFG::Node::convertToCompareEqPtr(JSC::DFG::FrozenValue *, JSC::DFG::Edge)
https://bugs.webkit.org/show_bug.cgi?id=196176

Reviewed by Saam Barati.

JSTests:

  • stress/object-is-fold-to-compare-eq-ptr.js: Added.

(main.v10):
(main):

Source/JavaScriptCore:

convertToCompareEqPtr should allow for either CompareStrictEq or
the SameValue DFG node. This fixes the old assertion that only
allowed CompareStrictEq.

  • dfg/DFGNode.h:

(JSC::DFG::Node::convertToCompareEqPtr):

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r243446 r243448  
     12019-03-25  Keith Miller  <keith_miller@apple.com>
     2
     3        ASSERTION FAILED: m_op == CompareStrictEq in JSC::DFG::Node::convertToCompareEqPtr(JSC::DFG::FrozenValue *, JSC::DFG::Edge)
     4        https://bugs.webkit.org/show_bug.cgi?id=196176
     5
     6        Reviewed by Saam Barati.
     7
     8        * stress/object-is-fold-to-compare-eq-ptr.js: Added.
     9        (main.v10):
     10        (main):
     11
    1122019-03-25  Tadeu Zagallo  <tzagallo@apple.com>
    213
  • trunk/Source/JavaScriptCore/ChangeLog

    r243446 r243448  
     12019-03-25  Keith Miller  <keith_miller@apple.com>
     2
     3        ASSERTION FAILED: m_op == CompareStrictEq in JSC::DFG::Node::convertToCompareEqPtr(JSC::DFG::FrozenValue *, JSC::DFG::Edge)
     4        https://bugs.webkit.org/show_bug.cgi?id=196176
     5
     6        Reviewed by Saam Barati.
     7
     8        convertToCompareEqPtr should allow for either CompareStrictEq or
     9        the SameValue DFG node. This fixes the old assertion that only
     10        allowed CompareStrictEq.
     11
     12        * dfg/DFGNode.h:
     13        (JSC::DFG::Node::convertToCompareEqPtr):
     14
    1152019-03-25  Tadeu Zagallo  <tzagallo@apple.com>
    216
  • trunk/Source/JavaScriptCore/dfg/DFGNode.h

    r243236 r243448  
    711711    void convertToCompareEqPtr(FrozenValue* cell, Edge node)
    712712    {
    713         ASSERT(m_op == CompareStrictEq);
     713        ASSERT(m_op == CompareStrictEq || m_op == SameValue);
    714714        setOpAndDefaultFlags(CompareEqPtr);
    715715        children.setChild1(node);
Note: See TracChangeset for help on using the changeset viewer.