are loki and heimdall death?
As opposed to the majority of characters vanishing at the end of the movie, Heimdall's death was directly executed by Thanos, which doesn't really leave much chance for survival. As Thor later said about Loki, he thought he was truly dead "this time," and I think it's safe to say that the same goes from Heimdall.