github.com/goshafaq/sonic@v0.0.0-20231026082336-871835fb94c6/internal/rt/asm_amd64.s (about)

     1  // +build !noasm !appengine
     2  // Code generated by asm2asm, DO NOT EDIT·
     3  
     4  #include "go_asm.h"
     5  #include "funcdata.h"
     6  #include "textflag.h"
     7  
     8  TEXT ·MoreStack(SB), NOSPLIT, $0 - 8
     9      NO_LOCAL_POINTERS
    10  _entry:
    11      MOVQ (TLS), R14
    12      MOVQ size+0(FP), R12
    13      NOTQ R12
    14      LEAQ (SP)(R12*1), R12
    15      CMPQ R12, 16(R14)
    16      JBE  _stack_grow
    17      RET
    18  _stack_grow:
    19      CALL runtime·morestack_noctxt<>(SB)
    20      JMP  _entry
    21  
    22  
    23  TEXT ·StopProf(SB), NOSPLIT, $0-0
    24      NO_LOCAL_POINTERS
    25      CMPB github·com∕goshafaq∕sonic∕internal∕rt·StopProfiling(SB), $0
    26      JEQ  _ret_1
    27      MOVL $1, AX
    28      LEAQ github·com∕goshafaq∕sonic∕internal∕rt·yieldCount(SB), CX
    29      LOCK
    30      XADDL AX, (CX)
    31      MOVL runtime·prof+4(SB), AX
    32      TESTL AX, AX
    33      JEQ _ret_1
    34      MOVL AX, github·com∕goshafaq∕sonic∕internal∕rt·oldHz(SB)
    35      MOVL $0, runtime·prof+4(SB)
    36  _ret_1:
    37      RET
    38  
    39  
    40  TEXT ·StartProf(SB), NOSPLIT, $0-0
    41      NO_LOCAL_POINTERS
    42      CMPB github·com∕goshafaq∕sonic∕internal∕rt·StopProfiling(SB), $0
    43      JEQ  _ret_2
    44      MOVL $-1, AX
    45      LEAQ github·com∕goshafaq∕sonic∕internal∕rt·yieldCount(SB), CX
    46      LOCK
    47      XADDL AX, (CX)
    48      CMPL github·com∕goshafaq∕sonic∕internal∕rt·yieldCount(SB), $0
    49      JNE _ret_2
    50      CMPL runtime·prof+4(SB), $0
    51      JNE _ret_2
    52      CMPL github·com∕goshafaq∕sonic∕internal∕rt·oldHz(SB), $0
    53      JNE _branch_1
    54      MOVL $100, github·com∕goshafaq∕sonic∕internal∕rt·oldHz(SB)
    55  _branch_1:
    56      MOVL github·com∕goshafaq∕sonic∕internal∕rt·oldHz(SB), AX
    57      MOVL AX, runtime·prof+4(SB)
    58  _ret_2:
    59      RET
    60