mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
1344477 - Part 1: Add JSOP_CALL_IGNORES_RV for function call that ignores return value.
This commit is contained in:
parent
43c3ab5a0e
commit
417aa02122
22 changed files with 243 additions and 92 deletions
|
|
@ -54,8 +54,8 @@ VMFunction::addToFunctions()
|
|||
}
|
||||
|
||||
bool
|
||||
InvokeFunction(JSContext* cx, HandleObject obj, bool constructing, uint32_t argc, Value* argv,
|
||||
MutableHandleValue rval)
|
||||
InvokeFunction(JSContext* cx, HandleObject obj, bool constructing, bool ignoresReturnValue,
|
||||
uint32_t argc, Value* argv, MutableHandleValue rval)
|
||||
{
|
||||
TraceLoggerThread* logger = TraceLoggerForMainThread(cx->runtime());
|
||||
TraceLogStartEvent(logger, TraceLogger_Call);
|
||||
|
|
@ -104,7 +104,7 @@ InvokeFunction(JSContext* cx, HandleObject obj, bool constructing, uint32_t argc
|
|||
return InternalConstructWithProvidedThis(cx, fval, thisv, cargs, newTarget, rval);
|
||||
}
|
||||
|
||||
InvokeArgs args(cx);
|
||||
InvokeArgsMaybeIgnoresReturnValue args(cx, ignoresReturnValue);
|
||||
if (!args.init(cx, argc))
|
||||
return false;
|
||||
|
||||
|
|
@ -120,7 +120,7 @@ InvokeFunctionShuffleNewTarget(JSContext* cx, HandleObject obj, uint32_t numActu
|
|||
{
|
||||
MOZ_ASSERT(numFormalArgs > numActualArgs);
|
||||
argv[1 + numActualArgs] = argv[1 + numFormalArgs];
|
||||
return InvokeFunction(cx, obj, true, numActualArgs, argv, rval);
|
||||
return InvokeFunction(cx, obj, true, false, numActualArgs, argv, rval);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue