]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: implement more panic stuff
authorKeith Randall <khr@golang.org>
Tue, 18 Aug 2015 22:25:40 +0000 (15:25 -0700)
committerKeith Randall <khr@golang.org>
Wed, 19 Aug 2015 23:17:48 +0000 (23:17 +0000)
commit8d23681cc836db6ed233564781747592f1c41225
tree890712d9b55d60dc6e6e9ca678a1a195ccf380c5
parent46e62f873a34b06348bdaf231f1b72367950732e
[dev.ssa] cmd/compile: implement more panic stuff

Implement index check panics (and slice check panics, for when
we need those).

Clean up nil check.  Now that the new regalloc is in we can use
the register we just tested as the address 0 destination.

Remove jumps after panic calls, they are unreachable.

Change-Id: Ifee6e510cdea49cc7c7056887e4f06c67488d491
Reviewed-on: https://go-review.googlesource.com/13687
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/genericOps.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteAMD64.go