Changeset 146869 in webkit


Ignore:
Timestamp:
Mar 26, 2013 4:52:01 AM (11 years ago)
Author:
Csaba Osztrogonác
Message:

Fix unused parameter warnings in JITInlines.h
https://bugs.webkit.org/show_bug.cgi?id=112560

Reviewed by Zoltan Herczeg.

  • jit/JITInlines.h:

(JSC::JIT::beginUninterruptedSequence):
(JSC::JIT::endUninterruptedSequence):
(JSC):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r146847 r146869  
     12013-03-26  Csaba Osztrogonác  <ossy@webkit.org>
     2
     3        Fix unused parameter warnings in JITInlines.h
     4        https://bugs.webkit.org/show_bug.cgi?id=112560
     5
     6        Reviewed by Zoltan Herczeg.
     7
     8        * jit/JITInlines.h:
     9        (JSC::JIT::beginUninterruptedSequence):
     10        (JSC::JIT::endUninterruptedSequence):
     11        (JSC):
     12
    1132013-03-25  Kent Tamura  <tkent@chromium.org>
    214
  • trunk/Source/JavaScriptCore/jit/JITInlines.h

    r144137 r146869  
    137137#endif
    138138
    139 #if defined(ASSEMBLER_HAS_CONSTANT_POOL) && ASSEMBLER_HAS_CONSTANT_POOL
    140139#ifndef NDEBUG
    141140    m_uninterruptedInstructionSequenceBegin = label();
    142141    m_uninterruptedConstantSequenceBegin = sizeOfConstantPool();
    143142#endif
    144 #endif
    145143}
    146144
    147145ALWAYS_INLINE void JIT::endUninterruptedSequence(int insnSpace, int constSpace, int dst)
    148146{
    149     UNUSED_PARAM(dst);
    150 #if defined(ASSEMBLER_HAS_CONSTANT_POOL) && ASSEMBLER_HAS_CONSTANT_POOL
     147#ifndef NDEBUG
    151148    /* There are several cases when the uninterrupted sequence is larger than
    152149     * maximum required offset for pathing the same sequence. Eg.: if in a
     
    156153     * constSpace should be upper limit instead of hard limit.
    157154     */
     155
    158156#if CPU(SH4)
    159157    if ((dst > 15) || (dst < -16)) {
     
    164162    if (((dst >= -16) && (dst < 0)) || ((dst > 7) && (dst <= 15)))
    165163        insnSpace += 8;
    166 #endif
     164#else
     165    UNUSED_PARAM(dst);
     166#endif
     167
    167168    ASSERT(differenceBetween(m_uninterruptedInstructionSequenceBegin, label()) <= insnSpace);
    168169    ASSERT(sizeOfConstantPool() - m_uninterruptedConstantSequenceBegin <= constSpace);
    169 #endif
    170 }
    171 
    172 #endif
     170#else
     171    UNUSED_PARAM(insnSpace);
     172    UNUSED_PARAM(constSpace);
     173    UNUSED_PARAM(dst);
     174#endif
     175}
     176
     177#endif // ASSEMBLER_HAS_CONSTANT_POOL
    173178
    174179ALWAYS_INLINE void JIT::updateTopCallFrame()
Note: See TracChangeset for help on using the changeset viewer.