github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/internal/objabi/funcdata.go (about) 1 // Copyright 2013 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 file. 4 5 package objabi 6 7 // This file defines the IDs for PCDATA and FUNCDATA instructions 8 // in Go binaries. 9 // 10 // These must agree with ../../../runtime/funcdata.h and 11 // ../../../runtime/symtab.go. 12 13 const ( 14 PCDATA_RegMapIndex = 0 15 PCDATA_StackMapIndex = 1 16 PCDATA_InlTreeIndex = 2 17 18 FUNCDATA_ArgsPointerMaps = 0 19 FUNCDATA_LocalsPointerMaps = 1 20 FUNCDATA_RegPointerMaps = 2 21 FUNCDATA_StackObjects = 3 22 FUNCDATA_InlTree = 4 23 FUNCDATA_OpenCodedDeferInfo = 5 24 25 // ArgsSizeUnknown is set in Func.argsize to mark all functions 26 // whose argument size is unknown (C vararg functions, and 27 // assembly code without an explicit specification). 28 // This value is generated by the compiler, assembler, or linker. 29 ArgsSizeUnknown = -0x80000000 30 )