aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorJeremy Faller <jeremy@golang.org>2020-07-23 15:15:26 -0400
committerJeremy Faller <jeremy@golang.org>2020-08-03 17:58:03 +0000
commite4e1c6a7aff04a61a202ed1b331ffdfdff5a77cf (patch)
tree2c05882cdba2747e1c3b169bba526912e0744b6e /src/runtime/runtime2.go
parent89cf569a45f035bae45553f399880b92ede65f38 (diff)
downloadgo-e4e1c6a7aff04a61a202ed1b331ffdfdff5a77cf.tar.gz
go-e4e1c6a7aff04a61a202ed1b331ffdfdff5a77cf.zip
[dev.link] add compilation unit index to func
Not used yet, but add the compilation unit for a function to func. Change-Id: I7c43fa9f1da044ca63bab030062519771b9f4418 Reviewed-on: https://go-review.googlesource.com/c/go/+/244547 Run-TryBot: Jeremy Faller <jeremy@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/runtime2.go')
-rw-r--r--src/runtime/runtime2.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index cffdb0bf27..0bddcaa789 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -804,9 +804,9 @@ type _func struct {
pcfile int32
pcln int32
npcdata int32
- funcID funcID // set for certain special runtime functions
- _ [2]int8 // unused
- nfuncdata uint8 // must be last
+ cuIndex uint16 // TODO(jfaller): 16 bits is never enough, make this larger.
+ funcID funcID // set for certain special runtime functions
+ nfuncdata uint8 // must be last
}
// Pseudo-Func that is returned for PCs that occur in inlined code.