Massachusetts is one of 12 states without the death penalty , having abolished it in 1984 .