⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 194073 in webkit


Ignore:
Timestamp:
Dec 14, 2015, 4:34:37 PM (11 years ago)
Author:
benjamin@webkit.org
Message:

Rename FTL::Output's ceil64() to doubleCeil()

Rubber-stamped by Filip Pizlo.

ceil64() was a bad name, that's the name convention we use for integers.

  • ftl/FTLB3Output.h:

(JSC::FTL::Output::doubleCeil):
(JSC::FTL::Output::ceil64): Deleted.

  • ftl/FTLLowerDFGToLLVM.cpp:

(JSC::FTL::DFG::LowerDFGToLLVM::compileArithRound):

Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r194072 r194073  
     12015-12-14  Benjamin Poulain  <benjamin@webkit.org>
     2
     3        Rename FTL::Output's ceil64() to doubleCeil()
     4
     5        Rubber-stamped by Filip Pizlo.
     6
     7        ceil64() was a bad name, that's the name convention we use for integers.
     8
     9        * ftl/FTLB3Output.h:
     10        (JSC::FTL::Output::doubleCeil):
     11        (JSC::FTL::Output::ceil64): Deleted.
     12        * ftl/FTLLowerDFGToLLVM.cpp:
     13        (JSC::FTL::DFG::LowerDFGToLLVM::compileArithRound):
     14
    1152015-12-14  Filip Pizlo  <fpizlo@apple.com>
    216
  • trunk/Source/JavaScriptCore/ftl/FTLB3Output.h

    r194071 r194073  
    155155    LValue bitNot(LValue);
    156156
    157     LValue ceil64(LValue operand) { return m_block->appendNew<B3::Value>(m_proc, B3::Ceil, origin(), operand); }
    158157    LValue ctlz32(LValue operand) { return m_block->appendNew<B3::Value>(m_proc, B3::Clz, origin(), operand); }
    159158    LValue addWithOverflow32(LValue left, LValue right) { CRASH(); }
     
    164163    LValue mulWithOverflow64(LValue left, LValue right) { CRASH(); }
    165164    LValue doubleAbs(LValue value) { return m_block->appendNew<B3::Value>(m_proc, B3::Abs, origin(), value); }
     165    LValue doubleCeil(LValue operand) { return m_block->appendNew<B3::Value>(m_proc, B3::Ceil, origin(), operand); }
    166166
    167167    LValue doubleSin(LValue value) { return callWithoutSideEffects(B3::Double, sin, value); }
  • trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp

    r194072 r194073  
    21262126
    21272127        LValue value = lowDouble(m_node->child1());
    2128         LValue integerValue = m_out.ceil64(value);
     2128        LValue integerValue = m_out.doubleCeil(value);
    21292129        ValueFromBlock integerValueResult = m_out.anchor(integerValue);
    21302130
  • trunk/Source/JavaScriptCore/ftl/FTLOutput.h

    r194024 r194073  
    148148    LValue insertElement(LValue vector, LValue element, LValue index) { return buildInsertElement(m_builder, vector, element, index); }
    149149
    150     LValue ceil64(LValue operand)
     150    LValue ctlz32(LValue operand)
     151    {
     152        return call(int32, ctlz32Intrinsic(), operand, booleanFalse);
     153    }
     154    LValue addWithOverflow32(LValue left, LValue right)
     155    {
     156        return call(int32, addWithOverflow32Intrinsic(), left, right);
     157    }
     158    LValue subWithOverflow32(LValue left, LValue right)
     159    {
     160        return call(int32, subWithOverflow32Intrinsic(), left, right);
     161    }
     162    LValue mulWithOverflow32(LValue left, LValue right)
     163    {
     164        return call(int32, mulWithOverflow32Intrinsic(), left, right);
     165    }
     166    LValue addWithOverflow64(LValue left, LValue right)
     167    {
     168        return call(int64, addWithOverflow64Intrinsic(), left, right);
     169    }
     170    LValue subWithOverflow64(LValue left, LValue right)
     171    {
     172        return call(int64, subWithOverflow64Intrinsic(), left, right);
     173    }
     174    LValue mulWithOverflow64(LValue left, LValue right)
     175    {
     176        return call(int64, mulWithOverflow64Intrinsic(), left, right);
     177    }
     178    LValue doubleAbs(LValue value)
     179    {
     180        return call(doubleType, doubleAbsIntrinsic(), value);
     181    }
     182    LValue doubleCeil(LValue operand)
    151183    {
    152184        return call(doubleType, ceil64Intrinsic(), operand);
    153     }
    154     LValue ctlz32(LValue operand)
    155     {
    156         return call(int32, ctlz32Intrinsic(), operand, booleanFalse);
    157     }
    158     LValue addWithOverflow32(LValue left, LValue right)
    159     {
    160         return call(int32, addWithOverflow32Intrinsic(), left, right);
    161     }
    162     LValue subWithOverflow32(LValue left, LValue right)
    163     {
    164         return call(int32, subWithOverflow32Intrinsic(), left, right);
    165     }
    166     LValue mulWithOverflow32(LValue left, LValue right)
    167     {
    168         return call(int32, mulWithOverflow32Intrinsic(), left, right);
    169     }
    170     LValue addWithOverflow64(LValue left, LValue right)
    171     {
    172         return call(int64, addWithOverflow64Intrinsic(), left, right);
    173     }
    174     LValue subWithOverflow64(LValue left, LValue right)
    175     {
    176         return call(int64, subWithOverflow64Intrinsic(), left, right);
    177     }
    178     LValue mulWithOverflow64(LValue left, LValue right)
    179     {
    180         return call(int64, mulWithOverflow64Intrinsic(), left, right);
    181     }
    182     LValue doubleAbs(LValue value)
    183     {
    184         return call(doubleType, doubleAbsIntrinsic(), value);
    185185    }
    186186
Note: See TracChangeset for help on using the changeset viewer.