Changeset 27201 in webkit for trunk/JavaScriptCore/kjs/value.cpp


Ignore:
Timestamp:
Oct 28, 2007, 7:52:04 PM (18 years ago)
Author:
[email protected]
Message:

2007-10-28 Mark Rowe <[email protected]>

Reviewed by Maciej and Tim.

Replace uses of isNaN and isInf with isnan and isinf, and
remove isNaN and isInf.

  • kjs/config.h: Remove unused HAVE_'s
  • kjs/date_object.cpp: (KJS::DateInstance::getTime): (KJS::DateInstance::getUTCTime): (KJS::DateProtoFunc::callAsFunction): (KJS::DateObjectImp::construct): (KJS::DateObjectFuncImp::callAsFunction):
  • kjs/function.cpp: (KJS::GlobalFuncImp::callAsFunction):
  • kjs/math_object.cpp: (MathFuncImp::callAsFunction):
  • kjs/nodes2string.cpp: (KJS::isParserRoundTripNumber):
  • kjs/number_object.cpp: (NumberProtoFunc::callAsFunction):
  • kjs/operations.cpp:
  • kjs/operations.h:
  • kjs/string_object.cpp: (KJS::StringProtoFunc::callAsFunction):
  • kjs/ustring.cpp: (KJS::UString::from):
  • kjs/value.cpp: (KJS::JSValue::toInteger): (KJS::JSValue::toInt32SlowCase): (KJS::JSValue::toUInt32SlowCase):

2007-10-28 Mark Rowe <[email protected]>

Reviewed by Maciej.

Replace uses of isNaN and isInf with isnan and isinf.

  • bindings/js/JSHTMLOptionsCollectionCustom.cpp: (WebCore::JSHTMLOptionsCollection::setLength):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/value.cpp

    r27095 r27201  
    2626#include "error_object.h"
    2727#include "nodes.h"
    28 #include "operations.h"
    2928#include <stdio.h>
    3029#include <string.h>
     
    6362        return i;
    6463    double d = toNumber(exec);
    65     return isNaN(d) ? 0.0 : trunc(d);
     64    return isnan(d) ? 0.0 : trunc(d);
    6665}
    6766
     
    8281        return static_cast<int32_t>(d);
    8382
    84     if (isNaN(d) || isInf(d)) {
     83    if (isnan(d) || isinf(d)) {
    8584        ok = false;
    8685        return 0;
     
    103102        return static_cast<uint32_t>(d);
    104103
    105     if (isNaN(d) || isInf(d)) {
     104    if (isnan(d) || isinf(d)) {
    106105        ok = false;
    107106        return 0;
Note: See TracChangeset for help on using the changeset viewer.