Propagate DeoptInfo to cpu-profiler
authorloislo <loislo@chromium.org>
Tue, 10 Feb 2015 14:32:42 +0000 (06:32 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 10 Feb 2015 14:33:00 +0000 (14:33 +0000)
commit86cae1633caa31f2225b6932850fb13d3a21cf59
tree5d8d3f48f52d3d38578313995072b50458d7c1ac
parent0ca9bef37fba0bbf408addf9ef3bf9e58ec8cc13
Propagate DeoptInfo to cpu-profiler

1) Deoptimizer::Reason was replaced with Deoptimizer::DeoptInfo
because it also has raw position. Also the old name clashes with DeoptReason enum.

2) c_entry_fp assignment call was added to EntryGenerator::Generate
So we can calculate sp and have a chance to record the stack for the deopting function.
btw it makes the test stable.

3) new kind of CodeEvents was added to cpu-profiler

4) GetDeoptInfo method was extracted from PrintDeoptLocation.
So it could be reused in cpu profiler.

BUG=452067
LOG=n

Review URL: https://codereview.chromium.org/910773002

Cr-Commit-Position: refs/heads/master@{#26545}
26 files changed:
src/arm/deoptimizer-arm.cc
src/arm/lithium-codegen-arm.cc
src/arm64/deoptimizer-arm64.cc
src/arm64/lithium-codegen-arm64.cc
src/cpu-profiler-inl.h
src/cpu-profiler.cc
src/cpu-profiler.h
src/deoptimizer.cc
src/deoptimizer.h
src/ia32/deoptimizer-ia32.cc
src/ia32/lithium-codegen-ia32.cc
src/lithium-codegen.cc
src/lithium-codegen.h
src/log.cc
src/log.h
src/mips/deoptimizer-mips.cc
src/mips/lithium-codegen-mips.cc
src/mips64/lithium-codegen-mips64.cc
src/objects.cc
src/ppc/lithium-codegen-ppc.cc
src/profile-generator-inl.h
src/profile-generator.h
src/x64/deoptimizer-x64.cc
src/x64/lithium-codegen-x64.cc
src/x87/lithium-codegen-x87.cc
test/cctest/test-cpu-profiler.cc