Not many have rushed to Kathy Griffin's defense after a picture depicting her holding President Donald Trump's severed head went viral, but fellow comedy star Jim Carrey says that her job as a comedian is to push the boundaries.

"I think it is the job of a comedian to cross the line at all times because that line is not real," Carry told Entertainment Tonight at the premiere of his new Showtime drama, "I'm Dying Up Here," which is all about comedians.

"If you step out into that spotlight and you're doing the crazy things that [Trump'] doing, we're the last line of defense. And really, the comedians are the last voice of truth in this whole thing. It's impossible to get away from it," he said.

Carrey even hinted subtly at having had his own fantasies about hurting Trump, mentioning a dream he had recently in which he was golfing with the President.

"I was standing beside him with a club in my hand, and I was considering my options when I suddenly woke up," he said. "It was one of those dreams where you just wanna get back to sleep so you can finish it."

Carrey then called out "at least half the country" for being hypocritical.

"I see that everybody's a hypocrite because everybody's imagined themselves standing there with his head, maybe at least half the country,” Carrey told Extra while at the same event. "We're in a tough spot. It's a very divided world. We're sitting here watching this nonsense happen and people like Sean Spicer come out and talk about it like we're kindergartners. You know, covering for the President is like putting makeup on a melanoma — not only unsightly but it's dangerous."

CNN did not share Carrey's sympathy for Griffin, and fired the comedian from hosting its annual New Year's Eve special with Anderson Cooper, hours after the photo -- shot by Tyler Shields -- was ripped to shreds on social media by Republicans, Democrats and everyone in between.

"CNN has terminated our agreement with Kathy Griffin to appear on our New Year's Eve program," the network said Wednesday.

CNN has terminated our agreement with Kathy Griffin to appear on our New Year's Eve program. @CNNPR

Even Griffin's lengthy apology video couldn't save her job.

"Hey, everybody. It's me, Kathy Griffin," she said in the video (below) posted on Twitter. "I sincerely apologize. I am just now seeing the reaction to these images. I'm a comic. I crossed the line. I move the line, then I cross it. I went way too far. The image is too disturbing. I understand how it offends people. It wasn't funny. I get it. I've made a lot of mistakes in my career. I will continue. I ask your forgiveness. Taking down the image. I am going to ask the photographer to take down the image. And I beg for your forgiveness. I went too far. I made a mistake, and I was wrong."