- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for typeAssert (0.2 sec)
-
src/cmd/compile/internal/walk/expr.go
// When converting from an interface to a non-empty interface. Needs a runtime call. // Allocate an internal/abi.TypeAssert descriptor for that call. lsym := types.LocalPkg.Lookup(fmt.Sprintf(".typeAssert.%d", typeAssertGen)).LinksymABI(obj.ABI0) typeAssertGen++ c := rttype.NewCursor(lsym, 0, rttype.TypeAssert) c.Field("Cache").WritePtr(typecheck.LookupRuntimeVar("emptyTypeAssertCache"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 27.6K bytes - Viewed (0) -
src/runtime/iface.go
if t == nil { return nil } return getitab(inter, t, true) } // typeAssert builds an itab for the concrete type t and the // interface type s.Inter. If the conversion is not possible it // panics if s.CanFail is false and returns nil if s.CanFail is true. func typeAssert(s *abi.TypeAssert, t *_type) *itab { var tab *itab if t == nil { if !s.CanFail {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 22.5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/_builtin/runtime.go
func assertE2I(inter *byte, typ *byte) *byte func assertE2I2(inter *byte, typ *byte) *byte func panicdottypeE(have, want, iface *byte) func panicdottypeI(have, want, iface *byte) func panicnildottype(want *byte) func typeAssert(s *byte, typ *byte) *byte // interface switches func interfaceSwitch(s *byte, t *byte) (int, *byte) // interface equality. Type/itab pointers are already known to be equal, so // we only need to pass one.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 10.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/builtin.go
{"convTslice", funcTag, 66}, {"assertE2I", funcTag, 67}, {"assertE2I2", funcTag, 67}, {"panicdottypeE", funcTag, 68}, {"panicdottypeI", funcTag, 68}, {"panicnildottype", funcTag, 69}, {"typeAssert", funcTag, 67}, {"interfaceSwitch", funcTag, 70}, {"ifaceeq", funcTag, 72}, {"efaceeq", funcTag, 72}, {"panicrangestate", funcTag, 73}, {"deferrangefunc", funcTag, 74}, {"rand32", funcTag, 75},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 16.2K bytes - Viewed (0)