Every enemy attack wave you completely destroy drops a "P". Collect 12 to power up your weapons. There's a bar above your lives that shows you your progress.
And just to be nice, losing a life doesn't clear the bar, it just degrades your weapon by one level.