зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7946029c43
Коммит
0c245228e1
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче