Ignore:
Timestamp:
Jul 30, 2009, 1:57:44 PM (16 years ago)
Author:
[email protected]
Message:

Merged nitro-extreme branch into trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSNumberCell.cpp

    r43165 r46598  
    2424#include "JSNumberCell.h"
    2525
     26#if USE(JSVALUE32)
     27
    2628#include "NumberObject.h"
    2729#include "UString.h"
    2830
    2931namespace JSC {
    30 
    31 #if !USE(ALTERNATE_JSIMMEDIATE)
    3232
    3333JSValue JSNumberCell::toPrimitive(ExecState*, PreferredPrimitiveType) const
     
    8383}
    8484
    85 bool JSNumberCell::getTruncatedInt32(int32_t& int32) const
    86 {
    87     if (!(m_value >= -2147483648.0 && m_value < 2147483648.0))
    88         return false;
    89     int32 = static_cast<int32_t>(m_value);
    90     return true;
    91 }
    92 
    93 bool JSNumberCell::getTruncatedUInt32(uint32_t& uint32) const
    94 {
    95     if (!(m_value >= 0.0 && m_value < 4294967296.0))
    96         return false;
    97     uint32 = static_cast<uint32_t>(m_value);
    98     return true;
    99 }
    100 
    10185JSValue JSNumberCell::getJSNumber()
    10286{
     
    11498}
    11599
    116 JSValue jsAPIMangledNumber(ExecState* exec, double d)
    117 {
    118     return new (exec) JSNumberCell(JSNumberCell::APIMangled, d);
    119 }
     100} // namespace JSC
    120101
    121 #else
     102#else // USE(JSVALUE32)
     103
     104// Keep our exported symbols lists happy.
     105namespace JSC {
     106
     107JSValue jsNumberCell(ExecState*, double);
    122108
    123109JSValue jsNumberCell(ExecState*, double)
     
    127113}
    128114
    129 JSValue jsAPIMangledNumber(ExecState*, double)
    130 {
    131     ASSERT_NOT_REACHED();
    132     return JSValue();
    133 }
     115} // namespace JSC
    134116
    135 #endif
    136 
    137 } // namespace JSC
     117#endif // USE(JSVALUE32)
Note: See TracChangeset for help on using the changeset viewer.