Changeset 188888 in webkit


Ignore:
Timestamp:
Aug 24, 2015 2:56:38 PM (9 years ago)
Author:
basile_clement@apple.com
Message:

REPTACH is not a word
https://bugs.webkit.org/show_bug.cgi?id=148401

Reviewed by Saam Barati.

  • assembler/MacroAssemblerX86_64.h:

(JSC::MacroAssemblerX86_64::callWithSlowPathReturnType):
(JSC::MacroAssemblerX86_64::call):
(JSC::MacroAssemblerX86_64::tailRecursiveCall):
(JSC::MacroAssemblerX86_64::makeTailRecursiveCall):
(JSC::MacroAssemblerX86_64::readCallTarget):
(JSC::MacroAssemblerX86_64::linkCall):
(JSC::MacroAssemblerX86_64::repatchCall):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r188887 r188888  
     12015-08-24  Basile Clement  <basile_clement@apple.com>
     2
     3        REPTACH is not a word
     4        https://bugs.webkit.org/show_bug.cgi?id=148401
     5
     6        Reviewed by Saam Barati.
     7
     8        * assembler/MacroAssemblerX86_64.h:
     9        (JSC::MacroAssemblerX86_64::callWithSlowPathReturnType):
     10        (JSC::MacroAssemblerX86_64::call):
     11        (JSC::MacroAssemblerX86_64::tailRecursiveCall):
     12        (JSC::MacroAssemblerX86_64::makeTailRecursiveCall):
     13        (JSC::MacroAssemblerX86_64::readCallTarget):
     14        (JSC::MacroAssemblerX86_64::linkCall):
     15        (JSC::MacroAssemblerX86_64::repatchCall):
     16
    1172015-08-24  Mark Lam  <mark.lam@apple.com>
    218
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86_64.h

    r188135 r188888  
    3131#include "MacroAssemblerX86Common.h"
    3232
    33 #define REPTACH_OFFSET_CALL_R11 3
     33#define REPATCH_OFFSET_CALL_R11 3
    3434
    3535inline bool CAN_SIGN_EXTEND_32_64(int64_t value) { return value == (int64_t)(int32_t)value; }
     
    182182        load64(Address(X86Registers::eax), X86Registers::eax);
    183183
    184         ASSERT_UNUSED(label, differenceBetween(label, result) == REPTACH_OFFSET_CALL_R11);
     184        ASSERT_UNUSED(label, differenceBetween(label, result) == REPATCH_OFFSET_CALL_R11);
    185185        return result;
    186186    }
     
    216216        add64(TrustedImm32(8 * sizeof(int64_t)), X86Registers::esp);
    217217#endif
    218         ASSERT_UNUSED(label, differenceBetween(label, result) == REPTACH_OFFSET_CALL_R11);
     218        ASSERT_UNUSED(label, differenceBetween(label, result) == REPATCH_OFFSET_CALL_R11);
    219219        return result;
    220220    }
     
    231231        DataLabelPtr label = moveWithPatch(TrustedImmPtr(0), scratchRegister);
    232232        Jump newJump = Jump(m_assembler.jmp_r(scratchRegister));
    233         ASSERT_UNUSED(label, differenceBetween(label, newJump) == REPTACH_OFFSET_CALL_R11);
     233        ASSERT_UNUSED(label, differenceBetween(label, newJump) == REPATCH_OFFSET_CALL_R11);
    234234        return Call::fromTailJump(newJump);
    235235    }
     
    240240        DataLabelPtr label = moveWithPatch(TrustedImmPtr(0), scratchRegister);
    241241        Jump newJump = Jump(m_assembler.jmp_r(scratchRegister));
    242         ASSERT_UNUSED(label, differenceBetween(label, newJump) == REPTACH_OFFSET_CALL_R11);
     242        ASSERT_UNUSED(label, differenceBetween(label, newJump) == REPATCH_OFFSET_CALL_R11);
    243243        return Call::fromTailJump(newJump);
    244244    }
     
    801801    static FunctionPtr readCallTarget(CodeLocationCall call)
    802802    {
    803         return FunctionPtr(X86Assembler::readPointer(call.dataLabelPtrAtOffset(-REPTACH_OFFSET_CALL_R11).dataLocation()));
     803        return FunctionPtr(X86Assembler::readPointer(call.dataLabelPtrAtOffset(-REPATCH_OFFSET_CALL_R11).dataLocation()));
    804804    }
    805805
     
    862862    {
    863863        if (!call.isFlagSet(Call::Near))
    864             X86Assembler::linkPointer(code, call.m_label.labelAtOffset(-REPTACH_OFFSET_CALL_R11), function.value());
     864            X86Assembler::linkPointer(code, call.m_label.labelAtOffset(-REPATCH_OFFSET_CALL_R11), function.value());
    865865        else
    866866            X86Assembler::linkCall(code, call.m_label, function.value());
     
    869869    static void repatchCall(CodeLocationCall call, CodeLocationLabel destination)
    870870    {
    871         X86Assembler::repatchPointer(call.dataLabelPtrAtOffset(-REPTACH_OFFSET_CALL_R11).dataLocation(), destination.executableAddress());
     871        X86Assembler::repatchPointer(call.dataLabelPtrAtOffset(-REPATCH_OFFSET_CALL_R11).dataLocation(), destination.executableAddress());
    872872    }
    873873
    874874    static void repatchCall(CodeLocationCall call, FunctionPtr destination)
    875875    {
    876         X86Assembler::repatchPointer(call.dataLabelPtrAtOffset(-REPTACH_OFFSET_CALL_R11).dataLocation(), destination.executableAddress());
     876        X86Assembler::repatchPointer(call.dataLabelPtrAtOffset(-REPATCH_OFFSET_CALL_R11).dataLocation(), destination.executableAddress());
    877877    }
    878878};
Note: See TracChangeset for help on using the changeset viewer.