Commit 784a48b3 authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

[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/+/1930618Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65144}
parent bde74cdd
...@@ -1394,7 +1394,7 @@ void Assembler::int3() { ...@@ -1394,7 +1394,7 @@ void Assembler::int3() {
void Assembler::j(Condition cc, Label* L, Label::Distance distance) { void Assembler::j(Condition cc, Label* L, Label::Distance distance) {
if (cc == always) { if (cc == always) {
jmp(L); jmp(L, distance);
return; return;
} else if (cc == never) { } else if (cc == never) {
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment