mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/objabi: add regabi GOEXPERIMENT
This is the "feature flag" for the register calling convention work (though since this work is expected to extend over a few releases, it's not version-prefixed). This will let us develop the register calling convention on the main branch while maintaining an easy toggle between the old and new ABIs. Updates #40724. Change-Id: I129c8d87d34e6fa0910b6fa43efb35b706021637 Reviewed-on: https://go-review.googlesource.com/c/go/+/252257 Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
6c76edeb1b
commit
2b8b06ebbf
1 changed files with 7 additions and 0 deletions
|
|
@ -131,6 +131,11 @@ func init() {
|
||||||
addexp(f)
|
addexp(f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// regabi is only supported on amd64.
|
||||||
|
if GOARCH != "amd64" {
|
||||||
|
Regabi_enabled = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: must agree with runtime.framepointer_enabled.
|
// Note: must agree with runtime.framepointer_enabled.
|
||||||
|
|
@ -161,6 +166,7 @@ var (
|
||||||
Fieldtrack_enabled int
|
Fieldtrack_enabled int
|
||||||
Preemptibleloops_enabled int
|
Preemptibleloops_enabled int
|
||||||
Staticlockranking_enabled int
|
Staticlockranking_enabled int
|
||||||
|
Regabi_enabled int
|
||||||
)
|
)
|
||||||
|
|
||||||
// Toolchain experiments.
|
// Toolchain experiments.
|
||||||
|
|
@ -174,6 +180,7 @@ var exper = []struct {
|
||||||
{"fieldtrack", &Fieldtrack_enabled},
|
{"fieldtrack", &Fieldtrack_enabled},
|
||||||
{"preemptibleloops", &Preemptibleloops_enabled},
|
{"preemptibleloops", &Preemptibleloops_enabled},
|
||||||
{"staticlockranking", &Staticlockranking_enabled},
|
{"staticlockranking", &Staticlockranking_enabled},
|
||||||
|
{"regabi", &Regabi_enabled},
|
||||||
}
|
}
|
||||||
|
|
||||||
var defaultExpstring = Expstring()
|
var defaultExpstring = Expstring()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue