[liftoff] Replace lambda in cmp ops by templates
The compare operations pass a hard-coded first argument to the emit function. Instead of implementing this via a lambda, put it in a separate {BindFirst} helper, similar to {std::bind_front} (C++20). R=zhin@chromium.org Bug: v8:10364 Change-Id: If48c87a3df5ea6fa2b155873e4586af5d6b21119 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2139580Reviewed-by: Zhi An Ng <zhin@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/master@{#67047}
Showing
Please
register
or
sign in
to comment