Massachusetts is one of 12 states that does not have the death penalty , having abolished capital punishment in 1984 .