]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use descriptors for type assertion runtime calls
authorKeith Randall <khr@golang.org>
Mon, 18 Sep 2023 17:13:18 +0000 (10:13 -0700)
committerKeith Randall <khr@golang.org>
Fri, 6 Oct 2023 17:02:26 +0000 (17:02 +0000)
commitb455e239aeeeb1d33eaa34e62c397f3408245a0c
treec718b16ffadeae312032d186b46491c0c4dae408
parent749925701606fae9c71559704a094279bc775512
cmd/compile: use descriptors for type assertion runtime calls

Mostly a reorganization to make further changes easier.

This reorganization will make it easier to add a cache in front
of the runtime call.

Leave the old code alone for dynamic type assertions (aka generics).

Change-Id: Ia7dcb7aeb1f63baf93584ccd792e8e31510e8aea
Reviewed-on: https://go-review.googlesource.com/c/go/+/529196
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/symtab.go
src/cmd/compile/internal/objw/objw.go
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/typecheck/_builtin/runtime.go
src/cmd/compile/internal/typecheck/builtin.go
src/cmd/compile/internal/walk/expr.go
src/internal/abi/switch.go
src/runtime/iface.go