github.com/Rookout/GoSDK@v0.1.48/pkg/services/assembler/internal/abi/symtab.go (about) 1 // Copyright 2023 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE.assembler file. 4 5 package abi 6 7 8 type FuncFlag uint8 9 10 const ( 11 12 13 14 15 16 17 FuncFlagTopFrame FuncFlag = 1 << iota 18 19 20 21 22 23 24 25 26 FuncFlagSPWrite 27 28 29 FuncFlagAsm 30 ) 31 32 33 34 35 36 type FuncID uint8 37 38 const ( 39 40 41 42 FuncIDNormal FuncID = iota 43 FuncID_abort 44 FuncID_asmcgocall 45 FuncID_asyncPreempt 46 FuncID_cgocallback 47 FuncID_debugCallV2 48 FuncID_gcBgMarkWorker 49 FuncID_goexit 50 FuncID_gogo 51 FuncID_gopanic 52 FuncID_handleAsyncEvent 53 FuncID_mcall 54 FuncID_morestack 55 FuncID_mstart 56 FuncID_panicwrap 57 FuncID_rt0_go 58 FuncID_runfinq 59 FuncID_runtime_main 60 FuncID_sigpanic 61 FuncID_systemstack 62 FuncID_systemstack_switch 63 FuncIDWrapper 64 ) 65 66 67 68 69 70 const ArgsSizeUnknown = -0x80000000 71 72 73 74 75 const ( 76 PCDATA_UnsafePoint = 0 77 PCDATA_StackMapIndex = 1 78 PCDATA_InlTreeIndex = 2 79 PCDATA_ArgLiveIndex = 3 80 81 FUNCDATA_ArgsPointerMaps = 0 82 FUNCDATA_LocalsPointerMaps = 1 83 FUNCDATA_StackObjects = 2 84 FUNCDATA_InlTree = 3 85 FUNCDATA_OpenCodedDeferInfo = 4 86 FUNCDATA_ArgInfo = 5 87 FUNCDATA_ArgLiveInfo = 6 88 FUNCDATA_WrapInfo = 7 89 ) 90 91 92 const ( 93 UnsafePointSafe = -1 94 UnsafePointUnsafe = -2 95 96 97 98 99 100 101 UnsafePointRestart1 = -3 102 UnsafePointRestart2 = -4 103 104 105 UnsafePointRestartAtEntry = -5 106 )