Changeset 96794 in webkit


Ignore:
Timestamp:
Oct 6, 2011 2:08:25 AM (13 years ago)
Author:
fpizlo@apple.com
Message:

SpeculativeJIT::isKnownString() is wrong
https://bugs.webkit.org/show_bug.cgi?id=69501

Reviewed by Oliver Hunt.

Removed the wrong case (GetLocal predicted String) and added a case that
works (StrCat).

  • dfg/DFGSpeculativeJIT.h:

(JSC::DFG::SpeculativeJIT::isKnownString):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r96783 r96794  
     12011-10-05  Filip Pizlo  <fpizlo@apple.com>
     2
     3        SpeculativeJIT::isKnownString() is wrong
     4        https://bugs.webkit.org/show_bug.cgi?id=69501
     5
     6        Reviewed by Oliver Hunt.
     7       
     8        Removed the wrong case (GetLocal predicted String) and added a case that
     9        works (StrCat).
     10
     11        * dfg/DFGSpeculativeJIT.h:
     12        (JSC::DFG::SpeculativeJIT::isKnownString):
     13
    1142011-10-05  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h

    r96750 r96794  
    593593    bool isKnownString(NodeIndex op1)
    594594    {
    595         Node& node = m_jit.graph()[op1];
    596         switch (node.op) {
    597         case GetLocal:
    598             return isStringPrediction(node.variableAccessData()->prediction());
    599 
     595        switch (m_jit.graph()[op1].op) {
     596        case StrCat:
     597            return true;
     598           
    600599        default:
    601600            return false;
Note: See TracChangeset for help on using the changeset viewer.