Reviewers: alph, yurys,
Message:
PTAL
Description:
CpuProfiler: fix for GetDeoptReason code.
The original code always returned the first entry from RelocInfo that
matched
with
bailout_id. But we may have a few different deopt reasons for one
bailout_id.
So we need to get the one which matches with a particular call from
JumpTable.
We can do this by checking not 'target_address' (it maps to bailout_id)
but 'from' address which maps to a particular JumpTable entry.
The test was reworked so it tests identical functions against different
reasons.
BUG=chromium:452067
LOG=n
Please review this at https://codereview.chromium.org/984773003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+63, -49 lines):
M src/cpu-profiler.cc
M src/deoptimizer.h
M src/deoptimizer.cc
M src/objects.h
M src/objects.cc
M test/cctest/test-cpu-profiler.cc
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.