• loislo's avatar
    CpuProfiler: simplify inlined function info magic. · df9e6fe3
    loislo authored
    I did some investigation and found that in the most cases
    the old schema with the separate List for functions and inlines
    gives us no memory benefits because more frequently we inlines
    different functions into parent function. So the plain schema
    wins a tens or even hundreds bytes a few thousand times.
    
    The only drawback is that we will print the inlined body
    the each time when we inline it. But is not a problem
    because it happens only under FLAG_hydrogen_track_positions.
    
    Also I added script_id to the structure, so it could be used later
    by cpu-profiler.
    
    BUG=chromium:452067
    LOG=n
    
    Review URL: https://codereview.chromium.org/996153003
    
    Cr-Commit-Position: refs/heads/master@{#27134}
    df9e6fe3
compiler.h 21.2 KB