Ignore:
Timestamp:
Dec 3, 2010, 6:46:49 PM (14 years ago)
Author:
[email protected]
Message:

Bug 50509 - set* methods on MacroAssembler are awfully named.

Rubber stamped by Oliver Hunt.

Methods set32 and setTest32 compare 32-bit operands, and set a 32-bit results based on the comparison.
set8 compares 32-bit operands, and sets an 8-bit result based on the comparison.
setTest8 compares 8-bit operands, and sets a 32-bit result based on the comparison.

Rename to clarify.

set32 -> set32Compare32
setTest32 -> set32Test32
set8 -> set8Compare32
setTest8 -> set32Test8

  • assembler/MacroAssembler.h:

(JSC::MacroAssembler::setPtr):

  • assembler/MacroAssemblerARM.h:

(JSC::MacroAssemblerARM::set32Compare32):
(JSC::MacroAssemblerARM::set8Compare32):
(JSC::MacroAssemblerARM::set32Test32):
(JSC::MacroAssemblerARM::set32Test8):

  • assembler/MacroAssemblerARMv7.h:

(JSC::MacroAssemblerARMv7::set32Compare32):
(JSC::MacroAssemblerARMv7::set8Compare32):
(JSC::MacroAssemblerARMv7::set32Test32):
(JSC::MacroAssemblerARMv7::set32Test8):

  • assembler/MacroAssemblerMIPS.h:

(JSC::MacroAssemblerMIPS::set8Compare32):
(JSC::MacroAssemblerMIPS::set32Compare32):
(JSC::MacroAssemblerMIPS::set32Test8):
(JSC::MacroAssemblerMIPS::set32Test32):

  • assembler/MacroAssemblerX86Common.h:

(JSC::MacroAssemblerX86Common::set8Compare32):
(JSC::MacroAssemblerX86Common::set32Compare32):
(JSC::MacroAssemblerX86Common::set32Test8):
(JSC::MacroAssemblerX86Common::set32Test32):

  • jit/JITOpcodes.cpp:

(JSC::JIT::emit_op_eq):
(JSC::JIT::emit_op_neq):
(JSC::JIT::compileOpStrictEq):
(JSC::JIT::emit_op_eq_null):
(JSC::JIT::emit_op_neq_null):

  • jit/JITOpcodes32_64.cpp:

(JSC::JIT::emit_op_eq):
(JSC::JIT::emit_op_neq):
(JSC::JIT::compileOpStrictEq):
(JSC::JIT::emit_op_eq_null):
(JSC::JIT::emit_op_neq_null):

File:
1 edited

Legend:

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

    r62306 r73323  
    940940    }
    941941
    942     void set8(Condition cond, RegisterID left, RegisterID right, RegisterID dest)
     942    void set8Compare32(Condition cond, RegisterID left, RegisterID right, RegisterID dest)
    943943    {
    944944        m_assembler.cmpl_rr(right, left);
     
    946946    }
    947947
    948     void set8(Condition cond, Address left, RegisterID right, RegisterID dest)
     948    void set8Compare32(Condition cond, Address left, RegisterID right, RegisterID dest)
    949949    {
    950950        m_assembler.cmpl_mr(left.offset, left.base, right);
     
    952952    }
    953953
    954     void set8(Condition cond, RegisterID left, Imm32 right, RegisterID dest)
     954    void set8Compare32(Condition cond, RegisterID left, Imm32 right, RegisterID dest)
    955955    {
    956956        if (((cond == Equal) || (cond == NotEqual)) && !right.m_value)
     
    961961    }
    962962
    963     void set32(Condition cond, RegisterID left, RegisterID right, RegisterID dest)
     963    void set32Compare32(Condition cond, RegisterID left, RegisterID right, RegisterID dest)
    964964    {
    965965        m_assembler.cmpl_rr(right, left);
     
    968968    }
    969969
    970     void set32(Condition cond, RegisterID left, Imm32 right, RegisterID dest)
     970    void set32Compare32(Condition cond, RegisterID left, Imm32 right, RegisterID dest)
    971971    {
    972972        if (((cond == Equal) || (cond == NotEqual)) && !right.m_value)
     
    983983    // asm ops like test, or pseudo ops like pop().
    984984
    985     void setTest8(Condition cond, Address address, Imm32 mask, RegisterID dest)
     985    void set32Test8(Condition cond, Address address, Imm32 mask, RegisterID dest)
    986986    {
    987987        if (mask.m_value == -1)
     
    993993    }
    994994
    995     void setTest32(Condition cond, Address address, Imm32 mask, RegisterID dest)
     995    void set32Test32(Condition cond, Address address, Imm32 mask, RegisterID dest)
    996996    {
    997997        if (mask.m_value == -1)
Note: See TracChangeset for help on using the changeset viewer.