(arraySize, hashSize int)
| 17 | func (t *table) atString(k string) value { return t.hash[k] } |
| 18 | |
| 19 | func newTableWithSize(arraySize, hashSize int) *table { |
| 20 | t := new(table) |
| 21 | if arraySize > 0 { |
| 22 | t.array = make([]value, arraySize) |
| 23 | } |
| 24 | if hashSize > 0 { |
| 25 | t.hash = make(map[value]value, hashSize) |
| 26 | } else { |
| 27 | t.hash = make(map[value]value) |
| 28 | } |
| 29 | return t |
| 30 | } |
| 31 | |
| 32 | func (l *State) fastTagMethod(table *table, event tm) value { |
| 33 | if table == nil || table.flags&1<<event != 0 { |
no outgoing calls
no test coverage detected