DescriptionCpuProfiler: 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
Committed: https://crrev.com/66ab309e73ad8156160bc753c46494506ef8fdaa
Cr-Commit-Position: refs/heads/master@{#27076}
Patch Set 1 #Patch Set 2 : win platform was fixed #
Total comments: 2
Patch Set 3 : comments addressed #
Messages
Total messages: 11 (3 generated)
|