8343452: Incorrect WINDOWS build variable is used in macroAssembler_x86.cpp

Reviewed-by: kvn, chagedorn, jwaters
This commit is contained in:
theoweidmannoracle 2024-11-07 07:46:52 +00:00 committed by Christian Hagedorn
parent 619b4d5966
commit 0e1c1b793d

View File

@ -4092,7 +4092,7 @@ RegSet MacroAssembler::call_clobbered_gp_registers() {
RegSet regs; RegSet regs;
#ifdef _LP64 #ifdef _LP64
regs += RegSet::of(rax, rcx, rdx); regs += RegSet::of(rax, rcx, rdx);
#ifndef WINDOWS #ifndef _WINDOWS
regs += RegSet::of(rsi, rdi); regs += RegSet::of(rsi, rdi);
#endif #endif
regs += RegSet::range(r8, r11); regs += RegSet::range(r8, r11);
@ -4109,7 +4109,7 @@ RegSet MacroAssembler::call_clobbered_gp_registers() {
XMMRegSet MacroAssembler::call_clobbered_xmm_registers() { XMMRegSet MacroAssembler::call_clobbered_xmm_registers() {
int num_xmm_registers = XMMRegister::available_xmm_registers(); int num_xmm_registers = XMMRegister::available_xmm_registers();
#if defined(WINDOWS) && defined(_LP64) #if defined(_WINDOWS) && defined(_LP64)
XMMRegSet result = XMMRegSet::range(xmm0, xmm5); XMMRegSet result = XMMRegSet::range(xmm0, xmm5);
if (num_xmm_registers > 16) { if (num_xmm_registers > 16) {
result += XMMRegSet::range(xmm16, as_XMMRegister(num_xmm_registers - 1)); result += XMMRegSet::range(xmm16, as_XMMRegister(num_xmm_registers - 1));