a64_emit_x64: Reduce patchpoint sizes

This commit is contained in:
MerryMage 2020-03-31 19:14:02 +01:00
parent a59c335b05
commit 25e27282e3

View file

@ -1222,7 +1222,7 @@ void A64EmitX64::EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr
code.mov(qword[r15 + offsetof(A64JitState, pc)], rax);
code.jg(code.GetReturnFromRunCodeAddress());
}
code.EnsurePatchLocationSize(patch_location, 30); // TODO: Reduce size
code.EnsurePatchLocationSize(patch_location, 23);
}
void A64EmitX64::EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr) {
@ -1234,7 +1234,7 @@ void A64EmitX64::EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr
code.mov(qword[r15 + offsetof(A64JitState, pc)], rax);
code.jmp(code.GetReturnFromRunCodeAddress());
}
code.EnsurePatchLocationSize(patch_location, 30); // TODO: Reduce size
code.EnsurePatchLocationSize(patch_location, 22);
}
void A64EmitX64::EmitPatchMovRcx(CodePtr target_code_ptr) {