cgen: fix arm64 closure + remove stub in test (#24332)

This commit is contained in:
Mike 2025-04-28 04:38:27 +03:00 committed by GitHub
parent 11acee1a5b
commit 32be45d08d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -101,12 +101,12 @@ static char __CLOSURE_GET_DATA_BYTES[] = {
#elif defined(__V_arm64) #elif defined(__V_arm64)
static char __closure_thunk[] = { static char __closure_thunk[] = {
0x11, 0x00, 0xFE, 0x58, // ldr x17, userdata 0x11, 0x00, 0xFE, 0x5C, // ldr d17, userdata
0x30, 0x00, 0xFE, 0x58, // ldr x16, fn 0x30, 0x00, 0xFE, 0x58, // ldr x16, fn
0x00, 0x02, 0x1F, 0xD6 // br x16 0x00, 0x02, 0x1F, 0xD6 // br x16
}; };
static char __CLOSURE_GET_DATA_BYTES[] = { static char __CLOSURE_GET_DATA_BYTES[] = {
0xE0, 0x03, 0x11, 0xAA, // mov x0, x17 0x20, 0x02, 0x66, 0x9E, // fmov x0, d17
0xC0, 0x03, 0x5F, 0xD6 // ret 0xC0, 0x03, 0x5F, 0xD6 // ret
}; };
#elif defined(__V_arm32) #elif defined(__V_arm32)

View File

@ -11,10 +11,6 @@ fn get_max_params() int {
} }
fn get_max_string_params() int { fn get_max_string_params() int {
$if macos || (clang && arm64) {
return 9
}
return 16 return 16
} }