aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/funcdata.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-12 07:51:00 -0400
committerRuss Cox <rsc@golang.org>2014-09-12 07:51:00 -0400
commit68c1c6afa002074219792689fef714d095f40fd6 (patch)
tree290e3e92e018a1aa89fe0a185be303d791067509 /src/runtime/funcdata.h
parente844f53a0198e81b359d198fc0dcf15cf01d6ed1 (diff)
downloadgo-68c1c6afa002074219792689fef714d095f40fd6.tar.xz
cmd/cc, cmd/gc: stop generating 'argsize' PCDATA
The argsize PCDATA was specifying the number of bytes passed to a function call, so that if the function did not specify its argument count, the garbage collector could use the call site information to scan those bytes conservatively. We don't do that anymore, so stop generating the information. LGTM=khr R=khr CC=golang-codereviews https://golang.org/cl/139530043
Diffstat (limited to 'src/runtime/funcdata.h')
-rw-r--r--src/runtime/funcdata.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/runtime/funcdata.h b/src/runtime/funcdata.h
index 5ddc877c2b..a2667a4c02 100644
--- a/src/runtime/funcdata.h
+++ b/src/runtime/funcdata.h
@@ -9,18 +9,12 @@
//
// symtab.go also contains a copy of these constants.
-// TODO(rsc): Remove PCDATA_ArgSize, renumber StackMapIndex to 0.
-#define PCDATA_ArgSize 0 /* argument size at CALL instruction */
-#define PCDATA_StackMapIndex 1
+#define PCDATA_StackMapIndex 0
#define FUNCDATA_ArgsPointerMaps 0 /* garbage collector blocks */
#define FUNCDATA_LocalsPointerMaps 1
#define FUNCDATA_DeadValueMaps 2
-// TODO(rsc): Remove ARGSIZE.
-// To be used in assembly.
-#define ARGSIZE(n) PCDATA $PCDATA_ArgSize, $n
-
// Pseudo-assembly statements.
// GO_ARGS, GO_RESULTS_INITIALIZED, and NO_LOCAL_POINTERS are macros