compiler: open code some type assertions
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 21 Jun 2019 22:00:57 +0000 (22:00 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 21 Jun 2019 22:00:57 +0000 (22:00 +0000)
commit0514cb33749fefd2542e7294a35d0ef0ccae30b3
tree7c947df211513d9ca430a41d1980e1b9e624177d
parentfd4e7255b60901581961b62e364ce85baf52d631
compiler: open code some type assertions

    Now that type equality is just simple pointer equality, we can
    open code some type assertions instead of making runtime calls.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/182977

From-SVN: r272577
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/runtime.def
gcc/go/gofrontend/statements.cc
libgo/go/runtime/iface.go