]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix write barrier control value on wasm
authorRichard Musiol <mail@richard-musiol.de>
Thu, 24 May 2018 02:11:05 +0000 (04:11 +0200)
committerCherry Zhang <cherryyz@google.com>
Thu, 24 May 2018 17:19:09 +0000 (17:19 +0000)
commit8aa57f1e9dec8f7fc032aea82ecc19e2bb74cdcb
tree3320f8759b17b60db1ae8c94661603d68cb34235
parentc730a93fb9845740b09b9b0cef917b30098286cc
cmd/compile: fix write barrier control value on wasm

This commit fixes a regression with wasm caused by a367f44c18.
It adds optimizations to the lowering rules of wasm to ensure
that the lowered version of the code generated for write barriers
is simple enough so it can be processed by Liveness.markUnsafePoints.

Change-Id: Ic98f0dd3791fe1df23dcb34d2457fbde7ffce441
Reviewed-on: https://go-review.googlesource.com/114375
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/plive.go
src/cmd/compile/internal/ssa/gen/Wasm.rules
src/cmd/compile/internal/ssa/rewriteWasm.go