Bug 1661256 part 24 - Convert Atomics*Fn callWithABI dynamic calls. r=lth

Differential Revision: https://phabricator.services.mozilla.com/D91804
This commit is contained in:
Nicolas B. Pierron 2020-10-05 16:56:07 +00:00
Родитель 7946029c43
Коммит 0c245228e1
2 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -115,6 +115,8 @@ namespace jit {
// List of all ABI function signature which are using a computed function
// pointer instead of a statically known function pointer.
#define ABIFUNCTIONSIG_LIST(_) \
_(AtomicsCompareExchangeFn) \
_(AtomicsReadWriteModifyFn) \
_(float (*)(float)) \
_(JSJitGetterOp) \
_(JSJitMethodOp) \

Просмотреть файл

@ -7822,8 +7822,8 @@ bool CacheIRCompiler::emitAtomicsCompareExchangeResult(
masm.passABIArg(index);
masm.passABIArg(expected);
masm.passABIArg(replacement);
masm.callWithABI(
JS_FUNC_TO_DATA_PTR(void*, AtomicsCompareExchange(elementType)));
masm.callWithABI(DynamicFunction<AtomicsCompareExchangeFn>(
AtomicsCompareExchange(elementType)));
masm.storeCallInt32Result(scratch);
masm.PopRegsInMask(volatileRegs);
@ -7873,7 +7873,7 @@ bool CacheIRCompiler::emitAtomicsReadModifyWriteResult(
masm.passABIArg(obj);
masm.passABIArg(index);
masm.passABIArg(value);
masm.callWithABI(JS_FUNC_TO_DATA_PTR(void*, fn));
masm.callWithABI(DynamicFunction<AtomicsReadWriteModifyFn>(fn));
masm.storeCallInt32Result(scratch);
masm.PopRegsInMask(volatileRegs);