Удалено неиспользуемое tinygo_scanCurrentStack

Этот коммит содержится в:
Softonik 2024-03-24 04:12:36 +03:00 коммит произвёл Nobody
родитель 3fe4d0f1c5
коммит f0b9f51481
2 изменённых файлов: 2 добавлений и 12 удалений

Просмотреть файл

@ -49,9 +49,3 @@ call_start_cpu0_go:
// Jump to the runtime start function written in Go.
call4 main
.section .text.tinygo_scanCurrentStack
.global tinygo_scanCurrentStack
tinygo_scanCurrentStack:
// TODO: save callee saved registers on the stack
j tinygo_scanstack

Просмотреть файл

@ -19,12 +19,8 @@ func markStack() {
}
}
//go:export tinygo_scanCurrentStack
func scanCurrentStack()
//go:export tinygo_scanstack
func scanstack(sp uintptr) {
sp = getCurrentStackPointer()
func scanCurrentStack() {
sp := getCurrentStackPointer()
// Mark current stack.
// This function is called by scanCurrentStack, after pushing all registers onto the stack.
// Callee-saved registers have been pushed onto stack by tinygo_localscan, so this will scan them too.