(slotExprs []interpreter.InterpretableV2, expr interpreter.InterpretableV2)
| 194 | } |
| 195 | |
| 196 | func newDynamicBlock(slotExprs []interpreter.InterpretableV2, expr interpreter.InterpretableV2) interpreter.InterpretableV2 { |
| 197 | bs := &dynamicBlock{ |
| 198 | slotExprs: slotExprs, |
| 199 | expr: expr, |
| 200 | } |
| 201 | bs.slotActivationPool = &sync.Pool{ |
| 202 | New: func() any { |
| 203 | slotCount := len(slotExprs) |
| 204 | return &dynamicSlotActivation{ |
| 205 | slotExprs: slotExprs, |
| 206 | slotCount: slotCount, |
| 207 | slotVals: make([]slotVal, slotCount), |
| 208 | } |
| 209 | }, |
| 210 | } |
| 211 | return bs |
| 212 | } |
| 213 | |
| 214 | type dynamicBlock struct { |
| 215 | slotExprs []interpreter.InterpretableV2 |
no outgoing calls