Bug 1661256 part 27 - Convert HandleCodeCoverage* callWithABI calls. r=tcampbell

Differential Revision: https://phabricator.services.mozilla.com/D91807
This commit is contained in:
Nicolas B. Pierron 2020-10-05 16:56:14 +00:00
Родитель 94d84aaa96
Коммит 72b3b6890e
2 изменённых файлов: 8 добавлений и 3 удалений

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

@ -105,6 +105,8 @@ namespace jit {
_(js::jit::GetNativeDataPropertyByValuePure<true>) \
_(js::jit::GetNativeDataPropertyPure<false>) \
_(js::jit::GetNativeDataPropertyPure<true>) \
_(js::jit::HandleCodeCoverageAtPC) \
_(js::jit::HandleCodeCoverageAtPrologue) \
_(js::jit::HandleException) \
_(js::jit::HasNativeDataPropertyPure<false>) \
_(js::jit::HasNativeDataPropertyPure<true>) \

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

@ -8,6 +8,7 @@
#include "mozilla/Casting.h"
#include "jit/ABIFunctions.h"
#include "jit/BaselineIC.h"
#include "jit/BaselineJIT.h"
#include "jit/FixedList.h"
@ -35,6 +36,7 @@
#endif
#include "debugger/DebugAPI-inl.h"
#include "jit/ABIFunctionList-inl.h"
#include "jit/BaselineFrameInfo-inl.h"
#include "jit/MacroAssembler-inl.h"
#include "jit/SharedICHelpers-inl.h"
@ -7002,11 +7004,11 @@ void BaselineInterpreterGenerator::emitOutOfLineCodeCoverageInstrumentation() {
saveInterpreterPCReg();
using Fn1 = void (*)(BaselineFrame * frame);
masm.setupUnalignedABICall(R0.scratchReg());
masm.loadBaselineFramePtr(BaselineFrameReg, R0.scratchReg());
masm.passABIArg(R0.scratchReg());
masm.callWithABI(
JS_FUNC_TO_DATA_PTR(void*, jit::HandleCodeCoverageAtPrologue));
masm.callWithABI<Fn1, HandleCodeCoverageAtPrologue>();
restoreInterpreterPCReg();
masm.ret();
@ -7018,12 +7020,13 @@ void BaselineInterpreterGenerator::emitOutOfLineCodeCoverageInstrumentation() {
saveInterpreterPCReg();
using Fn2 = void (*)(BaselineFrame * frame, jsbytecode * pc);
masm.setupUnalignedABICall(R0.scratchReg());
masm.loadBaselineFramePtr(BaselineFrameReg, R0.scratchReg());
masm.passABIArg(R0.scratchReg());
Register pcReg = LoadBytecodePC(masm, R2.scratchReg());
masm.passABIArg(pcReg);
masm.callWithABI(JS_FUNC_TO_DATA_PTR(void*, jit::HandleCodeCoverageAtPC));
masm.callWithABI<Fn2, HandleCodeCoverageAtPC>();
restoreInterpreterPCReg();
masm.ret();