Skip to content
  • oliver@apple.com's avatar
    fourthTier: DFG should CSE MakeRope · c2eda9aa
    oliver@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=117905
    
    Source/JavaScriptCore:
    
    Reviewed by Geoffrey Garen.
    
    Adds MakeRope to the CSE phase and removes the comment that says that
    we could do it but aren't doing it.
    
    Also fixed SpeculatedType dumping so that if you have a Cell type then
    it just prints "Cell" and if you just have Object then it just prints
    "Object", instead of printing the long list of types.
    
    * bytecode/SpeculatedType.cpp:
    (JSC::dumpSpeculation):
    * dfg/DFGCSEPhase.cpp:
    (JSC::DFG::CSEPhase::performNodeCSE):
    
    LayoutTests:
    
    Reviewed by Geoffrey Garen.
    
    This benchmark speeds up by 50%.
    
    * fast/js/regress/make-rope-cse-expected.txt: Added.
    * fast/js/regress/make-rope-cse.html: Added.
    * fast/js/regress/script-tests/make-rope-cse.js: Added.
    (foo):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c2eda9aa