Ignore:
Timestamp:
Jan 12, 2006, 8:58:46 AM (19 years ago)
Author:
darin
Message:

Reviewed by Geoff.

  • JavaScriptCore.xcodeproj/project.pbxproj: Removed both APPLE_CHANGES and HAVE_CONFIG_H from all targets.
  • README: Removed. This had obsolete information in it and it wasn't clear what to replace it with.
  • kjs/collector.h: Removed an APPLE_CHANGES if around something that's not really platform-specific (although it does use a platform-specific API at the moment).
  • kjs/collector.cpp: Removed a mistaken comment.
  • kjs/grammar.y:
  • kjs/internal.cpp:
  • kjs/object.h:
  • kjs/operations.cpp:
  • kjs/operations.h:
  • kjs/ustring.h: Use APPLE instead of APPLE_CHANGES for code that should be used only on Mac OS X.
  • kjs/interpreter.cpp: Removed APPLE_CHANGES ifdef around the include of the runtime.h header. Even though that header isn't needed at the moment on platforms other than Mac OS X, the conditional stuff should be in the header itself, not in this one client.
  • kjs/math_object.cpp: (MathFuncImp::callAsFunction): Removed some code inside APPLE_CHANGES. I'm pretty sure this code isn't needed on any platform where pow is implemented corrrectly according to the IEEE standard. If it is needed on some, we can add it back with an appropriate #if for the platforms where it is needed.
File:
1 edited

Legend:

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

    r11962 r12028  
    238238    if (isNaN(arg2))
    239239      result = NaN;
    240 #if !APPLE_CHANGES
    241     else if (arg2 == 0)
    242       result = 1;
    243 #endif
    244240    else if (isNaN(arg) && arg2 != 0)
    245241      result = NaN;
    246 #if !APPLE_CHANGES
    247     else if (::fabs(arg) > 1 && KJS::isPosInf(arg2))
    248       result = Inf;
    249     else if (::fabs(arg) > 1 && KJS::isNegInf(arg2))
    250       result = +0;
    251 #endif
    252242    else if (::fabs(arg) == 1 && KJS::isInf(arg2))
    253243      result = NaN;
    254 #if !APPLE_CHANGES
    255     else if (::fabs(arg) < 1 && KJS::isPosInf(arg2))
    256       result = +0;
    257     else if (::fabs(arg) < 1 && KJS::isNegInf(arg2))
    258       result = Inf;
    259 #endif
    260244    else
    261245      result = ::pow(arg, arg2);
Note: See TracChangeset for help on using the changeset viewer.