Bug 1028331 - Use BailoutKind to report more detailed PJS bailout warnings. (r=lth)

This commit is contained in:
Shu-yu Guo
2014-06-26 18:31:50 -07:00
parent 437dd1b43f
commit c80133d95d
9 changed files with 173 additions and 118 deletions

View File

@@ -4904,8 +4904,8 @@ MaybeReportUndeclaredVarAssignment(JSContext *cx, JSString *propname)
bool
JSObject::reportReadOnly(ThreadSafeContext *cxArg, jsid id, unsigned report)
{
if (cxArg->isForkJoinContext())
return cxArg->asForkJoinContext()->reportError(ParallelBailoutUnsupportedVM, report);
if (cxArg->isForkJoinContext())
return cxArg->asForkJoinContext()->reportError(report);
if (!cxArg->isJSContext())
return true;
@@ -4921,7 +4921,7 @@ bool
JSObject::reportNotConfigurable(ThreadSafeContext *cxArg, jsid id, unsigned report)
{
if (cxArg->isForkJoinContext())
return cxArg->asForkJoinContext()->reportError(ParallelBailoutUnsupportedVM, report);
return cxArg->asForkJoinContext()->reportError(report);
if (!cxArg->isJSContext())
return true;
@@ -4937,7 +4937,7 @@ bool
JSObject::reportNotExtensible(ThreadSafeContext *cxArg, unsigned report)
{
if (cxArg->isForkJoinContext())
return cxArg->asForkJoinContext()->reportError(ParallelBailoutUnsupportedVM, report);
return cxArg->asForkJoinContext()->reportError(report);
if (!cxArg->isJSContext())
return true;