summaryrefslogtreecommitdiff
path: root/vendor/github.com/bytedance/sonic/internal/rt/asm_amd64.s
blob: 48a564beeda3cbdfa5220ebfe15e336110cfb2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// +build !noasm,amd64 !appengine,amd64
// Code generated by asm2asm, DO NOT EDIT·

#include "go_asm.h"
#include "funcdata.h"
#include "textflag.h"

TEXT ·MoreStack(SB), NOSPLIT, $0 - 8
    NO_LOCAL_POINTERS
_entry:
    MOVQ (TLS), R14
    MOVQ size+0(FP), R12
    NOTQ R12
    LEAQ (SP)(R12*1), R12
    CMPQ R12, 16(R14)
    JBE  _stack_grow
    RET
_stack_grow:
    CALL runtime·morestack_noctxt<>(SB)
    JMP  _entry