Skip to content
  • oliver@apple.com's avatar
    Support string length in the DFG · c1707fca
    oliver@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=69215
    
    Reviewed by Geoff Garen.
    
    Adds a GetStringLength node to the DFG so that we can support
    string.length inline.
    
    * dfg/DFGNode.h:
    * dfg/DFGPropagator.cpp:
    (JSC::DFG::Propagator::propagateNodePredictions):
    (JSC::DFG::Propagator::fixupNode):
    (JSC::DFG::Propagator::performNodeCSE):
    * dfg/DFGSpeculativeJIT.h:
    (JSC::DFG::SpeculativeJIT::isKnownString):
    * dfg/DFGSpeculativeJIT32_64.cpp:
    (JSC::DFG::SpeculativeJIT::compile):
    * dfg/DFGSpeculativeJIT64.cpp:
    (JSC::DFG::SpeculativeJIT::compile):
    * runtime/JSString.h:
    (JSC::JSString::offsetOfLength):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c1707fca