Changeset 12028 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jan 12, 2006, 8:58:46 AM (19 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 1 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r12024 r12028 1 2006-01-12 Darin Adler <[email protected]> 2 3 Reviewed by Geoff. 4 5 - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6505 6 retire APPLE_CHANGES from JavaScriptCore 7 8 * JavaScriptCore.xcodeproj/project.pbxproj: Removed both 9 APPLE_CHANGES and HAVE_CONFIG_H from all targets. 10 11 * README: Removed. This had obsolete information in it 12 and it wasn't clear what to replace it with. 13 14 * kjs/collector.h: Removed an APPLE_CHANGES if around something 15 that's not really platform-specific (although it does use a 16 platform-specific API at the moment). 17 * kjs/collector.cpp: Removed a mistaken comment. 18 19 * kjs/grammar.y: 20 * kjs/internal.cpp: 21 * kjs/object.h: 22 * kjs/operations.cpp: 23 * kjs/operations.h: 24 * kjs/ustring.h: 25 Use __APPLE__ instead of APPLE_CHANGES for code that should be 26 used only on Mac OS X. 27 28 * kjs/interpreter.cpp: Removed APPLE_CHANGES ifdef around the include 29 of the runtime.h header. Even though that header isn't needed at the 30 moment on platforms other than Mac OS X, the conditional stuff should 31 be in the header itself, not in this one client. 32 33 * kjs/math_object.cpp: (MathFuncImp::callAsFunction): Removed some 34 code inside APPLE_CHANGES. I'm pretty sure this code isn't needed on 35 any platform where pow is implemented corrrectly according to the IEEE 36 standard. If it is needed on some, we can add it back with an appropriate 37 #if for the platforms where it is needed. 38 1 39 2006-01-12 Justin Haygood <[email protected]> 2 40 -
trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r11962 r12028 894 894 GCC_PRECOMPILE_PREFIX_HEADER = YES; 895 895 GCC_PREFIX_HEADER = JavaScriptCorePrefix.h; 896 GCC_PREPROCESSOR_DEFINITIONS = ( 897 "$(DEBUG_DEFINES)", 898 APPLE_CHANGES, 899 HAVE_CONFIG_H, 900 ); 896 GCC_PREPROCESSOR_DEFINITIONS = "$(DEBUG_DEFINES)"; 901 897 GCC_TREAT_WARNINGS_AS_ERRORS = YES; 902 898 GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; … … 1337 1333 GCC_PRECOMPILE_PREFIX_HEADER = YES; 1338 1334 GCC_PREFIX_HEADER = JavaScriptCorePrefix.h; 1339 GCC_PREPROCESSOR_DEFINITIONS = ( 1340 "$(DEBUG_DEFINES)", 1341 APPLE_CHANGES, 1342 HAVE_CONFIG_H, 1343 ); 1335 GCC_PREPROCESSOR_DEFINITIONS = "$(DEBUG_DEFINES)"; 1344 1336 GCC_STRICT_ALIASING = YES; 1345 1337 GCC_TREAT_WARNINGS_AS_ERRORS = YES; … … 1393 1385 GCC_PRECOMPILE_PREFIX_HEADER = YES; 1394 1386 GCC_PREFIX_HEADER = JavaScriptCorePrefix.h; 1395 GCC_PREPROCESSOR_DEFINITIONS = ( 1396 "$(DEBUG_DEFINES)", 1397 APPLE_CHANGES, 1398 HAVE_CONFIG_H, 1399 ); 1387 GCC_PREPROCESSOR_DEFINITIONS = "$(DEBUG_DEFINES)"; 1400 1388 GCC_STRICT_ALIASING = YES; 1401 1389 GCC_TREAT_WARNINGS_AS_ERRORS = YES; … … 1449 1437 GCC_PRECOMPILE_PREFIX_HEADER = YES; 1450 1438 GCC_PREFIX_HEADER = JavaScriptCorePrefix.h; 1451 GCC_PREPROCESSOR_DEFINITIONS = ( 1452 "$(DEBUG_DEFINES)", 1453 APPLE_CHANGES, 1454 HAVE_CONFIG_H, 1455 ); 1439 GCC_PREPROCESSOR_DEFINITIONS = "$(DEBUG_DEFINES)"; 1456 1440 GCC_STRICT_ALIASING = YES; 1457 1441 GCC_TREAT_WARNINGS_AS_ERRORS = YES; … … 1505 1489 GCC_PRECOMPILE_PREFIX_HEADER = YES; 1506 1490 GCC_PREFIX_HEADER = JavaScriptCorePrefix.h; 1507 GCC_PREPROCESSOR_DEFINITIONS = ( 1508 "$(DEBUG_DEFINES)", 1509 APPLE_CHANGES, 1510 HAVE_CONFIG_H, 1511 ); 1491 GCC_PREPROCESSOR_DEFINITIONS = "$(DEBUG_DEFINES)"; 1512 1492 GCC_STRICT_ALIASING = YES; 1513 1493 GCC_TREAT_WARNINGS_AS_ERRORS = YES; -
trunk/JavaScriptCore/kjs/collector.cpp
r11962 r12028 643 643 } 644 644 645 #endif // APPLE_CHANGES645 #endif 646 646 647 647 } // namespace KJS -
trunk/JavaScriptCore/kjs/collector.h
r11962 r12028 70 70 static size_t numGCNotAllowedObjects(); 71 71 static size_t numReferencedObjects(); 72 #if APPLE_CHANGES73 72 static const void *rootObjectClasses(); // actually returns CFSetRef 74 #endif75 73 76 74 class Thread; -
trunk/JavaScriptCore/kjs/grammar.y
r12024 r12028 38 38 /* default values for bison */ 39 39 #define YYDEBUG 0 40 #if ! APPLE_CHANGES40 #if !__APPLE__ /* work around the fact that YYERROR_VERBOSE causes a compiler warning in bison code */ 41 41 #define YYERROR_VERBOSE 42 42 #endif -
trunk/JavaScriptCore/kjs/internal.cpp
r11962 r12028 23 23 24 24 #include "config.h" 25 #include <stdio.h> 26 #include <math.h> 27 #include <assert.h> 25 #include "internal.h" 28 26 29 27 #include "array_object.h" … … 35 33 #include "error_object.h" 36 34 #include "function_object.h" 37 #include "internal.h"38 35 #include "lexer.h" 39 36 #include "math_object.h" … … 45 42 #include "regexp_object.h" 46 43 #include "string_object.h" 47 44 #include <assert.h> 48 45 #include <kxmlcore/HashMap.h> 46 #include <math.h> 47 #include <stdio.h> 49 48 50 49 #if WIN32 … … 58 57 namespace KJS { 59 58 60 #if ! APPLE_CHANGES59 #if !__APPLE__ 61 60 62 61 #ifdef WORDS_BIGENDIAN … … 74 73 const double Inf = *(const double*) Inf_Bytes; 75 74 76 #endif // APPLE_CHANGES75 #endif 77 76 78 77 // ------------------------------ UndefinedImp --------------------------------- -
trunk/JavaScriptCore/kjs/interpreter.cpp
r11962 r12028 24 24 25 25 #include "config.h" 26 #include "value.h"27 #include "object.h"28 #include "types.h"29 26 #include "interpreter.h" 30 #if APPLE_CHANGES31 #include "runtime.h"32 #endif33 27 34 28 #include <assert.h> … … 36 30 #include <stdio.h> 37 31 32 #include "collector.h" 33 #include "context.h" 34 #include "error_object.h" 38 35 #include "internal.h" 39 #include "collector.h" 36 #include "nodes.h" 37 #include "object.h" 40 38 #include "operations.h" 41 #include " error_object.h"42 #include " nodes.h"43 #include " context.h"44 45 using namespace KJS; 39 #include "runtime.h" 40 #include "types.h" 41 #include "value.h" 42 43 namespace KJS { 46 44 47 45 // ------------------------------ Context -------------------------------------- … … 367 365 return result->interpreter(); 368 366 } 367 368 } -
trunk/JavaScriptCore/kjs/math_object.cpp
r11962 r12028 238 238 if (isNaN(arg2)) 239 239 result = NaN; 240 #if !APPLE_CHANGES241 else if (arg2 == 0)242 result = 1;243 #endif244 240 else if (isNaN(arg) && arg2 != 0) 245 241 result = NaN; 246 #if !APPLE_CHANGES247 else if (::fabs(arg) > 1 && KJS::isPosInf(arg2))248 result = Inf;249 else if (::fabs(arg) > 1 && KJS::isNegInf(arg2))250 result = +0;251 #endif252 242 else if (::fabs(arg) == 1 && KJS::isInf(arg2)) 253 243 result = NaN; 254 #if !APPLE_CHANGES255 else if (::fabs(arg) < 1 && KJS::isPosInf(arg2))256 result = +0;257 else if (::fabs(arg) < 1 && KJS::isNegInf(arg2))258 result = Inf;259 #endif260 244 else 261 245 result = ::pow(arg, arg2); -
trunk/JavaScriptCore/kjs/object.h
r11962 r12028 30 30 // maximum global call stack size. Protects against accidental or 31 31 // malicious infinite recursions. Define to -1 if you want no limit. 32 #if APPLE_CHANGES32 #if __APPLE__ 33 33 // Given OS X stack sizes we run out of stack at about 350 levels. 34 34 // If we improve our stack usage, we can bump this number. -
trunk/JavaScriptCore/kjs/operations.cpp
r11962 r12028 44 44 namespace KJS { 45 45 46 #if ! APPLE_CHANGES46 #if !__APPLE__ 47 47 48 48 bool isNaN(double d) -
trunk/JavaScriptCore/kjs/operations.h
r11962 r12028 29 29 class JSValue; 30 30 31 #if APPLE_CHANGES31 #if __APPLE__ 32 32 inline bool isNaN(double d) { return isnan(d); } 33 33 inline bool isInf(double d) { return isinf(d); } -
trunk/JavaScriptCore/kjs/ustring.h
r11962 r12028 29 29 #include <kxmlcore/PassRefPtr.h> 30 30 31 #if APPLE_CHANGES31 #if __APPLE__ 32 32 #include <sys/types.h> 33 33 #ifndef KWQ_UNSIGNED_TYPES_DEFINED … … 45 45 namespace DOM { 46 46 class DOMString; 47 } ;47 } 48 48 class KJScript; 49 49 class QString;
Note:
See TracChangeset
for help on using the changeset viewer.