Both phrases have different usages in different contexts, but when expressing persistence of an action or state, "all the way" implies some movement, such as in the sentence "He was chewing gum all the way to the store."
"Throughout" emphasizes the encompassing scenario or situation, such as in the sentence "They were talking throughout the whole movie."