}
func efaceeq(x, y eface) bool {
t := x._type
- if !eqtype(t, y._type) {
+ if t != y._type {
return false
}
if t == nil {
return false
}
t := *(**_type)(xtab)
- if !eqtype(t, *(**_type)(y.tab)) {
+ if t != *(**_type)(y.tab) {
return false
}
eq := t.equalfn
return false
}
xt := *(**_type)(x.tab)
- if !eqtype(xt, t) {
+ if xt != t {
return false
}
eq := t.equalfn
return false
}
xt := *(**_type)(x.tab)
- if !eqtype(xt, y._type) {
+ if xt != y._type {
return false
}
eq := xt.equalfn
if x._type == nil {
return false
}
- if !eqtype(x._type, t) {
+ if x._type != t {
return false
}
eq := t.equalfn
ri++
}
- if !eqtype(lhsMethod.typ, rhsMethod.mtyp) {
+ if lhsMethod.typ != rhsMethod.mtyp {
m.methods[1] = nil
return *lhsMethod.name
}
// Convert an empty interface to a pointer non-interface type.
func ifaceE2T2P(t *_type, e eface) (unsafe.Pointer, bool) {
- if !eqtype(t, e._type) {
+ if t != e._type {
return nil, false
} else {
return e.data, true
// Convert a non-empty interface to a pointer non-interface type.
func ifaceI2T2P(t *_type, i iface) (unsafe.Pointer, bool) {
- if i.tab == nil || !eqtype(t, *(**_type)(i.tab)) {
+ if i.tab == nil || t != *(**_type)(i.tab) {
return nil, false
} else {
return i.data, true
// Convert an empty interface to a non-pointer non-interface type.
func ifaceE2T2(t *_type, e eface, ret unsafe.Pointer) bool {
- if !eqtype(t, e._type) {
+ if t != e._type {
typedmemclr(t, ret)
return false
} else {
// Convert a non-empty interface to a non-pointer non-interface type.
func ifaceI2T2(t *_type, i iface, ret unsafe.Pointer) bool {
- if i.tab == nil || !eqtype(t, *(**_type)(i.tab)) {
+ if i.tab == nil || t != *(**_type)(i.tab) {
typedmemclr(t, ret)
return false
} else {
ri++
}
- if !eqtype(fromMethod.mtyp, toMethod.typ) {
+ if fromMethod.mtyp != toMethod.typ {
return false
}