fix(asm): close the oracle parity gaps in frame addressing and calls

This commit is contained in:
2026-09-14 23:25:14 +02:00
parent 70218e84ba
commit 40476546df
18 changed files with 456 additions and 60 deletions
+44
View File
@@ -0,0 +1,44 @@
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
// SPDX-License-Identifier: BSD-3-Clause
// Stack-split guard classes, byte-parity-checked against go tool asm: every
// class plus the materialised-constant and zero-low-bit variants.
#include "textflag.h"
TEXT ·leafsmall(SB), $16-0
RET
TEXT ·leafmed(SB), $256-0
RET
TEXT ·fit2048(SB), $2040-0
RET
TEXT ·med2048off(SB), $2168-0
RET
TEXT ·medmat(SB), $2176-0
RET
TEXT ·leafbig(SB), $8192-0
RET
TEXT ·bigzero(SB), $4088-0
RET
TEXT ·big3976(SB), $4096-0
RET
TEXT ·giantlo0(SB), $4216-0
RET
TEXT ·callbig(SB), $8192-0
CALL ·other(SB)
RET
TEXT ·nosplit(SB), NOSPLIT, $16-0
RET
TEXT ·other(SB), NOSPLIT, $0
RET