github.com/bytedance/sonic@v1.11.7-0.20240517092252-d2edb31b167b/internal/decoder/generic_regabi_amd64_test.s (about)

     1  // +build go1.17,!go1.23
     2  
     3  //
     4  // Copyright 2021 ByteDance Inc.
     5  //
     6  // Licensed under the Apache License, Version 2.0 (the "License");
     7  // you may not use this file except in compliance with the License.
     8  // You may obtain a copy of the License at
     9  //
    10  //     http://www.apache.org/licenses/LICENSE-2.0
    11  //
    12  // Unless required by applicable law or agreed to in writing, software
    13  // distributed under the License is distributed on an "AS IS" BASIS,
    14  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  // See the License for the specific language governing permissions and
    16  // limitations under the License.
    17  //
    18  
    19  #include "go_asm.h"
    20  #include "funcdata.h"
    21  #include "textflag.h"
    22  
    23  TEXT ·decodeValueStub(SB), NOSPLIT, $0 - 72
    24      NO_LOCAL_POINTERS
    25      PXOR  X0, X0
    26      MOVOU X0, rv+48(FP)
    27      MOVQ  st+0(FP) , R13
    28      MOVQ  sp+8(FP) , R10
    29      MOVQ  sn+16(FP), R12
    30      MOVQ  ic+24(FP), R11
    31      MOVQ  vp+32(FP), R15
    32      MOVQ  df+40(FP), AX
    33      MOVQ  ·_subr_decode_value(SB), BX
    34      CALL  BX
    35      MOVQ  R11, rp+48(FP)
    36      MOVQ  BX, ex+56(FP)
    37      RET