* Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.
()
| 661 | * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure. |
| 662 | */ |
| 663 | function allocLFrame() { |
| 664 | const currentLFrame = instructionState.lFrame; |
| 665 | const childLFrame = currentLFrame === null ? null : currentLFrame.child; |
| 666 | const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame; |
| 667 | return newLFrame; |
| 668 | } |
| 669 | |
| 670 | function createLFrame(parent: LFrame | null): LFrame { |
| 671 | const lFrame: LFrame = { |
no test coverage detected
searching dependent graphs…