use trampoline to aign stack for call to rust panic
This commit is contained in:
parent
402d295fff
commit
d754f8c4b9
|
|
@ -31,8 +31,6 @@ global is_whitespace
|
|||
global is_id_continue
|
||||
global is_id_start
|
||||
|
||||
extern panic
|
||||
|
||||
;; ==============================
|
||||
;; Helper functions
|
||||
;; ==============================
|
||||
|
|
@ -446,3 +444,8 @@ is_whitespace:
|
|||
mov rax, 1
|
||||
ret
|
||||
|
||||
extern panic_impl
|
||||
global panic
|
||||
panic:
|
||||
and rsp, -16
|
||||
call panic_impl
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ fn __do_panic() -> ! {
|
|||
}
|
||||
|
||||
#[unsafe(no_mangle)]
|
||||
extern "C" fn panic() -> ! {
|
||||
extern "C" fn panic_impl() -> ! {
|
||||
__do_panic()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue