CpuProfiler: simplify inlined function info magic.
authorloislo <loislo@chromium.org>
Wed, 11 Mar 2015 13:51:18 +0000 (06:51 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 11 Mar 2015 13:51:25 +0000 (13:51 +0000)
commitdf9e6fe329b5655932124a9d871d4eacbf51ce08
tree4ca0c70a878978f8b23d528f337204b9dee68b16
parentee4f1bd81d2cc5847111ac5dcb4a18a830359bcb
CpuProfiler: simplify inlined function info magic.

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}
src/compiler.cc
src/compiler.h
src/hydrogen.cc