@@ -217,11 +217,10 @@ type Mark struct {
217
217
type ScopeID int32
218
218
219
219
const (
220
- funcDupok = 1 << iota // duplicate definitions ok
221
- funcWrapper // hide frame from users (elide in tracebacks, don't count as a frame for recover())
222
- funcABIWrapper // is an ABI wrapper (also set flagWrapper)
223
- funcNeedctxt // function uses context register (has closure variables)
224
- funcReflectMethod // function calls reflect.Type.Method or MethodByName
220
+ funcDupok = 1 << iota // duplicate definitions ok
221
+ funcWrapper // hide frame from users (elide in tracebacks, don't count as a frame for recover())
222
+ funcABIWrapper // is an ABI wrapper (also set flagWrapper)
223
+ funcNeedctxt // function uses context register (has closure variables)
225
224
// true if closure inside a function; false if a simple function or a
226
225
// closure in a global variable initialization
227
226
funcIsHiddenClosure
@@ -244,7 +243,6 @@ func (f *Func) Dupok() bool { return f.flags&funcDupok != 0 }
244
243
func (f * Func ) Wrapper () bool { return f .flags & funcWrapper != 0 }
245
244
func (f * Func ) ABIWrapper () bool { return f .flags & funcABIWrapper != 0 }
246
245
func (f * Func ) Needctxt () bool { return f .flags & funcNeedctxt != 0 }
247
- func (f * Func ) ReflectMethod () bool { return f .flags & funcReflectMethod != 0 }
248
246
func (f * Func ) IsHiddenClosure () bool { return f .flags & funcIsHiddenClosure != 0 }
249
247
func (f * Func ) IsDeadcodeClosure () bool { return f .flags & funcIsDeadcodeClosure != 0 }
250
248
func (f * Func ) HasDefer () bool { return f .flags & funcHasDefer != 0 }
@@ -259,7 +257,6 @@ func (f *Func) SetDupok(b bool) { f.flags.set(funcDupok, b) }
259
257
func (f * Func ) SetWrapper (b bool ) { f .flags .set (funcWrapper , b ) }
260
258
func (f * Func ) SetABIWrapper (b bool ) { f .flags .set (funcABIWrapper , b ) }
261
259
func (f * Func ) SetNeedctxt (b bool ) { f .flags .set (funcNeedctxt , b ) }
262
- func (f * Func ) SetReflectMethod (b bool ) { f .flags .set (funcReflectMethod , b ) }
263
260
func (f * Func ) SetIsHiddenClosure (b bool ) { f .flags .set (funcIsHiddenClosure , b ) }
264
261
func (f * Func ) SetIsDeadcodeClosure (b bool ) { f .flags .set (funcIsDeadcodeClosure , b ) }
265
262
func (f * Func ) SetHasDefer (b bool ) { f .flags .set (funcHasDefer , b ) }
0 commit comments