Skip to content
  • fpizlo@apple.com's avatar
    DFG should inline 'new Array()' · 618044d3
    fpizlo@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=89632
    
    Reviewed by Geoffrey Garen.
            
    This adds support for treating InternalFunction like intrinsics. The code
    to do so is actually quite clean, so I don't feel bad about perpetuating
    the InternalFunction vs. JSFunction-with-NativeExecutable dichotomy.
            
    Currently this newfound power is only used to inline 'new Array()'.
            
    * dfg/DFGByteCodeParser.cpp:
    (ByteCodeParser):
    (JSC::DFG::ByteCodeParser::handleCall):
    (JSC::DFG::ByteCodeParser::handleConstantInternalFunction):
    (DFG):
    * dfg/DFGGraph.h:
    (JSC::DFG::Graph::isInternalFunctionConstant):
    (JSC::DFG::Graph::valueOfInternalFunctionConstant):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@120974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    618044d3