• fpizlo@apple.com's avatar
    FTL should support generic ByVal accesses · 66421ea3
    fpizlo@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=125368
    
    Reviewed by Mark Hahnenberg.
    
    Source/JavaScriptCore: 
    
    * dfg/DFGGraph.h:
    (JSC::DFG::Graph::isStrictModeFor):
    (JSC::DFG::Graph::ecmaModeFor):
    * ftl/FTLCapabilities.cpp:
    (JSC::FTL::canCompile):
    * ftl/FTLIntrinsicRepository.h:
    * ftl/FTLLowerDFGToLLVM.cpp:
    (JSC::FTL::LowerDFGToLLVM::compileNode):
    (JSC::FTL::LowerDFGToLLVM::compileGetByVal):
    (JSC::FTL::LowerDFGToLLVM::compilePutByVal):
    
    LayoutTests: 
    
    * js/regress/by-val-generic-expected.txt: Added.
    * js/regress/by-val-generic.html: Added.
    * js/regress/script-tests/by-val-generic.js: Added.
    (foo):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160252 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    66421ea3
ChangeLog 391 KB