Changeset 207017 in webkit


Ignore:
Timestamp:
Oct 10, 2016 1:33:46 PM (8 years ago)
Author:
sbarati@apple.com
Message:

compileCheckStringIdent in the FTL is wrong
https://bugs.webkit.org/show_bug.cgi?id=163215

Reviewed by Mark Lam and Filip Pizlo.

lowStringIdent() returns the StringImpl pointer. The compileCheckStringIdent()
was treating its return value as the actual JSString. This is wrong.

  • ftl/FTLLowerDFGToB3.cpp:

(JSC::FTL::DFG::LowerDFGToB3::compileCheckStringIdent):

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r207013 r207017  
     12016-10-10  Saam Barati  <sbarati@apple.com>
     2
     3        compileCheckStringIdent in the FTL is wrong
     4        https://bugs.webkit.org/show_bug.cgi?id=163215
     5
     6        Reviewed by Mark Lam and Filip Pizlo.
     7
     8        lowStringIdent() returns the StringImpl pointer. The compileCheckStringIdent()
     9        was treating its return value as the actual JSString. This is wrong.
     10
     11        * ftl/FTLLowerDFGToB3.cpp:
     12        (JSC::FTL::DFG::LowerDFGToB3::compileCheckStringIdent):
     13
    1142016-10-10  Yusuke Suzuki  <utatane.tea@gmail.com>
    215
  • trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp

    r207013 r207017  
    26072607    {
    26082608        UniquedStringImpl* uid = m_node->uidOperand();
    2609         LValue string = lowStringIdent(m_node->child1());
    2610         LValue stringImpl = m_out.loadPtr(string, m_heaps.JSString_value);
     2609        LValue stringImpl = lowStringIdent(m_node->child1());
    26112610        speculate(BadIdent, noValue(), nullptr, m_out.notEqual(stringImpl, m_out.constIntPtr(uid)));
    26122611    }
Note: See TracChangeset for help on using the changeset viewer.