mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1194072 - IonMonkey: MIPS32: Add an option to mark JIT pages as non-writable. r=nbp CLOSED TREE
--HG-- extra : histedit_source : f4b8845bd4deea656f32d3d9c58809d8cacf00a4
This commit is contained in:
parent
96798fb9ef
commit
49f14db98f
@ -155,11 +155,12 @@ InstImm::extractImm16(BOffImm16* dest)
|
||||
|
||||
// Used to patch jumps created by MacroAssemblerMIPSCompat::jumpWithPatch.
|
||||
void
|
||||
jit::PatchJump(CodeLocationJump& jump_, CodeLocationLabel label)
|
||||
jit::PatchJump(CodeLocationJump& jump_, CodeLocationLabel label, ReprotectCode reprotect)
|
||||
{
|
||||
Instruction* inst1 = (Instruction*)jump_.raw();
|
||||
Instruction* inst2 = inst1->next();
|
||||
|
||||
MaybeAutoWritableJitCode awjc(inst1, 8, reprotect);
|
||||
Assembler::UpdateLuiOriValue(inst1, inst2, (uint32_t)label.raw());
|
||||
|
||||
AutoFlushICache::flush(uintptr_t(inst1), 8);
|
||||
|
@ -633,7 +633,8 @@ class Operand
|
||||
};
|
||||
|
||||
void
|
||||
PatchJump(CodeLocationJump& jump_, CodeLocationLabel label);
|
||||
PatchJump(CodeLocationJump& jump_, CodeLocationLabel label,
|
||||
ReprotectCode reprotect = DontReprotect);
|
||||
|
||||
void
|
||||
PatchBackedge(CodeLocationJump& jump_, CodeLocationLabel label, JitRuntime::BackedgeTarget target);
|
||||
|
Loading…
Reference in New Issue
Block a user