]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: mark architecture-specific unsafe points
authorCherry Zhang <cherryyz@google.com>
Fri, 25 Oct 2019 04:51:10 +0000 (00:51 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 5 Nov 2019 02:55:11 +0000 (02:55 +0000)
commit4a7ed1fab766a7a908e2cb20294e43b43ce7cf6c
treeb7c34194b61082718f89d8889be784dd5b40d9c9
parent0f992b994813c3ebd6fdc3335d6b48becac8a6f5
cmd/compile: mark architecture-specific unsafe points

Introduce a mechanism for marking architecture-specific Ops
unsafe. And mark ones that use REGTMP on ARM64, as for async
preemption we will be using REGTMP as a temporary register in the
injected call.

Change-Id: I8ff22e87d8f9cb10d02a2f0af7c12ad6d7d58f54
Reviewed-on: https://go-review.googlesource.com/c/go/+/203459
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/compile/internal/gc/plive.go
src/cmd/compile/internal/ssa/gen/ARM64Ops.go
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/op.go
src/cmd/compile/internal/ssa/opGen.go