Bug 1069694 - Remove or move around functions in OldDebugAPI. r=shu

This commit is contained in:
Tom Schuster
2014-09-23 15:25:31 +02:00
parent cf4a85d6e7
commit 27edac60d0
15 changed files with 326 additions and 365 deletions

View File

@@ -6486,7 +6486,7 @@ js_DumpBacktrace(JSContext *cx)
size_t depth = 0;
for (ScriptFrameIter i(cx); !i.done(); ++i, ++depth) {
const char *filename = JS_GetScriptFilename(i.script());
unsigned line = JS_PCToLineNumber(cx, i.script(), i.pc());
unsigned line = PCToLineNumber(i.script(), i.pc());
JSScript *script = i.script();
sprinter.printf("#%d %14p %s:%d (%p @ %d)\n",
depth, (i.isJit() ? 0 : i.interpFrame()), filename, line,