mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +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
|
|
@ -1970,7 +1970,7 @@ WrappedFunction::WrappedFunction(JSFunction* fun)
|
|||
|
||||
MCall*
|
||||
MCall::New(TempAllocator& alloc, JSFunction* target, size_t maxArgc, size_t numActualArgs,
|
||||
bool construct, bool isDOMCall)
|
||||
bool construct, bool ignoresReturnValue, bool isDOMCall)
|
||||
{
|
||||
WrappedFunction* wrappedTarget = target ? new(alloc) WrappedFunction(target) : nullptr;
|
||||
MOZ_ASSERT(maxArgc >= numActualArgs);
|
||||
|
|
@ -1979,7 +1979,7 @@ MCall::New(TempAllocator& alloc, JSFunction* target, size_t maxArgc, size_t numA
|
|||
MOZ_ASSERT(!construct);
|
||||
ins = new(alloc) MCallDOMNative(wrappedTarget, numActualArgs);
|
||||
} else {
|
||||
ins = new(alloc) MCall(wrappedTarget, numActualArgs, construct);
|
||||
ins = new(alloc) MCall(wrappedTarget, numActualArgs, construct, ignoresReturnValue);
|
||||
}
|
||||
if (!ins->init(alloc, maxArgc + NumNonArgumentOperands))
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue