Changeset 192000 in webkit


Ignore:
Timestamp:
Nov 3, 2015, 5:00:39 PM (10 years ago)
Author:
mark.lam@apple.com
Message:

Rename DFG's compileAdd to compileArithAdd.
https://bugs.webkit.org/show_bug.cgi?id=150866

Reviewed by Benjamin Poulain.

The function is only supposed to generate code to do arithmetic addition on
numeric types. Naming it compileArithAdd() is more accurate, and is consistent
with the name of the node it emits code for (i.e. ArithAdd) as well as other
compiler functions for analogous operations e.g. compileArithSub.

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::compileInstanceOf):
(JSC::DFG::SpeculativeJIT::compileArithAdd):
(JSC::DFG::SpeculativeJIT::compileAdd): Deleted.

  • dfg/DFGSpeculativeJIT.h:
  • dfg/DFGSpeculativeJIT32_64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

  • dfg/DFGSpeculativeJIT64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

Location:
trunk/Source/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r191997 r192000  
     12015-11-03  Mark Lam  <mark.lam@apple.com>
     2
     3        Rename DFG's compileAdd to compileArithAdd.
     4        https://bugs.webkit.org/show_bug.cgi?id=150866
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        The function is only supposed to generate code to do arithmetic addition on
     9        numeric types.  Naming it compileArithAdd() is more accurate, and is consistent
     10        with the name of the node it emits code for (i.e. ArithAdd) as well as other
     11        compiler functions for analogous operations e.g. compileArithSub.
     12
     13        * dfg/DFGSpeculativeJIT.cpp:
     14        (JSC::DFG::SpeculativeJIT::compileInstanceOf):
     15        (JSC::DFG::SpeculativeJIT::compileArithAdd):
     16        (JSC::DFG::SpeculativeJIT::compileAdd): Deleted.
     17        * dfg/DFGSpeculativeJIT.h:
     18        * dfg/DFGSpeculativeJIT32_64.cpp:
     19        (JSC::DFG::SpeculativeJIT::compile):
     20        * dfg/DFGSpeculativeJIT64.cpp:
     21        (JSC::DFG::SpeculativeJIT::compile):
     22
    1232015-11-03  Joseph Pecoraro  <pecoraro@apple.com>
    224
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp

    r191621 r192000  
    27832783}
    27842784
    2785 void SpeculativeJIT::compileAdd(Node* node)
     2785void SpeculativeJIT::compileArithAdd(Node* node)
    27862786{
    27872787    switch (node->binaryUseKind()) {
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h

    r191840 r192000  
    22082208    void compileUInt32ToNumber(Node*);
    22092209    void compileDoubleAsInt32(Node*);
    2210     void compileAdd(Node*);
     2210    void compileArithAdd(Node*);
    22112211    void compileMakeRope(Node*);
    22122212    void compileArithClz32(Node*);
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT32_64.cpp

    r191965 r192000  
    21922192
    21932193    case ArithAdd:
    2194         compileAdd(node);
     2194        compileArithAdd(node);
    21952195        break;
    21962196
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp

    r191965 r192000  
    23192319
    23202320    case ArithAdd:
    2321         compileAdd(node);
     2321        compileArithAdd(node);
    23222322        break;
    23232323
Note: See TracChangeset for help on using the changeset viewer.