This commit implements the stack limit checks in cranelift for the AArch64 backend. This gets the `stack_limit` argument purpose as well as a function's global `stack_limit` directive working for the AArch64 backend. I've tested this locally on some hardware and in an emulator and it looks to be working for basic tests, but I've never really done AArch64 before so some scrutiny on the instructions would be most welcome!
11 lines
119 B
C
11 lines
119 B
C
void bar();
|
|
void baz();
|
|
int foo(int b, int a) {
|
|
if (b) {
|
|
baz();
|
|
return a + 3;
|
|
}
|
|
bar();
|
|
return a + 4;
|
|
}
|