mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: eliminate OASWB
Instead we can just call needwritebarrier when constructing the SSA representation. Change-Id: I6fefaad49daada9cdb3050f112889e49dca0047b Reviewed-on: https://go-review.googlesource.com/34566 Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
e7ec06e000
commit
bdb9b945b9
11 changed files with 17 additions and 40 deletions
|
|
@ -361,7 +361,6 @@ const (
|
|||
OAS2MAPR // List = Rlist (x, ok = m["foo"])
|
||||
OAS2DOTTYPE // List = Rlist (x, ok = I.(int))
|
||||
OASOP // Left Etype= Right (x += y)
|
||||
OASWB // Left = Right (with write barrier)
|
||||
OCALL // Left(List) (function call, method call or type conversion)
|
||||
OCALLFUNC // Left(List) (function call f(args))
|
||||
OCALLMETH // Left(List) (direct method call x.Method(args))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue