Bug 861139 - Fix the return of a floating point value from an ARM asm.js entry. r=mrosenberg

This commit is contained in:
Douglas Crosher 2013-04-12 22:13:51 +10:00
parent 00e3c7f5b2
commit 0f512e6189

View File

@ -4902,7 +4902,9 @@ GenerateEntry(ModuleCompiler &m, const AsmJSModule::ExportedFunction &exportedFu
masm.storeValue(JSVAL_TYPE_INT32, ReturnReg, Address(argv, 0));
break;
case RetType::Double:
#ifndef JS_CPU_ARM_HARDFP
masm.ma_vxfer(r0, r1, d0);
#endif
masm.canonicalizeDouble(ReturnFloatReg);
masm.storeDouble(ReturnFloatReg, Address(argv, 0));
break;