aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/objabi
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2023-04-17 16:50:00 -0400
committerGopher Robot <gobot@golang.org>2023-04-21 19:28:49 +0000
commit7843ca83e7c8229f4fdca22949428a2418f45138 (patch)
treeaf287142e7909423c1e4ea9873c21b15f60aa06b /src/cmd/internal/objabi
parent2668a190baa302a1fd7e22285cdb343af67530ad (diff)
downloadgo-7843ca83e7c8229f4fdca22949428a2418f45138.tar.xz
internal/abi, runtime, cmd: merge PCDATA_* and FUNCDATA_* consts into internal/abi
We also rename the constants related to unsafe-points: currently, they follow the same naming scheme as the PCDATA table indexes, but are not PCDATA table indexes. For #59670. Change-Id: I06529fecfae535be5fe7d9ac56c886b9106c74fd Reviewed-on: https://go-review.googlesource.com/c/go/+/485497 Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Austin Clements <austin@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd/internal/objabi')
-rw-r--r--src/cmd/internal/objabi/funcdata.go51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/cmd/internal/objabi/funcdata.go b/src/cmd/internal/objabi/funcdata.go
deleted file mode 100644
index 05a1d49dec..0000000000
--- a/src/cmd/internal/objabi/funcdata.go
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2013 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 objabi
-
-// This file defines the IDs for PCDATA and FUNCDATA instructions
-// in Go binaries.
-//
-// These must agree with ../../../runtime/funcdata.h and
-// ../../../runtime/symtab.go.
-
-const (
- PCDATA_UnsafePoint = 0
- PCDATA_StackMapIndex = 1
- PCDATA_InlTreeIndex = 2
- PCDATA_ArgLiveIndex = 3
-
- FUNCDATA_ArgsPointerMaps = 0
- FUNCDATA_LocalsPointerMaps = 1
- FUNCDATA_StackObjects = 2
- FUNCDATA_InlTree = 3
- FUNCDATA_OpenCodedDeferInfo = 4
- FUNCDATA_ArgInfo = 5
- FUNCDATA_ArgLiveInfo = 6
- FUNCDATA_WrapInfo = 7
-
- // ArgsSizeUnknown is set in Func.argsize to mark all functions
- // whose argument size is unknown (C vararg functions, and
- // assembly code without an explicit specification).
- // This value is generated by the compiler, assembler, or linker.
- ArgsSizeUnknown = -0x80000000
-)
-
-// Special PCDATA values.
-const (
- // PCDATA_UnsafePoint values.
- PCDATA_UnsafePointSafe = -1 // Safe for async preemption
- PCDATA_UnsafePointUnsafe = -2 // Unsafe for async preemption
-
- // PCDATA_Restart1(2) apply on a sequence of instructions, within
- // which if an async preemption happens, we should back off the PC
- // to the start of the sequence when resuming.
- // We need two so we can distinguish the start/end of the sequence
- // in case that two sequences are next to each other.
- PCDATA_Restart1 = -3
- PCDATA_Restart2 = -4
-
- // Like PCDATA_Restart1, but back to function entry if async preempted.
- PCDATA_RestartAtEntry = -5
-)