[vm] allocate before frame pinning
[vm] designdoc b4 and b8