• loislo's avatar
    CpuProfiler: fix for GetDeoptReason code. · 66ab309e
    loislo authored
    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
    
    Review URL: https://codereview.chromium.org/984773003
    
    Cr-Commit-Position: refs/heads/master@{#27076}
    66ab309e
objects.cc 595 KB