зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1661256 part 23 - Convert js_free callWithABI calls. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D91803
This commit is contained in:
Родитель
c66628cfa2
Коммит
7946029c43
|
@ -35,6 +35,8 @@
|
|||
#include "js/Conversions.h" // JS::ToInt32
|
||||
#include "js/experimental/JitInfo.h"
|
||||
// JSJitGetterOp, JSJitSetterOp, JSJitMethodOp
|
||||
#include "js/Utility.h" // js_free
|
||||
|
||||
#include "vm/ArgumentsObject.h" // js::ArgumentsObject::finishForIonPure
|
||||
#include "vm/RegExpShared.h" // js::ExecuteRegExpAtomRaw
|
||||
#include "vm/TraceLogging.h" // js::TraceLogStartEventPrivate,
|
||||
|
@ -67,6 +69,7 @@ namespace jit {
|
|||
_(js::ecmaHypot) \
|
||||
_(js::ecmaPow) \
|
||||
_(js::ExecuteRegExpAtomRaw) \
|
||||
_(js_free) \
|
||||
_(js::hypot3) \
|
||||
_(js::hypot4) \
|
||||
_(js::Int32ToStringHelperPure) \
|
||||
|
|
|
@ -9900,10 +9900,11 @@ void JitRuntime::generateFreeStub(MacroAssembler& masm) {
|
|||
const Register regTemp = regs.takeAnyGeneral();
|
||||
MOZ_ASSERT(regTemp != regSlots);
|
||||
|
||||
using Fn = void (*)(void* p);
|
||||
masm.setupUnalignedABICall(regTemp);
|
||||
masm.passABIArg(regSlots);
|
||||
masm.callWithABI(JS_FUNC_TO_DATA_PTR(void*, js_free), MoveOp::GENERAL,
|
||||
CheckUnsafeCallWithABI::DontCheckOther);
|
||||
masm.callWithABI<Fn, js_free>(MoveOp::GENERAL,
|
||||
CheckUnsafeCallWithABI::DontCheckOther);
|
||||
|
||||
masm.PopRegsInMask(save);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче