[x64] Pass Label::Distance from j to jmp

This looks like an oversight. If we know that near jumps can be used, we
should pass that information on to the {jmp} method.

R=ahaas@chromium.org

Change-Id: I839a7a7b66f0e9d535a7cece283750f5c45a44c2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1930618
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65144}
This commit is contained in:
Clemens Backes 2019-11-22 15:45:23 +01:00 committed by Commit Bot
parent bde74cdd4c
commit 784a48b3ec

View File

@ -1394,7 +1394,7 @@ void Assembler::int3() {
void Assembler::j(Condition cc, Label* L, Label::Distance distance) {
if (cc == always) {
jmp(L);
jmp(L, distance);
return;
} else if (cc == never) {
return;