• mstarzinger's avatar
    [compiler] Allocate SharedFunctionInfo before compile. · 42c8812d
    mstarzinger authored
    This changes the compilation pipeline so that SharedFunctionInfo objects
    are always allocated before the various compilers are invoked. It is a
    preparation towards having that object available during compile time and
    hence reducing the dependency on FunctionLiteral and the need to copy a
    lot of the information into the CompilationInfo.
    
    Optimizing compilers already assume the SharedFunctionInfo is present
    and the baseline compilers have other heap accesses sprinkled throughout
    the compilation process. Duplicating statically available information
    from the SharedFunctionInfo within the CompilationInfo has no benefit.
    
    R=yangguo@chromium.org
    
    Review URL: https://codereview.chromium.org/1813803002
    
    Cr-Commit-Position: refs/heads/master@{#34885}
    42c8812d
compiler.cc 72.5 KB