Changeset 94463 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Sep 2, 2011, 4:58:05 PM (14 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r94461 r94463 1 2011-09-02 Mark Hahnenberg <[email protected]> 2 3 Fix the broken build due to dtoa patch 4 https://bugs.webkit.org/show_bug.cgi?id=67534 5 6 Reviewed by Oliver Hunt. 7 8 Fixing the build. 9 10 * GNUmakefile.list.am: 11 * wtf/dtoa/bignum.cc: 12 * wtf/dtoa/fast-dtoa.cc: 13 * wtf/dtoa/utils.h: 14 1 15 2011-09-02 Oliver Hunt <[email protected]> 2 16 -
trunk/Source/JavaScriptCore/GNUmakefile.list.am
r94461 r94463 467 467 Source/JavaScriptCore/wtf/DateMath.cpp \ 468 468 Source/JavaScriptCore/wtf/DateMath.h \ 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 469 Source/JavaScriptCore/wtf/DecimalNumber.cpp \ 470 Source/JavaScriptCore/wtf/DecimalNumber.h \ 471 Source/JavaScriptCore/wtf/dtoa/bignum-dtoa.cc \ 472 Source/JavaScriptCore/wtf/dtoa/bignum.cc \ 473 Source/JavaScriptCore/wtf/dtoa/cached-powers.cc \ 474 Source/JavaScriptCore/wtf/dtoa/diy-fp.cc \ 475 Source/JavaScriptCore/wtf/dtoa/double-conversion.cc \ 476 Source/JavaScriptCore/wtf/dtoa/fast-dtoa.cc \ 477 Source/JavaScriptCore/wtf/dtoa/fixed-dtoa.cc \ 478 Source/JavaScriptCore/wtf/dtoa/strtod.cc \ 479 Source/JavaScriptCore/wtf/dtoa/bignum-dtoa.h \ 480 Source/JavaScriptCore/wtf/dtoa/bignum.h \ 481 Source/JavaScriptCore/wtf/dtoa/cached-powers.h \ 482 Source/JavaScriptCore/wtf/dtoa/diy-fp.h \ 483 Source/JavaScriptCore/wtf/dtoa/double-conversion.h \ 484 Source/JavaScriptCore/wtf/dtoa/double.h \ 485 Source/JavaScriptCore/wtf/dtoa/fast-dtoa.h \ 486 Source/JavaScriptCore/wtf/dtoa/fixed-dtoa.h \ 487 Source/JavaScriptCore/wtf/dtoa/strtod.h \ 488 Source/JavaScriptCore/wtf/dtoa/utils.h \ 489 Source/JavaScriptCore/wtf/Decoder.h \ 490 490 Source/JavaScriptCore/wtf/Deque.h \ 491 491 Source/JavaScriptCore/wtf/DisallowCType.h \ -
trunk/Source/JavaScriptCore/wtf/dtoa/bignum.cc
r94452 r94463 67 67 EnsureCapacity(needed_bigits); 68 68 for (int i = 0; i < needed_bigits; ++i) { 69 bigits_[i] = value & kBigitMask;69 bigits_[i] = (uint32_t)value & kBigitMask; 70 70 value = value >> kBigitSize; 71 71 } … … 266 266 while (carry != 0) { 267 267 EnsureCapacity(used_digits_ + 1); 268 bigits_[used_digits_] = carry & kBigitMask;268 bigits_[used_digits_] = (uint32_t)carry & kBigitMask; 269 269 used_digits_++; 270 270 carry >>= kBigitSize; … … 287 287 uint64_t product_high = high * bigits_[i]; 288 288 uint64_t tmp = (carry & kBigitMask) + product_low; 289 bigits_[i] = tmp & kBigitMask;289 bigits_[i] = (uint32_t)tmp & kBigitMask; 290 290 carry = (carry >> kBigitSize) + (tmp >> kBigitSize) + 291 291 (product_high << (32 - kBigitSize)); … … 293 293 while (carry != 0) { 294 294 EnsureCapacity(used_digits_ + 1); 295 bigits_[used_digits_] = carry & kBigitMask;295 bigits_[used_digits_] = (uint32_t)carry & kBigitMask; 296 296 used_digits_++; 297 297 carry >>= kBigitSize; … … 748 748 DoubleChunk product = static_cast<DoubleChunk>(factor) * other.bigits_[i]; 749 749 DoubleChunk remove = borrow + product; 750 Chunk difference = bigits_[i + exponent_diff] - ( remove & kBigitMask);750 Chunk difference = bigits_[i + exponent_diff] - ((uint32_t)remove & kBigitMask); 751 751 bigits_[i + exponent_diff] = difference & kBigitMask; 752 752 borrow = static_cast<Chunk>((difference >> (kChunkSize - 1)) + -
trunk/Source/JavaScriptCore/wtf/dtoa/fast-dtoa.cc
r94452 r94463 242 242 uint32_t* power, 243 243 int* exponent) { 244 ASSERT(number < ( 1 << (number_bits + 1)));244 ASSERT(number < (uint32_t)(1 << (number_bits + 1))); 245 245 246 246 switch (number_bits) { -
trunk/Source/JavaScriptCore/wtf/dtoa/utils.h
r94452 r94463 29 29 #define DOUBLE_CONVERSION_UTILS_H_ 30 30 31 #include "Platform.h" 31 32 #include <stdlib.h> 32 33 #include <string.h> … … 52 53 defined(__ARMEL__) || \ 53 54 defined(_MIPS_ARCH_MIPS32R2) 55 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 56 #elif CPU(MIPS) 54 57 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 55 58 #elif defined(_M_IX86) || defined(__i386__)
Note:
See TracChangeset
for help on using the changeset viewer.