• Seth Brenith's avatar
    Make Windows stack walking test use runtime-compiled code · fe9f8045
    Seth Brenith authored
    I happened to notice while stepping through the StackUnwindingWin64 test
    that it never actually encounters a runtime-compiled function despite
    using %OptimizeFunctionOnNextCall. V8 compiles the function on the
    subsequent call as requested, but the compiled function isn't very good
    because there was no feedback data, and it immediately deopts. To fix,
    we can call the function once between %PrepareFunctionForOptimization
    and %OptimizeFunctionOnNextCall.
    
    Change-Id: Icb25f16d43a60c36a1f85d15e2ce4535e08d1076
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2472780Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Seth Brenith <seth.brenith@microsoft.com>
    Cr-Commit-Position: refs/heads/master@{#70633}
    fe9f8045
test-stack-unwinding-win64.cc 3.98 KB