Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
funcdata.h58 linesDownload Raw Back to include
1// Copyright 2013 The Go Authors. All rights reserved.2// Use of this source code is governed by a BSD-style3// license that can be found in the LICENSE file.4 5// This file defines the IDs for PCDATA and FUNCDATA instructions6// in Go binaries. It is included by assembly sources, so it must7// be written using #defines.8//9// These must agree with internal/abi/symtab.go.10 11#define PCDATA_UnsafePoint 012#define PCDATA_StackMapIndex 113#define PCDATA_InlTreeIndex 214#define PCDATA_ArgLiveIndex 315#define PCDATA_PanicBounds 416 17#define FUNCDATA_ArgsPointerMaps 0 /* garbage collector blocks */18#define FUNCDATA_LocalsPointerMaps 119#define FUNCDATA_StackObjects 220#define FUNCDATA_InlTree 321#define FUNCDATA_OpenCodedDeferInfo 4 /* info for func with open-coded defers */22#define FUNCDATA_ArgInfo 523#define FUNCDATA_ArgLiveInfo 624#define FUNCDATA_WrapInfo 725 26// Pseudo-assembly statements.27 28// GO_ARGS, GO_RESULTS_INITIALIZED, and NO_LOCAL_POINTERS are macros29// that communicate to the runtime information about the location and liveness30// of pointers in an assembly function's arguments, results, and stack frame.31// This communication is only required in assembly functions that make calls32// to other functions that might be preempted or grow the stack.33// NOSPLIT functions that make no calls do not need to use these macros.34 35// GO_ARGS indicates that the Go prototype for this assembly function36// defines the pointer map for the function's arguments.37// GO_ARGS should be the first instruction in a function that uses it.38// It can be omitted if there are no arguments at all.39// GO_ARGS is inserted implicitly by the assembler for any function40// whose package-qualified symbol name belongs to the current package;41// it is therefore usually not necessary to write explicitly.42#define GO_ARGS	FUNCDATA $FUNCDATA_ArgsPointerMaps, go_args_stackmap(SB)43 44// GO_RESULTS_INITIALIZED indicates that the assembly function45// has initialized the stack space for its results and that those results46// should be considered live for the remainder of the function.47#define GO_RESULTS_INITIALIZED	PCDATA $PCDATA_StackMapIndex, $148 49// NO_LOCAL_POINTERS indicates that the assembly function stores50// no pointers to heap objects in its local stack variables.51#define NO_LOCAL_POINTERS	FUNCDATA $FUNCDATA_LocalsPointerMaps, no_pointers_stackmap(SB)52 53// ArgsSizeUnknown is set in Func.argsize to mark all functions54// whose argument size is unknown (C vararg functions, and55// assembly code without an explicit specification).56// This value is generated by the compiler, assembler, or linker.57#define ArgsSizeUnknown 0x8000000058 
codekingpro/portable-devtools · Team Ai