Iran's judiciary chief has vowed decisive punishment for protesters, signaling a coming crackdown against demonstrations.