When dumping the topCallFrame, we should use numCalleeLocals instead of numVars when we don't know where the next frame is. Using numVars does not give us visibility into all locals that may be in use. Also fix CodeBlock::nameForRegister() to just use VirtualRegister's dumper instead of doing custom and duplicate work.
<rdar://problem/104439794>
Pull request: https://github.com/WebKit/WebKit/pull/8848
Committed 259109@main (8ad0557c285f): <https://commits.webkit.org/259109@main> Reviewed commits have been landed. Closing PR #8848 and removing active labels.