Bug 480126 - jsstack.js static analysis errors in js_GetCurrentBytecodePC and specializeTreesToMissingGlobals. r=bsmedberg.
This commit is contained in:
@@ -3945,11 +3945,14 @@ js_GetCurrentBytecodePC(JSContext* cx)
|
||||
imacpc = cx->bailExit->imacpc;
|
||||
} else
|
||||
#endif
|
||||
if (cx->fp && cx->fp->regs) {
|
||||
pc = cx->fp->regs->pc;
|
||||
imacpc = cx->fp->imacpc;
|
||||
} else {
|
||||
return NULL;
|
||||
{
|
||||
JS_ASSERT_NOT_ON_TRACE(cx); /* for static analysis */
|
||||
if (cx->fp && cx->fp->regs) {
|
||||
pc = cx->fp->regs->pc;
|
||||
imacpc = cx->fp->imacpc;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user