-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/abi, runtime, cmd: merge funcID_* consts into internal/abi
For #59670. Change-Id: I517e97ea74cf232e5cfbb77b127fa8804f74d84b Reviewed-on: https://go-review.googlesource.com/c/go/+/485495 Reviewed-by: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com>
- Loading branch information
Showing
16 changed files
with
124 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright 2023 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 abi | ||
|
||
// A FuncID identifies particular functions that need to be treated | ||
// specially by the runtime. | ||
// Note that in some situations involving plugins, there may be multiple | ||
// copies of a particular special runtime function. | ||
type FuncID uint8 | ||
|
||
const ( | ||
// If you add a FuncID, you probably also want to add an entry to the map in | ||
// ../../cmd/internal/objabi/funcid.go | ||
|
||
FuncIDNormal FuncID = iota // not a special function | ||
FuncID_abort | ||
FuncID_asmcgocall | ||
FuncID_asyncPreempt | ||
FuncID_cgocallback | ||
FuncID_debugCallV2 | ||
FuncID_gcBgMarkWorker | ||
FuncID_goexit | ||
FuncID_gogo | ||
FuncID_gopanic | ||
FuncID_handleAsyncEvent | ||
FuncID_mcall | ||
FuncID_morestack | ||
FuncID_mstart | ||
FuncID_panicwrap | ||
FuncID_rt0_go | ||
FuncID_runfinq | ||
FuncID_runtime_main | ||
FuncID_sigpanic | ||
FuncID_systemstack | ||
FuncID_systemstack_switch | ||
FuncIDWrapper // any autogenerated code (hash/eq algorithms, method wrappers, etc.) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.