Ignore:
Timestamp:
Dec 22, 2008, 1:21:18 PM (16 years ago)
Author:
[email protected]
Message:

2008-12-22 Sam Weinig <[email protected]>

Reviewed by Gavin Barraclough.

Rename all uses of the term "repatch" to "patch".

  • assembler/MacroAssembler.h: (JSC::MacroAssembler::DataLabelPtr::patch): (JSC::MacroAssembler::DataLabel32::patch): (JSC::MacroAssembler::Jump::patch): (JSC::MacroAssembler::PatchBuffer::PatchBuffer): (JSC::MacroAssembler::PatchBuffer::setPtr): (JSC::MacroAssembler::loadPtrWithAddressOffsetPatch): (JSC::MacroAssembler::storePtrWithAddressOffsetPatch): (JSC::MacroAssembler::storePtrWithPatch): (JSC::MacroAssembler::jnePtrWithPatch):
  • assembler/X86Assembler.h: (JSC::X86Assembler::patchAddress): (JSC::X86Assembler::patchImmediate): (JSC::X86Assembler::patchPointer): (JSC::X86Assembler::patchBranchOffset):
  • interpreter/Interpreter.cpp: (JSC::Interpreter::tryCTICachePutByID): (JSC::Interpreter::tryCTICacheGetByID): (JSC::Interpreter::cti_op_put_by_id): (JSC::Interpreter::cti_op_get_by_id): (JSC::Interpreter::cti_op_get_by_id_self_fail): (JSC::Interpreter::cti_op_get_by_id_proto_list): (JSC::Interpreter::cti_vm_dontLazyLinkCall):
  • jit/JIT.cpp: (JSC::ctiPatchCallByReturnAddress): (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompile): (JSC::JIT::privateCompileCTIMachineTrampolines):
  • jit/JIT.h:
  • jit/JITCall.cpp: (JSC::JIT::unlinkCall): (JSC::JIT::linkCall): (JSC::JIT::compileOpCall):
  • jit/JITPropertyAccess.cpp: (JSC::JIT::compileGetByIdHotPath): (JSC::JIT::compilePutByIdHotPath): (JSC::JIT::compileGetByIdSlowCase): (JSC::JIT::compilePutByIdSlowCase): (JSC::JIT::privateCompilePutByIdTransition): (JSC::JIT::patchGetByIdSelf): (JSC::JIT::patchPutByIdReplace): (JSC::JIT::privateCompilePatchGetArrayLength): (JSC::JIT::privateCompileGetByIdSelf): (JSC::JIT::privateCompileGetByIdProto): (JSC::JIT::privateCompileGetByIdSelfList): (JSC::JIT::privateCompileGetByIdProtoList): (JSC::JIT::privateCompileGetByIdChainList): (JSC::JIT::privateCompileGetByIdChain): (JSC::JIT::privateCompilePutByIdReplace):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/assembler/MacroAssembler.h

    r39428 r39440  
    149149
    150150    class Jump;
    151     class RepatchBuffer;
     151    class PatchBuffer;
    152152
    153153    // DataLabelPtr:
    154154    //
    155155    // A DataLabelPtr is used to refer to a location in the code containing a pointer to be
    156     // repatched after the code has been generated.
     156    // patched after the code has been generated.
    157157    class DataLabelPtr {
    158158        friend class MacroAssembler;
    159         friend class RepatchBuffer;
     159        friend class PatchBuffer;
    160160
    161161    public:
     
    169169        }
    170170
    171         static void repatch(void* address, void* value)
    172         {
    173             X86Assembler::repatchPointer(reinterpret_cast<intptr_t>(address), reinterpret_cast<intptr_t>(value));
     171        static void patch(void* address, void* value)
     172        {
     173            X86Assembler::patchPointer(reinterpret_cast<intptr_t>(address), reinterpret_cast<intptr_t>(value));
    174174        }
    175175       
     
    181181    //
    182182    // A DataLabelPtr is used to refer to a location in the code containing a pointer to be
    183     // repatched after the code has been generated.
     183    // patched after the code has been generated.
    184184    class DataLabel32 {
    185185        friend class MacroAssembler;
    186         friend class RepatchBuffer;
     186        friend class PatchBuffer;
    187187
    188188    public:
     
    196196        }
    197197
    198         static void repatch(void* address, int32_t value)
    199         {
    200             X86Assembler::repatchImmediate(reinterpret_cast<intptr_t>(address), value);
     198        static void patch(void* address, int32_t value)
     199        {
     200            X86Assembler::patchImmediate(reinterpret_cast<intptr_t>(address), value);
    201201        }
    202202
     
    212212        friend class Jump;
    213213        friend class MacroAssembler;
    214         friend class RepatchBuffer;
     214        friend class PatchBuffer;
    215215
    216216    public:
     
    251251    // Jumps may also be linked to a Label.
    252252    class Jump {
    253         friend class RepatchBuffer;
     253        friend class PatchBuffer;
    254254        friend class MacroAssembler;
    255255
     
    281281        }
    282282
    283         static void repatch(void* address, void* destination)
    284         {
    285             X86Assembler::repatchBranchOffset(reinterpret_cast<intptr_t>(address), destination);
     283        static void patch(void* address, void* destination)
     284        {
     285            X86Assembler::patchBranchOffset(reinterpret_cast<intptr_t>(address), destination);
    286286        }
    287287
     
    295295    // All jumps in the set will be linked to the same destination.
    296296    class JumpList {
    297         friend class RepatchBuffer;
     297        friend class PatchBuffer;
    298298
    299299    public:
     
    334334
    335335
    336     // RepatchBuffer:
     336    // PatchBuffer:
    337337    //
    338338    // This class assists in linking code generated by the macro assembler, once code generation
     
    351351    // address of calls, as opposed to a point that can be used to later relink a Jump -
    352352    // possibly wrap the later up in an object that can do just that).
    353     class RepatchBuffer {
     353    class PatchBuffer {
    354354    public:
    355         RepatchBuffer(void* code)
     355        PatchBuffer(void* code)
    356356            : m_code(code)
    357357        {
     
    391391        void setPtr(DataLabelPtr label, void* value)
    392392        {
    393             X86Assembler::repatchAddress(m_code, label.m_label, value);
     393            X86Assembler::patchAddress(m_code, label.m_label, value);
    394394        }
    395395
     
    666666    }
    667667
    668     DataLabel32 loadPtrWithAddressOffsetRepatch(Address address, RegisterID dest)
     668    DataLabel32 loadPtrWithAddressOffsetPatch(Address address, RegisterID dest)
    669669    {
    670670#if PLATFORM(X86_64)
     
    740740    }
    741741
    742     DataLabel32 storePtrWithAddressOffsetRepatch(RegisterID src, Address address)
     742    DataLabel32 storePtrWithAddressOffsetPatch(RegisterID src, Address address)
    743743    {
    744744#if PLATFORM(X86_64)
     
    770770    }
    771771
    772     DataLabelPtr storePtrWithRepatch(Address address)
     772    DataLabelPtr storePtrWithPatch(Address address)
    773773    {
    774774#if PLATFORM(X86_64)
     
    12201220#endif
    12211221
    1222     Jump jnePtrWithRepatch(RegisterID reg, DataLabelPtr& dataLabel, ImmPtr initialValue = ImmPtr(0))
     1222    Jump jnePtrWithPatch(RegisterID reg, DataLabelPtr& dataLabel, ImmPtr initialValue = ImmPtr(0))
    12231223    {
    12241224#if PLATFORM(X86_64)
     
    12331233    }
    12341234
    1235     Jump jnePtrWithRepatch(Address address, DataLabelPtr& dataLabel, ImmPtr initialValue = ImmPtr(0))
     1235    Jump jnePtrWithPatch(Address address, DataLabelPtr& dataLabel, ImmPtr initialValue = ImmPtr(0))
    12361236    {
    12371237#if PLATFORM(X86_64)
Note: See TracChangeset for help on using the changeset viewer.