diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-12 12:40:09 +0800 |
---|---|---|
committer | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-14 16:31:57 +0800 |
commit | 79834afa6289979883ca5e119569624b72d2f94a (patch) | |
tree | eac852dacae7747804b4a78359c782632785bda5 /js/src/jit/mips32/Assembler-mips32.h | |
parent | 8055c99af4bea1c54d0af960447f6ba5cc72751c (diff) | |
download | UXP-79834afa6289979883ca5e119569624b72d2f94a.tar UXP-79834afa6289979883ca5e119569624b72d2f94a.tar.gz UXP-79834afa6289979883ca5e119569624b72d2f94a.tar.lz UXP-79834afa6289979883ca5e119569624b72d2f94a.tar.xz UXP-79834afa6289979883ca5e119569624b72d2f94a.zip |
Bug 1271968 - IonMonkey: MIPS: Refactor PatchWrite_NearCall.
Tag: #1542
Diffstat (limited to 'js/src/jit/mips32/Assembler-mips32.h')
-rw-r--r-- | js/src/jit/mips32/Assembler-mips32.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/js/src/jit/mips32/Assembler-mips32.h b/js/src/jit/mips32/Assembler-mips32.h index 2bfb61e8e..6988d23a5 100644 --- a/js/src/jit/mips32/Assembler-mips32.h +++ b/js/src/jit/mips32/Assembler-mips32.h @@ -149,13 +149,10 @@ class Assembler : public AssemblerMIPSShared static void TraceJumpRelocations(JSTracer* trc, JitCode* code, CompactBufferReader& reader); static void TraceDataRelocations(JSTracer* trc, JitCode* code, CompactBufferReader& reader); - static uint32_t PatchWrite_NearCallSize(); - + static uint32_t InstructionImmediateSize() { + return 2 * sizeof(uint32_t); + } static uint32_t ExtractLuiOriValue(Instruction* inst0, Instruction* inst1); - static void WriteLuiOriInstructions(Instruction* inst, Instruction* inst1, - Register reg, uint32_t value); - - static void PatchWrite_NearCall(CodeLocationLabel start, CodeLocationLabel toCall); static void PatchDataWithValueCheck(CodeLocationLabel label, ImmPtr newValue, ImmPtr expectedValue); static void PatchDataWithValueCheck(CodeLocationLabel label, PatchedImmPtr newValue, |