• jgruber's avatar
    [debug] Fix catch prediction for optimized frames · 582f38b3
    jgruber authored
    Catch prediction for optimized frames had two issues:
    
    Inlined frames were iterated from caller-to-callee (which could
    result in incorrect predictions if one frame predicted CAUGHT and
    another predicted PROMISE).
    
    When encountering a builtin frame, we'd unconditionally return its
    prediction (which is wrong if it predicted UNCAUGHT and another inlined
    frame predicted either CAUGHT or PROMISE).
    
    This CL fixes both issues and refactors the function to reduce nesting.
    
    BUG=v8:6536
    
    Change-Id: I764a4ec033e4476bd840134b5eacfe0e08b3c1a4
    Reviewed-on: https://chromium-review.googlesource.com/555519
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#46358}
    582f38b3
isolate.cc 132 KB