]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: reorg write barriers a bit
authorKeith Randall <khr@golang.org>
Sat, 30 Jan 2016 05:57:57 +0000 (21:57 -0800)
committerKeith Randall <khr@golang.org>
Fri, 5 Feb 2016 16:38:45 +0000 (16:38 +0000)
commitaebf6611dfba195d15c5119e14d6f5b708adbdfb
treea51c695d3453c197a15a6443260ad0b6b261b85d
parenta6fb514bf8dd43cff37185eb02b448d8244af9da
[dev.ssa] cmd/compile: reorg write barriers a bit

Use just a single write barrier flag test, even if there
are multiple pointer fields in a struct.

This helps move more of the wb-specific code (like the LEA
needed to materialize the write address) into the unlikely path.

Change-Id: Ic7a67145904369c4ff031e464d51267d71281c8f
Reviewed-on: https://go-review.googlesource.com/19085
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/TODO