OXIESEC PANEL
- Current Dir:
/
/
opt
/
golang
/
1.22.0
/
src
/
cmd
/
internal
/
goobj
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/02/2024 06:09:55 PM
rwxr-xr-x
📄
builtin.go
1.09 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
builtinlist.go
7.32 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
funcinfo.go
3.85 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
mkbuiltin.go
3.85 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
objfile.go
23.51 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
objfile_test.go
2.99 KB
02/02/2024 06:09:55 PM
rw-r--r--
Editing: builtin.go
Close
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package goobj import "internal/buildcfg" // Builtin (compiler-generated) function references appear // frequently. We assign special indices for them, so they // don't need to be referenced by name. // NBuiltin returns the number of listed builtin // symbols. func NBuiltin() int { return len(builtins) } // BuiltinName returns the name and ABI of the i-th // builtin symbol. func BuiltinName(i int) (string, int) { return builtins[i].name, builtins[i].abi } // BuiltinIdx returns the index of the builtin with the // given name and abi, or -1 if it is not a builtin. func BuiltinIdx(name string, abi int) int { i, ok := builtinMap[name] if !ok { return -1 } if buildcfg.Experiment.RegabiWrappers && builtins[i].abi != abi { return -1 } return i } //go:generate go run mkbuiltin.go var builtinMap map[string]int func init() { builtinMap = make(map[string]int, len(builtins)) for i, b := range builtins { builtinMap[b.name] = i } }