Changeset 191700 in webkit


Ignore:
Timestamp:
Oct 28, 2015 3:59:03 PM (9 years ago)
Author:
mark.lam@apple.com
Message:

Rename MacroAssembler::callProbe() to probe().
https://bugs.webkit.org/show_bug.cgi?id=150641

Reviewed by Saam Barati.

To do this, I needed to disambiguate between the low-level probe() from the
high-level version that takes a std::function. I did this by changing the low-
level version to not take default args anymore.

  • assembler/AbstractMacroAssembler.h:
  • assembler/MacroAssembler.cpp:

(JSC::stdFunctionCallback):
(JSC::MacroAssembler::probe):
(JSC::MacroAssembler::callProbe): Deleted.

  • assembler/MacroAssembler.h:

(JSC::MacroAssembler::urshift32):

  • assembler/MacroAssemblerARM.h:

(JSC::MacroAssemblerARM::repatchCall):

  • assembler/MacroAssemblerARM64.h:

(JSC::MacroAssemblerARM64::repatchCall):

  • assembler/MacroAssemblerARMv7.h:

(JSC::MacroAssemblerARMv7::repatchCall):

  • assembler/MacroAssemblerPrinter.h:

(JSC::MacroAssemblerPrinter::print):

  • assembler/MacroAssemblerX86Common.h:

(JSC::MacroAssemblerX86Common::maxJumpReplacementSize):

Location:
trunk/Source/JavaScriptCore
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r191692 r191700  
     12015-10-28  Mark Lam  <mark.lam@apple.com>
     2
     3        Rename MacroAssembler::callProbe() to probe().
     4        https://bugs.webkit.org/show_bug.cgi?id=150641
     5
     6        Reviewed by Saam Barati.
     7
     8        To do this, I needed to disambiguate between the low-level probe() from the
     9        high-level version that takes a std::function.  I did this by changing the low-
     10        level version to not take default args anymore.
     11
     12        * assembler/AbstractMacroAssembler.h:
     13        * assembler/MacroAssembler.cpp:
     14        (JSC::stdFunctionCallback):
     15        (JSC::MacroAssembler::probe):
     16        (JSC::MacroAssembler::callProbe): Deleted.
     17        * assembler/MacroAssembler.h:
     18        (JSC::MacroAssembler::urshift32):
     19        * assembler/MacroAssemblerARM.h:
     20        (JSC::MacroAssemblerARM::repatchCall):
     21        * assembler/MacroAssemblerARM64.h:
     22        (JSC::MacroAssemblerARM64::repatchCall):
     23        * assembler/MacroAssemblerARMv7.h:
     24        (JSC::MacroAssemblerARMv7::repatchCall):
     25        * assembler/MacroAssemblerPrinter.h:
     26        (JSC::MacroAssemblerPrinter::print):
     27        * assembler/MacroAssemblerX86Common.h:
     28        (JSC::MacroAssemblerX86Common::maxJumpReplacementSize):
     29
    1302015-10-28  Timothy Hatcher  <timothy@apple.com>
    231
  • trunk/Source/JavaScriptCore/assembler/AbstractMacroAssembler.h

    r191682 r191700  
    941941    // This prototype is only provided here to document the interface.
    942942
    943     void probe(ProbeFunction, void* arg1 = 0, void* arg2 = 0);
     943    void probe(ProbeFunction, void* arg1, void* arg2);
    944944
    945945#endif // ENABLE(MASM_PROBE)
  • trunk/Source/JavaScriptCore/assembler/MacroAssembler.cpp

    r191202 r191700  
    4040}
    4141   
    42 void MacroAssembler::callProbe(std::function<void (MacroAssembler::ProbeContext*)> func)
     42void MacroAssembler::probe(std::function<void (MacroAssembler::ProbeContext*)> func)
    4343{
    44     probe(stdFunctionCallback, new std::function<void (MacroAssembler::ProbeContext*)>(func));
     44    probe(stdFunctionCallback, new std::function<void (MacroAssembler::ProbeContext*)>(func), 0);
    4545}
    4646#endif // ENABLE(MASM_PROBE)
  • trunk/Source/JavaScriptCore/assembler/MacroAssembler.h

    r191202 r191700  
    15861586
    15871587#if ENABLE(MASM_PROBE)
     1588    using MacroAssemblerBase::probe;
     1589
    15881590    // Let's you print from your JIT generated code.
    15891591    // See comments in MacroAssemblerPrinter.h for examples of how to use this.
     
    15911593    void print(Arguments... args);
    15921594
    1593     void callProbe(std::function<void (ProbeContext*)>);
     1595    void probe(std::function<void (ProbeContext*)>);
    15941596#endif
    15951597};
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM.h

    r190718 r191700  
    14491449
    14501450#if ENABLE(MASM_PROBE)
    1451     void probe(ProbeFunction, void* arg1 = 0, void* arg2 = 0);
     1451    void probe(ProbeFunction, void* arg1, void* arg2);
    14521452#endif // ENABLE(MASM_PROBE)
    14531453
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM64.h

    r191683 r191700  
    25342534
    25352535#if ENABLE(MASM_PROBE)
    2536     void probe(ProbeFunction, void* arg1 = 0, void* arg2 = 0);
     2536    void probe(ProbeFunction, void* arg1, void* arg2);
    25372537#endif // ENABLE(MASM_PROBE)
    25382538
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerARMv7.h

    r190718 r191700  
    19191919
    19201920#if ENABLE(MASM_PROBE)
    1921     void probe(ProbeFunction, void* arg1 = 0, void* arg2 = 0);
     1921    void probe(ProbeFunction, void* arg1, void* arg2);
    19221922#endif // ENABLE(MASM_PROBE)
    19231923
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerPrinter.h

    r191677 r191700  
    170170        auto argsList = std::make_unique<PrintArgsList>();
    171171        appendPrintArg(argsList.get(), args...);
    172         masm->probe(printCallback, argsList.release());
     172        masm->probe(printCallback, argsList.release(), 0);
    173173    }
    174174   
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h

    r189884 r191700  
    14971497
    14981498#if ENABLE(MASM_PROBE)
    1499     void probe(ProbeFunction, void* arg1 = 0, void* arg2 = 0);
     1499    void probe(ProbeFunction, void* arg1, void* arg2);
    15001500#endif // ENABLE(MASM_PROBE)
    15011501
Note: See TracChangeset for help on using the changeset viewer.