forked from mirrors/gecko-dev
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:
parent
18e5ad73e0
commit
2292a1e843
1 changed files with 3 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue