There's no need to do this, SpiderMonkey > b2g18 is smart enough to figure out the function name when displaying backtraces.