• commit-queue@webkit.org's avatar
    Adds fromCharCode intrinsic support. · aa31a5ed
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=104807
    
    Patch by Vahag Vardanyan <vaag@ispras.ru> on 2013-04-08
    Reviewed by Oliver Hunt.
    
    Switch to using fromCharCode intrinsic instead of call operation in some cases.
    
    * dfg/DFGAbstractState.cpp:
    (JSC::DFG::AbstractState::executeEffects):
    * dfg/DFGByteCodeParser.cpp:
    (JSC::DFG::ByteCodeParser::handleIntrinsic):
    * dfg/DFGFixupPhase.cpp:
    (JSC::DFG::FixupPhase::fixupNode):
    * dfg/DFGNodeType.h:
    (DFG):
    * dfg/DFGOperations.cpp:
    * dfg/DFGOperations.h:
    * dfg/DFGPredictionPropagationPhase.cpp:
    (JSC::DFG::PredictionPropagationPhase::propagate):
    * dfg/DFGSpeculativeJIT.cpp:
    (JSC::DFG::SpeculativeJIT::compileFromCharCode):
    (DFG):
    * dfg/DFGSpeculativeJIT.h:
    (JSC::DFG::SpeculativeJIT::callOperation):
    (SpeculativeJIT):
    * dfg/DFGSpeculativeJIT32_64.cpp:
    (JSC::DFG::SpeculativeJIT::compile):
    * dfg/DFGSpeculativeJIT64.cpp:
    (JSC::DFG::SpeculativeJIT::compile):
    * runtime/StringConstructor.cpp:
    (JSC::stringFromCharCode):
    (JSC):
    * runtime/StringConstructor.h:
    (JSC):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    aa31a5ed
StringConstructor.cpp 4.56 KB