Bug 1946004 - Widen i32 return values in GenerateJitEntry. r=rhunt, a=dmeehan

Differential Revision: https://phabricator.services.mozilla.com/D237530
This commit is contained in:
Jan de Mooij 2025-02-13 12:21:29 +00:00
parent 18e5ad73e0
commit 2292a1e843

View file

@ -1235,7 +1235,9 @@ static bool GenerateJitEntry(MacroAssembler& masm, size_t funcExportIndex,
switch (results[0].kind()) {
case ValType::I32:
GenPrintIsize(DebugChannel::Function, masm, ReturnReg);
// No widening is required, as the value is boxed.
#ifdef JS_64BIT
masm.widenInt32(ReturnReg);
#endif
masm.boxNonDouble(JSVAL_TYPE_INT32, ReturnReg, JSReturnOperand);
break;
case ValType::F32: {