Changeset 101295 in webkit
- Timestamp:
- Nov 28, 2011 3:40:08 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 10 added
- 9 deleted
- 71 edited
- 1 copied
- 13 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r101291 r101295 1 2011-11-28 Oliver Hunt <oliver@apple.com> 2 3 Move typed array implementations into wtf 4 https://bugs.webkit.org/show_bug.cgi?id=73248 5 6 Reviewed by Sam Weinig. 7 8 Move typed array implementation files from WebCore to wtf. Inline the 9 .cpp files for each of the array views to cut down on unnecessary exports 10 and function call overhead for trivial operations. 11 12 Added files to all the project files. 13 14 * GNUmakefile.list.am: 15 * JavaScriptCore.exp: 16 * JavaScriptCore.vcproj/WTF/WTF.vcproj: 17 * JavaScriptCore.xcodeproj/project.pbxproj: 18 * wtf/ArrayBuffer.cpp: Renamed from Source/WebCore/html/canvas/Float32Array.cpp. 19 (WTF::ArrayBuffer::transfer): 20 (WTF::ArrayBuffer::addView): 21 (WTF::ArrayBuffer::removeView): 22 * wtf/ArrayBuffer.h: Renamed from Source/WebCore/html/canvas/ArrayBuffer.cpp. 23 (WTF::ArrayBufferContents::ArrayBufferContents): 24 (WTF::ArrayBufferContents::data): 25 (WTF::ArrayBufferContents::sizeInBytes): 26 (WTF::ArrayBufferContents::transfer): 27 (WTF::ArrayBuffer::~ArrayBuffer): 28 (WTF::ArrayBuffer::clampValue): 29 (WTF::ArrayBuffer::create): 30 (WTF::ArrayBuffer::ArrayBuffer): 31 (WTF::ArrayBuffer::data): 32 (WTF::ArrayBuffer::byteLength): 33 (WTF::ArrayBuffer::slice): 34 (WTF::ArrayBuffer::sliceImpl): 35 (WTF::ArrayBuffer::clampIndex): 36 (WTF::ArrayBufferContents::tryAllocate): 37 (WTF::ArrayBufferContents::~ArrayBufferContents): 38 * wtf/ArrayBufferView.cpp: Copied from Source/WebCore/bindings/js/JSArrayBufferCustom.cpp. 39 (WTF::ArrayBufferView::ArrayBufferView): 40 (WTF::ArrayBufferView::~ArrayBufferView): 41 (WTF::ArrayBufferView::neuter): 42 * wtf/ArrayBufferView.h: Renamed from Source/WebCore/html/canvas/ArrayBufferView.h. 43 (WTF::ArrayBufferView::isByteArray): 44 (WTF::ArrayBufferView::isUnsignedByteArray): 45 (WTF::ArrayBufferView::isShortArray): 46 (WTF::ArrayBufferView::isUnsignedShortArray): 47 (WTF::ArrayBufferView::isIntArray): 48 (WTF::ArrayBufferView::isUnsignedIntArray): 49 (WTF::ArrayBufferView::isFloatArray): 50 (WTF::ArrayBufferView::isDoubleArray): 51 (WTF::ArrayBufferView::isDataView): 52 (WTF::ArrayBufferView::buffer): 53 (WTF::ArrayBufferView::baseAddress): 54 (WTF::ArrayBufferView::byteOffset): 55 (WTF::ArrayBufferView::verifySubRange): 56 (WTF::ArrayBufferView::clampOffsetAndNumElements): 57 (WTF::ArrayBufferView::setImpl): 58 (WTF::ArrayBufferView::setRangeImpl): 59 (WTF::ArrayBufferView::zeroRangeImpl): 60 (WTF::ArrayBufferView::calculateOffsetAndLength): 61 * wtf/CMakeLists.txt: 62 * wtf/Float32Array.h: Renamed from Source/WebCore/html/canvas/Float32Array.h. 63 (WTF::Float32Array::set): 64 (WTF::Float32Array::item): 65 (WTF::Float32Array::isFloatArray): 66 (WTF::Float32Array::create): 67 (WTF::Float32Array::Float32Array): 68 (WTF::Float32Array::subarray): 69 * wtf/Float64Array.h: Renamed from Source/WebCore/html/canvas/Float64Array.h. 70 (WTF::Float64Array::set): 71 (WTF::Float64Array::item): 72 (WTF::Float64Array::isDoubleArray): 73 (WTF::Float64Array::create): 74 (WTF::Float64Array::Float64Array): 75 (WTF::Float64Array::subarray): 76 * wtf/Int16Array.h: Renamed from Source/WebCore/html/canvas/Int16Array.cpp. 77 (WTF::Int16Array::set): 78 (WTF::Int16Array::isShortArray): 79 (WTF::Int16Array::create): 80 (WTF::Int16Array::Int16Array): 81 (WTF::Int16Array::subarray): 82 * wtf/Int32Array.h: Renamed from Source/WebCore/html/canvas/Int32Array.cpp. 83 (WTF::Int32Array::set): 84 (WTF::Int32Array::isIntArray): 85 (WTF::Int32Array::create): 86 (WTF::Int32Array::Int32Array): 87 (WTF::Int32Array::subarray): 88 * wtf/Int8Array.h: Renamed from Source/WebCore/html/canvas/Int8Array.cpp. 89 (WTF::Int8Array::set): 90 (WTF::Int8Array::isByteArray): 91 (WTF::Int8Array::create): 92 (WTF::Int8Array::Int8Array): 93 (WTF::Int8Array::subarray): 94 * wtf/IntegralTypedArrayBase.h: Renamed from Source/WebCore/html/canvas/IntegralTypedArrayBase.h. 95 (WTF::IntegralTypedArrayBase::set): 96 (WTF::IntegralTypedArrayBase::item): 97 (WTF::IntegralTypedArrayBase::IntegralTypedArrayBase): 98 * wtf/TypedArrayBase.h: Renamed from Source/WebCore/html/canvas/TypedArrayBase.h. 99 (WTF::TypedArrayBase::data): 100 (WTF::TypedArrayBase::set): 101 (WTF::TypedArrayBase::setRange): 102 (WTF::TypedArrayBase::zeroRange): 103 (WTF::TypedArrayBase::length): 104 (WTF::TypedArrayBase::byteLength): 105 (WTF::TypedArrayBase::TypedArrayBase): 106 (WTF::TypedArrayBase::create): 107 (WTF::TypedArrayBase::subarrayImpl): 108 * wtf/Uint16Array.h: Renamed from Source/WebCore/html/canvas/Uint16Array.cpp. 109 (WTF::Uint16Array::set): 110 (WTF::Uint16Array::isUnsignedShortArray): 111 (WTF::Uint16Array::create): 112 (WTF::Uint16Array::Uint16Array): 113 (WTF::Uint16Array::subarray): 114 * wtf/Uint32Array.h: Renamed from Source/WebCore/html/canvas/Uint32Array.cpp. 115 (WTF::Uint32Array::set): 116 (WTF::Uint32Array::isUnsignedIntArray): 117 (WTF::Uint32Array::create): 118 (WTF::Uint32Array::Uint32Array): 119 (WTF::Uint32Array::subarray): 120 * wtf/Uint8Array.h: Renamed from Source/WebCore/html/canvas/Uint8Array.h. 121 (WTF::Uint8Array::set): 122 (WTF::Uint8Array::isUnsignedByteArray): 123 (WTF::Uint8Array::create): 124 (WTF::Uint8Array::Uint8Array): 125 (WTF::Uint8Array::subarray): 126 * wtf/wtf.pro: 127 1 128 2011-11-27 Filip Pizlo <fpizlo@apple.com> 2 129 -
trunk/Source/JavaScriptCore/GNUmakefile.list.am
r101242 r101295 497 497 Source/JavaScriptCore/wtf/Alignment.h \ 498 498 Source/JavaScriptCore/wtf/AlwaysInline.h \ 499 Source/JavaScriptCore/wtf/ArrayBuffer.cpp \ 500 Source/JavaScriptCore/wtf/ArrayBuffer.h \ 501 Source/JavaScriptCore/wtf/ArrayBufferView.cpp \ 502 Source/JavaScriptCore/wtf/ArrayBufferView.h \ 499 503 Source/JavaScriptCore/wtf/ASCIICType.h \ 500 504 Source/JavaScriptCore/wtf/Assertions.cpp \ … … 502 506 Source/JavaScriptCore/wtf/Atomics.h \ 503 507 Source/JavaScriptCore/wtf/AVLTree.h \ 508 Source/JavaScriptCore/wtf/Bitmap.h \ 504 509 Source/JavaScriptCore/wtf/BitVector.cpp \ 505 510 Source/JavaScriptCore/wtf/BitVector.h \ 506 Source/JavaScriptCore/wtf/Bitmap.h \507 511 Source/JavaScriptCore/wtf/BlockStack.h \ 508 512 Source/JavaScriptCore/wtf/BloomFilter.h \ … … 521 525 Source/JavaScriptCore/wtf/DecimalNumber.cpp \ 522 526 Source/JavaScriptCore/wtf/DecimalNumber.h \ 523 Source/JavaScriptCore/wtf/dtoa/bignum-dtoa.cc \524 Source/JavaScriptCore/wtf/dtoa/bignum.cc \525 Source/JavaScriptCore/wtf/dtoa/cached-powers.cc \526 Source/JavaScriptCore/wtf/dtoa/diy-fp.cc \527 Source/JavaScriptCore/wtf/dtoa/double-conversion.cc \528 Source/JavaScriptCore/wtf/dtoa/fast-dtoa.cc \529 Source/JavaScriptCore/wtf/dtoa/fixed-dtoa.cc \530 Source/JavaScriptCore/wtf/dtoa/strtod.cc \531 Source/JavaScriptCore/wtf/dtoa/bignum-dtoa.h \532 Source/JavaScriptCore/wtf/dtoa/bignum.h \533 Source/JavaScriptCore/wtf/dtoa/cached-powers.h \534 Source/JavaScriptCore/wtf/dtoa/diy-fp.h \535 Source/JavaScriptCore/wtf/dtoa/double-conversion.h \536 Source/JavaScriptCore/wtf/dtoa/double.h \537 Source/JavaScriptCore/wtf/dtoa/fast-dtoa.h \538 Source/JavaScriptCore/wtf/dtoa/fixed-dtoa.h \539 Source/JavaScriptCore/wtf/dtoa/strtod.h \540 Source/JavaScriptCore/wtf/dtoa/utils.h \541 527 Source/JavaScriptCore/wtf/Decoder.h \ 542 528 Source/JavaScriptCore/wtf/Deque.h \ … … 545 531 Source/JavaScriptCore/wtf/dtoa.cpp \ 546 532 Source/JavaScriptCore/wtf/dtoa.h \ 533 Source/JavaScriptCore/wtf/dtoa/bignum-dtoa.cc \ 534 Source/JavaScriptCore/wtf/dtoa/bignum-dtoa.h \ 535 Source/JavaScriptCore/wtf/dtoa/bignum.cc \ 536 Source/JavaScriptCore/wtf/dtoa/bignum.h \ 537 Source/JavaScriptCore/wtf/dtoa/cached-powers.cc \ 538 Source/JavaScriptCore/wtf/dtoa/cached-powers.h \ 539 Source/JavaScriptCore/wtf/dtoa/diy-fp.cc \ 540 Source/JavaScriptCore/wtf/dtoa/diy-fp.h \ 541 Source/JavaScriptCore/wtf/dtoa/double-conversion.cc \ 542 Source/JavaScriptCore/wtf/dtoa/double-conversion.h \ 543 Source/JavaScriptCore/wtf/dtoa/double.h \ 544 Source/JavaScriptCore/wtf/dtoa/fast-dtoa.cc \ 545 Source/JavaScriptCore/wtf/dtoa/fast-dtoa.h \ 546 Source/JavaScriptCore/wtf/dtoa/fixed-dtoa.cc \ 547 Source/JavaScriptCore/wtf/dtoa/fixed-dtoa.h \ 548 Source/JavaScriptCore/wtf/dtoa/strtod.cc \ 549 Source/JavaScriptCore/wtf/dtoa/strtod.h \ 550 Source/JavaScriptCore/wtf/dtoa/utils.h \ 547 551 Source/JavaScriptCore/wtf/DynamicAnnotations.cpp \ 548 552 Source/JavaScriptCore/wtf/DynamicAnnotations.h \ … … 552 556 Source/JavaScriptCore/wtf/FastMalloc.h \ 553 557 Source/JavaScriptCore/wtf/FixedArray.h \ 558 Source/JavaScriptCore/wtf/Float32Array.h \ 559 Source/JavaScriptCore/wtf/Float64Array.h \ 554 560 Source/JavaScriptCore/wtf/Forward.h \ 555 561 Source/JavaScriptCore/wtf/GetPtr.h \ … … 570 576 Source/JavaScriptCore/wtf/HexNumber.h \ 571 577 Source/JavaScriptCore/wtf/InlineASM.h \ 578 Source/JavaScriptCore/wtf/Int16Array.h \ 579 Source/JavaScriptCore/wtf/Int32Array.h \ 580 Source/JavaScriptCore/wtf/Int8Array.h \ 581 Source/JavaScriptCore/wtf/IntegralTypedArrayBase.h \ 572 582 Source/JavaScriptCore/wtf/ListHashSet.h \ 573 583 Source/JavaScriptCore/wtf/ListRefPtr.h \ … … 579 589 Source/JavaScriptCore/wtf/MD5.cpp \ 580 590 Source/JavaScriptCore/wtf/MD5.h \ 591 Source/JavaScriptCore/wtf/MessageQueue.h \ 581 592 Source/JavaScriptCore/wtf/MetaAllocator.cpp \ 582 593 Source/JavaScriptCore/wtf/MetaAllocator.h \ 583 594 Source/JavaScriptCore/wtf/MetaAllocatorHandle.h \ 584 Source/JavaScriptCore/wtf/ MessageQueue.h \595 Source/JavaScriptCore/wtf/Noncopyable.h \ 585 596 Source/JavaScriptCore/wtf/NonCopyingSort.h \ 586 Source/JavaScriptCore/wtf/Noncopyable.h \587 597 Source/JavaScriptCore/wtf/NotFound.h \ 588 598 Source/JavaScriptCore/wtf/NullPtr.h \ … … 592 602 Source/JavaScriptCore/wtf/OwnArrayPtr.h \ 593 603 Source/JavaScriptCore/wtf/OwnFastMallocPtr.h \ 604 Source/JavaScriptCore/wtf/OwnPtr.h \ 594 605 Source/JavaScriptCore/wtf/OwnPtrCommon.h \ 595 Source/JavaScriptCore/wtf/OwnPtr.h \596 606 Source/JavaScriptCore/wtf/PackedIntVector.h \ 597 607 Source/JavaScriptCore/wtf/PageAllocation.h \ 598 608 Source/JavaScriptCore/wtf/PageAllocationAligned.cpp \ 599 609 Source/JavaScriptCore/wtf/PageAllocationAligned.h \ 600 Source/JavaScriptCore/wtf/PageReservation.h \601 610 Source/JavaScriptCore/wtf/PageBlock.cpp \ 602 611 Source/JavaScriptCore/wtf/PageBlock.h \ 603 Source/JavaScriptCore/wtf/PassOwnArrayPtr.h \ 604 Source/JavaScriptCore/wtf/PassOwnPtr.h \ 605 Source/JavaScriptCore/wtf/PassRefPtr.h \ 606 Source/JavaScriptCore/wtf/PassTraits.h \ 612 Source/JavaScriptCore/wtf/PageReservation.h \ 607 613 Source/JavaScriptCore/wtf/ParallelJobs.h \ 608 614 Source/JavaScriptCore/wtf/ParallelJobsGeneric.cpp \ … … 610 616 Source/JavaScriptCore/wtf/ParallelJobsLibdispatch.h \ 611 617 Source/JavaScriptCore/wtf/ParallelJobsOpenMP.h \ 618 Source/JavaScriptCore/wtf/PassOwnArrayPtr.h \ 619 Source/JavaScriptCore/wtf/PassOwnPtr.h \ 620 Source/JavaScriptCore/wtf/PassRefPtr.h \ 621 Source/JavaScriptCore/wtf/PassTraits.h \ 612 622 Source/JavaScriptCore/wtf/Platform.h \ 613 623 Source/JavaScriptCore/wtf/PossiblyNull.h \ … … 657 667 Source/JavaScriptCore/wtf/text/WTFString.cpp \ 658 668 Source/JavaScriptCore/wtf/text/WTFString.h \ 659 Source/JavaScriptCore/wtf/threads/BinarySemaphore.cpp \660 Source/JavaScriptCore/wtf/threads/BinarySemaphore.h \661 669 Source/JavaScriptCore/wtf/ThreadIdentifierDataPthreads.cpp \ 662 670 Source/JavaScriptCore/wtf/ThreadIdentifierDataPthreads.h \ 663 Source/JavaScriptCore/wtf/ThreadRestrictionVerifier.h \664 671 Source/JavaScriptCore/wtf/Threading.cpp \ 665 672 Source/JavaScriptCore/wtf/Threading.h \ 666 673 Source/JavaScriptCore/wtf/ThreadingPrimitives.h \ 667 674 Source/JavaScriptCore/wtf/ThreadingPthreads.cpp \ 675 Source/JavaScriptCore/wtf/ThreadRestrictionVerifier.h \ 676 Source/JavaScriptCore/wtf/threads/BinarySemaphore.cpp \ 677 Source/JavaScriptCore/wtf/threads/BinarySemaphore.h \ 668 678 Source/JavaScriptCore/wtf/ThreadSafeRefCounted.h \ 669 679 Source/JavaScriptCore/wtf/ThreadSpecific.h \ 680 Source/JavaScriptCore/wtf/TypedArrayBase.h \ 670 681 Source/JavaScriptCore/wtf/TypeTraits.cpp \ 671 682 Source/JavaScriptCore/wtf/TypeTraits.h \ 672 Source/JavaScriptCore/wtf/UnionFind.h \ 683 Source/JavaScriptCore/wtf/Uint16Array.h \ 684 Source/JavaScriptCore/wtf/Uint32Array.h \ 685 Source/JavaScriptCore/wtf/Uint8Array.h \ 673 686 Source/JavaScriptCore/wtf/unicode/CharacterNames.h \ 687 Source/JavaScriptCore/wtf/unicode/Collator.h \ 674 688 Source/JavaScriptCore/wtf/unicode/CollatorDefault.cpp \ 675 Source/JavaScriptCore/wtf/unicode/Collator.h \676 689 Source/JavaScriptCore/wtf/unicode/Unicode.h \ 677 690 Source/JavaScriptCore/wtf/unicode/UTF8.cpp \ 678 691 Source/JavaScriptCore/wtf/unicode/UTF8.h \ 692 Source/JavaScriptCore/wtf/UnionFind.h \ 679 693 Source/JavaScriptCore/wtf/UnusedParam.h \ 680 694 Source/JavaScriptCore/wtf/ValueCheck.h \ -
trunk/Source/JavaScriptCore/JavaScriptCore.exp
r101056 r101295 424 424 __ZN3WTF14numberToStringEdPc 425 425 __ZN3WTF14tryFastReallocEPvm 426 __ZN3WTF15ArrayBufferView6neuterEv 427 __ZN3WTF15ArrayBufferViewC2ENS_10PassRefPtrINS_11ArrayBufferEEEj 428 __ZN3WTF15ArrayBufferViewD2Ev 426 429 __ZN3WTF15ThreadCondition4waitERNS_5MutexE 427 430 __ZN3WTF15ThreadCondition6signalEv -
trunk/Source/JavaScriptCore/JavaScriptCore.gypi
r100989 r101295 546 546 'runtime/UString.cpp', 547 547 'runtime/UStringConcatenate.h', 548 'wtf/ArrayBuffer.cpp', 549 'wtf/ArrayBuffer.h', 550 'wtf/ArrayBufferView.cpp', 551 'wtf/ArrayBufferView.h', 548 552 'wtf/Assertions.cpp', 549 553 'wtf/ByteArray.cpp', … … 555 559 'wtf/DynamicAnnotations.h', 556 560 'wtf/FastMalloc.cpp', 561 'wtf/Float32Array.h', 562 'wtf/Float64Array.h', 557 563 'wtf/HashTable.cpp', 564 'wtf/Int16Array.h', 565 'wtf/Int32Array.h', 566 'wtf/Int8Array.h', 567 'wtf/IntegralTypedArrayBase.h', 558 568 'wtf/MD5.cpp', 559 569 'wtf/MainThread.cpp', … … 588 598 'wtf/ThreadingWin.cpp', 589 599 'wtf/TypeTraits.cpp', 590 'wtf/WTFThreadData.cpp', 600 'wtf/TypedArrayBase.h', 601 'wtf/WTFThreadData.cpp' 602 'wtf/Uint16Array.h', 603 'wtf/Uint32Array.h', 604 'wtf/Uint8Array.h', 591 605 'wtf/chromium/ChromiumThreading.h', 592 606 'wtf/chromium/MainThreadChromium.cpp', -
trunk/Source/JavaScriptCore/JavaScriptCore.vcproj/WTF/WTF.vcproj
r98316 r101295 614 614 </File> 615 615 <File 616 RelativePath="..\..\wtf\ArrayBuffer.cpp" 617 > 618 </File> 619 <File 620 RelativePath="..\..\wtf\ArrayBuffer.h" 621 > 622 </File> 623 <File 624 RelativePath="..\..\wtf\ArrayBufferView.cpp" 625 > 626 </File> 627 <File 628 RelativePath="..\..\wtf\ArrayBufferView.h" 629 > 630 </File> 631 <File 616 632 RelativePath="..\..\wtf\ASCIICType.h" 617 633 > … … 727 743 <File 728 744 RelativePath="..\..\wtf\DynamicAnnotations.h" 745 > 746 </File> 747 <File 748 RelativePath="..\..\wtf\Float32Array.h" 749 > 750 </File> 751 <File 752 RelativePath="..\..\wtf\Float64Array.h" 729 753 > 730 754 </File> … … 834 858 </File> 835 859 <File 860 RelativePath="..\..\wtf\Int16Array.h" 861 > 862 </File> 863 <File 864 RelativePath="..\..\wtf\Int32Array.h" 865 > 866 </File> 867 <File 868 RelativePath="..\..\wtf\Int8Array.h" 869 > 870 </File> 871 <File 836 872 RelativePath="..\..\wtf\ListHashSet.h" 837 873 > … … 1155 1191 <File 1156 1192 RelativePath="..\..\wtf\TypeTraits.h" 1193 > 1194 </File> 1195 <File 1196 RelativePath="..\..\wtf\UInt16Array.h" 1197 > 1198 </File> 1199 <File 1200 RelativePath="..\..\wtf\UInt32Array.h" 1201 > 1202 </File> 1203 <File 1204 RelativePath="..\..\wtf\UInt8Array.h" 1157 1205 > 1158 1206 </File> -
trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r100556 r101295 458 458 A7386555118697B400540279 /* ThunkGenerators.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7386552118697B400540279 /* ThunkGenerators.cpp */; }; 459 459 A7386556118697B400540279 /* ThunkGenerators.h in Headers */ = {isa = PBXBuildFile; fileRef = A7386553118697B400540279 /* ThunkGenerators.h */; settings = {ATTRIBUTES = (Private, ); }; }; 460 A73BE168148420520091204B /* ArrayBuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A73BE154148420520091204B /* ArrayBuffer.cpp */; }; 461 A73BE169148420520091204B /* ArrayBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE155148420520091204B /* ArrayBuffer.h */; settings = {ATTRIBUTES = (Private, ); }; }; 462 A73BE16A148420520091204B /* ArrayBufferView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A73BE156148420520091204B /* ArrayBufferView.cpp */; }; 463 A73BE16B148420520091204B /* ArrayBufferView.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE157148420520091204B /* ArrayBufferView.h */; settings = {ATTRIBUTES = (Private, ); }; }; 464 A73BE16D148420520091204B /* Float32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE159148420520091204B /* Float32Array.h */; settings = {ATTRIBUTES = (Private, ); }; }; 465 A73BE16F148420520091204B /* Float64Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE15B148420520091204B /* Float64Array.h */; settings = {ATTRIBUTES = (Private, ); }; }; 466 A73BE171148420520091204B /* Int8Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE15D148420520091204B /* Int8Array.h */; settings = {ATTRIBUTES = (Private, ); }; }; 467 A73BE173148420520091204B /* Int16Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE15F148420520091204B /* Int16Array.h */; settings = {ATTRIBUTES = (Private, ); }; }; 468 A73BE175148420520091204B /* Int32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE161148420520091204B /* Int32Array.h */; settings = {ATTRIBUTES = (Private, ); }; }; 469 A73BE177148420520091204B /* Uint8Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE163148420520091204B /* Uint8Array.h */; settings = {ATTRIBUTES = (Private, ); }; }; 470 A73BE179148420520091204B /* Uint16Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE165148420520091204B /* Uint16Array.h */; settings = {ATTRIBUTES = (Private, ); }; }; 471 A73BE17B148420520091204B /* Uint32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE167148420520091204B /* Uint32Array.h */; settings = {ATTRIBUTES = (Private, ); }; }; 472 A73BE17E148420840091204B /* TypedArrayBase.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE17D148420840091204B /* TypedArrayBase.h */; settings = {ATTRIBUTES = (Private, ); }; }; 473 A73BE180148420A80091204B /* IntegralTypedArrayBase.h in Headers */ = {isa = PBXBuildFile; fileRef = A73BE17F148420A80091204B /* IntegralTypedArrayBase.h */; settings = {ATTRIBUTES = (Private, ); }; }; 460 474 A7482B9311671147003B0712 /* JSWeakObjectMapRefPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = A7482B791166CDEA003B0712 /* JSWeakObjectMapRefPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; }; 461 475 A7482B9411671147003B0712 /* JSWeakObjectMapRefPrivate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7482B7A1166CDEA003B0712 /* JSWeakObjectMapRefPrivate.cpp */; }; … … 1266 1280 A7386552118697B400540279 /* ThunkGenerators.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ThunkGenerators.cpp; sourceTree = "<group>"; }; 1267 1281 A7386553118697B400540279 /* ThunkGenerators.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThunkGenerators.h; sourceTree = "<group>"; }; 1282 A73BE154148420520091204B /* ArrayBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ArrayBuffer.cpp; sourceTree = "<group>"; }; 1283 A73BE155148420520091204B /* ArrayBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArrayBuffer.h; sourceTree = "<group>"; }; 1284 A73BE156148420520091204B /* ArrayBufferView.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ArrayBufferView.cpp; sourceTree = "<group>"; }; 1285 A73BE157148420520091204B /* ArrayBufferView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArrayBufferView.h; sourceTree = "<group>"; }; 1286 A73BE159148420520091204B /* Float32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Float32Array.h; sourceTree = "<group>"; }; 1287 A73BE15B148420520091204B /* Float64Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Float64Array.h; sourceTree = "<group>"; }; 1288 A73BE15D148420520091204B /* Int8Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int8Array.h; sourceTree = "<group>"; }; 1289 A73BE15F148420520091204B /* Int16Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int16Array.h; sourceTree = "<group>"; }; 1290 A73BE161148420520091204B /* Int32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int32Array.h; sourceTree = "<group>"; }; 1291 A73BE163148420520091204B /* Uint8Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint8Array.h; sourceTree = "<group>"; }; 1292 A73BE165148420520091204B /* Uint16Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint16Array.h; sourceTree = "<group>"; }; 1293 A73BE167148420520091204B /* Uint32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint32Array.h; sourceTree = "<group>"; }; 1294 A73BE17D148420840091204B /* TypedArrayBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TypedArrayBase.h; sourceTree = "<group>"; }; 1295 A73BE17F148420A80091204B /* IntegralTypedArrayBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IntegralTypedArrayBase.h; sourceTree = "<group>"; }; 1268 1296 A7482B791166CDEA003B0712 /* JSWeakObjectMapRefPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSWeakObjectMapRefPrivate.h; sourceTree = "<group>"; }; 1269 1297 A7482B7A1166CDEA003B0712 /* JSWeakObjectMapRefPrivate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWeakObjectMapRefPrivate.cpp; sourceTree = "<group>"; }; … … 1863 1891 isa = PBXGroup; 1864 1892 children = ( 1865 C22C524813FAF6EF00B7DC0D /* dtoa */,1866 06D358A00DAAD9C4003B174E /* mac */,1867 8656573E115BE35200291F40 /* text */,1868 1A082776142168D60090CCAC /* threads */,1869 E195678D09E7CF1200B89D13 /* unicode */,1870 1893 A1D764511354448B00C5C7C0 /* Alignment.h */, 1871 1894 93AA4F770957251F0084B3A7 /* AlwaysInline.h */, 1895 A73BE154148420520091204B /* ArrayBuffer.cpp */, 1896 A73BE155148420520091204B /* ArrayBuffer.h */, 1897 A73BE156148420520091204B /* ArrayBufferView.cpp */, 1898 A73BE157148420520091204B /* ArrayBufferView.h */, 1872 1899 938C4F690CA06BC700D9310A /* ASCIICType.h */, 1873 1900 65E217B808E7EECC0023E5F6 /* Assertions.cpp */, … … 1875 1902 BC5F7BBB11823B590052C02C /* Atomics.h */, 1876 1903 E1A596370DE3E1C300C17E37 /* AVLTree.h */, 1904 DD377CBB12072C18006A2517 /* Bitmap.h */, 1877 1905 0F16D724142C39A200CF784A /* BitVector.cpp */, 1878 1906 0FD82F491428069200179C94 /* BitVector.h */, 1879 DD377CBB12072C18006A2517 /* Bitmap.h */,1880 1907 A7C40C07130B057D00D002A1 /* BlockStack.h */, 1881 1908 E4D8CE9B12FC42E100BC9F5A /* BloomFilter.h */, … … 1899 1926 938C4F6B0CA06BCE00D9310A /* DisallowCType.h */, 1900 1927 14456A311314657800212CA3 /* DoublyLinkedList.h */, 1928 C22C524813FAF6EF00B7DC0D /* dtoa */, 1901 1929 651F6412039D5B5F0078395C /* dtoa.cpp */, 1902 1930 651F6413039D5B5F0078395C /* dtoa.h */, … … 1908 1936 65E217BA08E7EECC0023E5F6 /* FastMalloc.h */, 1909 1937 A7F19ECD11DD490900931E70 /* FixedArray.h */, 1938 A73BE159148420520091204B /* Float32Array.h */, 1939 A73BE15B148420520091204B /* Float64Array.h */, 1910 1940 935AF46909E9D9DB00ACD1D8 /* Forward.h */, 1911 1941 93B6A0DE0AA64DA40076DE27 /* GetPtr.h */, … … 1920 1950 7186A6E813100B57004479E1 /* HexNumber.h */, 1921 1951 8699AA60146A0E2B00E23A73 /* InlineASM.h */, 1952 A73BE15F148420520091204B /* Int16Array.h */, 1953 A73BE161148420520091204B /* Int32Array.h */, 1954 A73BE15D148420520091204B /* Int8Array.h */, 1955 A73BE17F148420A80091204B /* IntegralTypedArrayBase.h */, 1922 1956 657EB7450B708F540063461B /* ListHashSet.h */, 1923 1957 148A1626095D16BB00666D0D /* ListRefPtr.h */, 1924 1958 E1EE79270D6C964500FEA3BA /* Locker.h */, 1959 06D358A00DAAD9C4003B174E /* mac */, 1925 1960 06D358A20DAAD9C4003B174E /* MainThread.cpp */, 1926 1961 06D358A30DAAD9C4003B174E /* MainThread.h */, … … 1992 2027 6541BD7008E80A17002CBEE7 /* TCSystemAlloc.cpp */, 1993 2028 6541BD7108E80A17002CBEE7 /* TCSystemAlloc.h */, 2029 8656573E115BE35200291F40 /* text */, 1994 2030 18BAB52710DADFCD000D945B /* ThreadIdentifierDataPthreads.cpp */, 1995 2031 18BAB52810DADFCD000D945B /* ThreadIdentifierDataPthreads.h */, … … 1999 2035 E1EE793C0D6C9B9200FEA3BA /* ThreadingPthreads.cpp */, 2000 2036 0BAC949E1338728400CF135B /* ThreadRestrictionVerifier.h */, 2037 1A082776142168D60090CCAC /* threads */, 2001 2038 BC5F7BBD11823B590052C02C /* ThreadSafeRefCounted.h */, 2002 2039 E1B7C8BD0DA3A3360074B0DC /* ThreadSpecific.h */, 2040 A73BE17D148420840091204B /* TypedArrayBase.h */, 2003 2041 0B330C260F38C62300692DE3 /* TypeTraits.cpp */, 2004 2042 0B4D7E620F319AC800AD7E58 /* TypeTraits.h */, 2043 A73BE165148420520091204B /* Uint16Array.h */, 2044 A73BE167148420520091204B /* Uint32Array.h */, 2045 A73BE163148420520091204B /* Uint8Array.h */, 2046 E195678D09E7CF1200B89D13 /* unicode */, 2005 2047 0FD52AAC1430359D0026DC9F /* UnionFind.h */, 2006 2048 935AF46B09E9D9DB00ACD1D8 /* UnusedParam.h */, … … 2924 2966 978801411471AD920041B016 /* JSDateMath.h in Headers */, 2925 2967 0F2C556F14738F3100121E4F /* DFGCodeBlocks.h in Headers */, 2968 A73BE169148420520091204B /* ArrayBuffer.h in Headers */, 2969 A73BE16B148420520091204B /* ArrayBufferView.h in Headers */, 2970 A73BE16D148420520091204B /* Float32Array.h in Headers */, 2971 A73BE16F148420520091204B /* Float64Array.h in Headers */, 2972 A73BE171148420520091204B /* Int8Array.h in Headers */, 2973 A73BE173148420520091204B /* Int16Array.h in Headers */, 2974 A73BE175148420520091204B /* Int32Array.h in Headers */, 2975 A73BE177148420520091204B /* Uint8Array.h in Headers */, 2976 A73BE179148420520091204B /* Uint16Array.h in Headers */, 2977 A73BE17B148420520091204B /* Uint32Array.h in Headers */, 2978 A73BE17E148420840091204B /* TypedArrayBase.h in Headers */, 2979 A73BE180148420A80091204B /* IntegralTypedArrayBase.h in Headers */, 2926 2980 ); 2927 2981 runOnlyForDeploymentPostprocessing = 0; … … 3459 3513 978801401471AD920041B016 /* JSDateMath.cpp in Sources */, 3460 3514 0F2C557014738F3500121E4F /* DFGCodeBlocks.cpp in Sources */, 3515 A73BE168148420520091204B /* ArrayBuffer.cpp in Sources */, 3516 A73BE16A148420520091204B /* ArrayBufferView.cpp in Sources */, 3461 3517 ); 3462 3518 runOnlyForDeploymentPostprocessing = 0; -
trunk/Source/JavaScriptCore/wtf/ArrayBuffer.cpp
r101294 r101295 1 1 /* 2 2 * Copyright (C) 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.4 3 * 5 4 * Redistribution and use in source and binary forms, with or without … … 26 25 27 26 #include "config.h" 28 #include "Float32Array.h" 27 #include "ArrayBuffer.h" 28 29 #include "ArrayBufferView.h" 30 31 #include <wtf/RefPtr.h> 32 #include <wtf/Vector.h> 29 33 30 34 namespace WTF { 31 35 32 PassRefPtr<Float32Array> Float32Array::create(unsigned length)36 bool ArrayBuffer::transfer(ArrayBufferContents& result, Vector<ArrayBufferView*>& neuteredViews) 33 37 { 34 return TypedArrayBase<float>::create<Float32Array>(length); 38 RefPtr<ArrayBuffer> keepAlive(this); 39 40 if (!m_contents.m_data) { 41 result.m_data = 0; 42 return false; 43 } 44 45 m_contents.transfer(result); 46 47 while (m_firstView) { 48 ArrayBufferView* current = m_firstView; 49 removeView(current); 50 current->neuter(); 51 neuteredViews.append(current); 52 } 53 return true; 35 54 } 36 55 37 PassRefPtr<Float32Array> Float32Array::create(const float* array, unsigned length)56 void ArrayBuffer::addView(ArrayBufferView* view) 38 57 { 39 return TypedArrayBase<float>::create<Float32Array>(array, length); 58 view->m_buffer = this; 59 view->m_prevView = 0; 60 view->m_nextView = m_firstView; 61 if (m_firstView) 62 m_firstView->m_prevView = view; 63 m_firstView = view; 40 64 } 41 65 42 PassRefPtr<Float32Array> Float32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)66 void ArrayBuffer::removeView(ArrayBufferView* view) 43 67 { 44 return TypedArrayBase<float>::create<Float32Array>(buffer, byteOffset, length); 45 } 46 47 Float32Array::Float32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) 48 : TypedArrayBase<float>(buffer, byteOffset, length) 49 { 50 } 51 52 PassRefPtr<Float32Array> Float32Array::subarray(int start) const 53 { 54 return subarray(start, length()); 55 } 56 57 PassRefPtr<Float32Array> Float32Array::subarray(int start, int end) const 58 { 59 return subarrayImpl<Float32Array>(start, end); 68 ASSERT(this == view->m_buffer); 69 if (view->m_nextView) 70 view->m_nextView->m_prevView = view->m_prevView; 71 if (view->m_prevView) 72 view->m_prevView->m_nextView = view->m_nextView; 73 if (m_firstView == view) 74 m_firstView = view->m_nextView; 75 view->m_prevView = view->m_nextView = 0; 60 76 } 61 77 -
trunk/Source/JavaScriptCore/wtf/ArrayBuffer.h
r101294 r101295 24 24 */ 25 25 26 #include "config.h" 27 #include "ArrayBuffer.h" 28 #include "ArrayBufferView.h" 29 30 #include <wtf/RefPtr.h> 26 #ifndef ArrayBuffer_h 27 #define ArrayBuffer_h 28 29 #include <wtf/HashSet.h> 30 #include <wtf/PassRefPtr.h> 31 #include <wtf/RefCounted.h> 31 32 #include <wtf/Vector.h> 32 33 33 34 namespace WTF { 34 35 35 static int clampValue(int x, int left, int right) 36 class ArrayBuffer; 37 class ArrayBufferView; 38 39 class ArrayBufferContents { 40 WTF_MAKE_NONCOPYABLE(ArrayBufferContents); 41 public: 42 ArrayBufferContents() 43 : m_data(0) 44 , m_sizeInBytes(0) 45 { } 46 47 inline ~ArrayBufferContents(); 48 49 void* data() { return m_data; } 50 unsigned sizeInBytes() { return m_sizeInBytes; } 51 52 private: 53 ArrayBufferContents(void* data, unsigned sizeInBytes) 54 : m_data(data) 55 , m_sizeInBytes(sizeInBytes) 56 { } 57 58 friend class ArrayBuffer; 59 60 static inline void tryAllocate(unsigned numElements, unsigned elementByteSize, ArrayBufferContents&); 61 void transfer(ArrayBufferContents& other) 62 { 63 ASSERT(!other.m_data); 64 other.m_data = m_data; 65 other.m_sizeInBytes = m_sizeInBytes; 66 m_data = 0; 67 m_sizeInBytes = 0; 68 } 69 70 void* m_data; 71 unsigned m_sizeInBytes; 72 }; 73 74 class ArrayBuffer : public RefCounted<ArrayBuffer> { 75 public: 76 static inline PassRefPtr<ArrayBuffer> create(unsigned numElements, unsigned elementByteSize); 77 static inline PassRefPtr<ArrayBuffer> create(ArrayBuffer*); 78 static inline PassRefPtr<ArrayBuffer> create(const void* source, unsigned byteLength); 79 static inline PassRefPtr<ArrayBuffer> create(ArrayBufferContents&); 80 81 inline void* data(); 82 inline const void* data() const; 83 inline unsigned byteLength() const; 84 85 inline PassRefPtr<ArrayBuffer> slice(int begin, int end) const; 86 inline PassRefPtr<ArrayBuffer> slice(int begin) const; 87 88 void addView(ArrayBufferView*); 89 void removeView(ArrayBufferView*); 90 91 bool transfer(ArrayBufferContents&, Vector<ArrayBufferView*>& neuteredViews); 92 93 ~ArrayBuffer() { } 94 95 private: 96 inline ArrayBuffer(ArrayBufferContents&); 97 inline PassRefPtr<ArrayBuffer> sliceImpl(unsigned begin, unsigned end) const; 98 inline unsigned clampIndex(int index) const; 99 static inline int clampValue(int x, int left, int right); 100 101 ArrayBufferContents m_contents; 102 ArrayBufferView* m_firstView; 103 }; 104 105 int ArrayBuffer::clampValue(int x, int left, int right) 36 106 { 37 107 ASSERT(left <= right); … … 116 186 index = currentLength + index; 117 187 return clampValue(index, 0, currentLength); 118 }119 120 bool ArrayBuffer::transfer(ArrayBufferContents& result, Vector<ArrayBufferView*>& neuteredViews)121 {122 RefPtr<ArrayBuffer> keepAlive(this);123 124 if (!m_contents.m_data) {125 result.m_data = 0;126 return false;127 }128 129 m_contents.transfer(result);130 131 while (m_firstView) {132 ArrayBufferView* current = m_firstView;133 removeView(current);134 current->neuter();135 neuteredViews.append(current);136 }137 return true;138 }139 140 ArrayBufferContents::~ArrayBufferContents()141 {142 WTF::fastFree(m_data);143 188 } 144 189 … … 163 208 } 164 209 165 void ArrayBuffer::addView(ArrayBufferView* view) 166 { 167 view->m_buffer = this; 168 view->m_prevView = 0; 169 view->m_nextView = m_firstView; 170 if (m_firstView) 171 m_firstView->m_prevView = view; 172 m_firstView = view; 173 } 174 175 void ArrayBuffer::removeView(ArrayBufferView* view) 176 { 177 ASSERT(this == view->m_buffer); 178 if (view->m_nextView) 179 view->m_nextView->m_prevView = view->m_prevView; 180 if (view->m_prevView) 181 view->m_prevView->m_nextView = view->m_nextView; 182 if (m_firstView == view) 183 m_firstView = view->m_nextView; 184 view->m_prevView = view->m_nextView = 0; 185 } 186 187 } 210 ArrayBufferContents::~ArrayBufferContents() 211 { 212 WTF::fastFree(m_data); 213 } 214 215 } // namespace WTF 216 217 using WTF::ArrayBuffer; 218 219 #endif // ArrayBuffer_h -
trunk/Source/JavaScriptCore/wtf/ArrayBufferView.cpp
r101294 r101295 1 1 /* 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 2 * Copyright (C) 2009 Apple Inc. All rights reserved. 4 3 * 5 4 * Redistribution and use in source and binary forms, with or without … … 25 24 */ 26 25 27 #import <WebCore/DOMArrayBufferView.h> 26 #include "config.h" 27 #include "ArrayBufferView.h" 28 28 29 #i f WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST29 #include "ArrayBuffer.h" 30 30 31 @interface DOMFloat64Array : DOMArrayBufferView 32 @end 31 namespace WTF { 33 32 34 #endif 33 ArrayBufferView::ArrayBufferView(PassRefPtr<ArrayBuffer> buffer, 34 unsigned byteOffset) 35 : m_byteOffset(byteOffset) 36 , m_buffer(buffer) 37 { 38 m_baseAddress = m_buffer ? (static_cast<char*>(m_buffer->data()) + m_byteOffset) : 0; 39 if (m_buffer) 40 m_buffer->addView(this); 41 } 42 43 ArrayBufferView::~ArrayBufferView() 44 { 45 if (m_buffer) 46 m_buffer->removeView(this); 47 } 48 49 void ArrayBufferView::neuter() 50 { 51 m_buffer = 0; 52 m_byteOffset = 0; 53 } 54 55 } -
trunk/Source/JavaScriptCore/wtf/ArrayBufferView.h
r101294 r101295 69 69 70 70 protected: 71 ArrayBufferView(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset);71 ArrayBufferView(PassRefPtr<ArrayBuffer>, unsigned byteOffset); 72 72 73 bool setImpl(ArrayBufferView*, unsigned byteOffset);73 inline bool setImpl(ArrayBufferView*, unsigned byteOffset); 74 74 75 bool setRangeImpl(const char* data, size_t dataByteLength, unsigned byteOffset);75 inline bool setRangeImpl(const char* data, size_t dataByteLength, unsigned byteOffset); 76 76 77 bool zeroRangeImpl(unsigned byteOffset, size_t rangeByteLength);77 inline bool zeroRangeImpl(unsigned byteOffset, size_t rangeByteLength); 78 78 79 static void calculateOffsetAndLength(int start, int end, unsigned arraySize,79 static inline void calculateOffsetAndLength(int start, int end, unsigned arraySize, 80 80 unsigned* offset, unsigned* length); 81 81 … … 133 133 }; 134 134 135 bool ArrayBufferView::setImpl(ArrayBufferView* array, unsigned byteOffset) 136 { 137 if (byteOffset > byteLength() 138 || byteOffset + array->byteLength() > byteLength() 139 || byteOffset + array->byteLength() < byteOffset) { 140 // Out of range offset or overflow 141 return false; 142 } 143 144 char* base = static_cast<char*>(baseAddress()); 145 memmove(base + byteOffset, array->baseAddress(), array->byteLength()); 146 return true; 147 } 148 149 bool ArrayBufferView::setRangeImpl(const char* data, size_t dataByteLength, unsigned byteOffset) 150 { 151 if (byteOffset > byteLength() 152 || byteOffset + dataByteLength > byteLength() 153 || byteOffset + dataByteLength < byteOffset) { 154 // Out of range offset or overflow 155 return false; 156 } 157 158 char* base = static_cast<char*>(baseAddress()); 159 memmove(base + byteOffset, data, dataByteLength); 160 return true; 161 } 162 163 bool ArrayBufferView::zeroRangeImpl(unsigned byteOffset, size_t rangeByteLength) 164 { 165 if (byteOffset > byteLength() 166 || byteOffset + rangeByteLength > byteLength() 167 || byteOffset + rangeByteLength < byteOffset) { 168 // Out of range offset or overflow 169 return false; 170 } 171 172 char* base = static_cast<char*>(baseAddress()); 173 memset(base + byteOffset, 0, rangeByteLength); 174 return true; 175 } 176 177 void ArrayBufferView::calculateOffsetAndLength(int start, int end, unsigned arraySize, 178 unsigned* offset, unsigned* length) 179 { 180 if (start < 0) 181 start += arraySize; 182 if (start < 0) 183 start = 0; 184 if (end < 0) 185 end += arraySize; 186 if (end < 0) 187 end = 0; 188 if (end < start) 189 end = start; 190 *offset = static_cast<unsigned>(start); 191 *length = static_cast<unsigned>(end - start); 192 } 193 135 194 } // namespace WTF 136 195 -
trunk/Source/JavaScriptCore/wtf/CMakeLists.txt
r101052 r101295 4 4 Alignment.h 5 5 AlwaysInline.h 6 ArrayBuffer.cpp 7 ArrayBufferView.cpp 6 8 Assertions.h 7 9 Atomics.h -
trunk/Source/JavaScriptCore/wtf/Float32Array.h
r101294 r101295 35 35 class Float32Array : public TypedArrayBase<float> { 36 36 public: 37 static PassRefPtr<Float32Array> create(unsigned length);38 static PassRefPtr<Float32Array> create(const float* array, unsigned length);39 static PassRefPtr<Float32Array> create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length);37 static inline PassRefPtr<Float32Array> create(unsigned length); 38 static inline PassRefPtr<Float32Array> create(const float* array, unsigned length); 39 static inline PassRefPtr<Float32Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); 40 40 41 41 // Can’t use "using" here due to a bug in the RVCT compiler. … … 58 58 } 59 59 60 PassRefPtr<Float32Array> subarray(int start) const;61 PassRefPtr<Float32Array> subarray(int start, int end) const;60 inline PassRefPtr<Float32Array> subarray(int start) const; 61 inline PassRefPtr<Float32Array> subarray(int start, int end) const; 62 62 63 63 private: 64 Float32Array(PassRefPtr<ArrayBuffer> buffer,64 inline Float32Array(PassRefPtr<ArrayBuffer>, 65 65 unsigned byteOffset, 66 66 unsigned length); … … 72 72 }; 73 73 74 PassRefPtr<Float32Array> Float32Array::create(unsigned length) 75 { 76 return TypedArrayBase<float>::create<Float32Array>(length); 77 } 78 79 PassRefPtr<Float32Array> Float32Array::create(const float* array, unsigned length) 80 { 81 return TypedArrayBase<float>::create<Float32Array>(array, length); 82 } 83 84 PassRefPtr<Float32Array> Float32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) 85 { 86 return TypedArrayBase<float>::create<Float32Array>(buffer, byteOffset, length); 87 } 88 89 Float32Array::Float32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) 90 : TypedArrayBase<float>(buffer, byteOffset, length) 91 { 92 } 93 94 PassRefPtr<Float32Array> Float32Array::subarray(int start) const 95 { 96 return subarray(start, length()); 97 } 98 99 PassRefPtr<Float32Array> Float32Array::subarray(int start, int end) const 100 { 101 return subarrayImpl<Float32Array>(start, end); 102 } 103 74 104 } // namespace WTF 75 105 -
trunk/Source/JavaScriptCore/wtf/Float64Array.h
r101294 r101295 35 35 class Float64Array : public TypedArrayBase<double> { 36 36 public: 37 static PassRefPtr<Float64Array> create(unsigned length);38 static PassRefPtr<Float64Array> create(const double* array, unsigned length);39 static PassRefPtr<Float64Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);37 static inline PassRefPtr<Float64Array> create(unsigned length); 38 static inline PassRefPtr<Float64Array> create(const double* array, unsigned length); 39 static inline PassRefPtr<Float64Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); 40 40 41 41 // Can’t use "using" here due to a bug in the RVCT compiler. … … 58 58 } 59 59 60 PassRefPtr<Float64Array> subarray(int start) const;61 PassRefPtr<Float64Array> subarray(int start, int end) const;60 inline PassRefPtr<Float64Array> subarray(int start) const; 61 inline PassRefPtr<Float64Array> subarray(int start, int end) const; 62 62 63 63 private: 64 Float64Array(PassRefPtr<ArrayBuffer>,64 inline Float64Array(PassRefPtr<ArrayBuffer>, 65 65 unsigned byteOffset, 66 66 unsigned length); … … 72 72 }; 73 73 74 PassRefPtr<Float64Array> Float64Array::create(unsigned length) 75 { 76 return TypedArrayBase<double>::create<Float64Array>(length); 77 } 78 79 PassRefPtr<Float64Array> Float64Array::create(const double* array, unsigned length) 80 { 81 return TypedArrayBase<double>::create<Float64Array>(array, length); 82 } 83 84 PassRefPtr<Float64Array> Float64Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) 85 { 86 return TypedArrayBase<double>::create<Float64Array>(buffer, byteOffset, length); 87 } 88 89 Float64Array::Float64Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) 90 : TypedArrayBase<double>(buffer, byteOffset, length) 91 { 92 } 93 94 PassRefPtr<Float64Array> Float64Array::subarray(int start) const 95 { 96 return subarray(start, length()); 97 } 98 99 PassRefPtr<Float64Array> Float64Array::subarray(int start, int end) const 100 { 101 return subarrayImpl<Float64Array>(start, end); 102 } 103 74 104 } // namespace WTF 75 105 -
trunk/Source/JavaScriptCore/wtf/Int16Array.h
r101294 r101295 24 24 */ 25 25 26 #include "config.h" 27 #include "Int16Array.h" 26 #ifndef Int16Array_h 27 #define Int16Array_h 28 29 #include "IntegralTypedArrayBase.h" 28 30 29 31 namespace WTF { 32 33 class ArrayBuffer; 34 35 class Int16Array : public IntegralTypedArrayBase<short> { 36 public: 37 static inline PassRefPtr<Int16Array> create(unsigned length); 38 static inline PassRefPtr<Int16Array> create(short* array, unsigned length); 39 static inline PassRefPtr<Int16Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); 40 41 // Can’t use "using" here due to a bug in the RVCT compiler. 42 bool set(TypedArrayBase<short>* array, unsigned offset) { return TypedArrayBase<short>::set(array, offset); } 43 void set(unsigned index, double value) { IntegralTypedArrayBase<short>::set(index, value); } 44 45 inline PassRefPtr<Int16Array> subarray(int start) const; 46 inline PassRefPtr<Int16Array> subarray(int start, int end) const; 47 48 private: 49 inline Int16Array(PassRefPtr<ArrayBuffer>, 50 unsigned byteOffset, 51 unsigned length); 52 // Make constructor visible to superclass. 53 friend class TypedArrayBase<short>; 54 55 // Overridden from ArrayBufferView. 56 virtual bool isShortArray() const { return true; } 57 }; 30 58 31 59 PassRefPtr<Int16Array> Int16Array::create(unsigned length) … … 59 87 } 60 88 61 } 89 } // namespace WTF 90 91 using WTF::Int16Array; 92 93 #endif // Int16Array_h -
trunk/Source/JavaScriptCore/wtf/Int32Array.h
r101294 r101295 25 25 */ 26 26 27 #include "config.h" 28 #include "Int32Array.h" 27 #ifndef Int32Array_h 28 #define Int32Array_h 29 30 #include "IntegralTypedArrayBase.h" 29 31 30 32 namespace WTF { 33 34 class Int32Array : public IntegralTypedArrayBase<int> { 35 public: 36 static inline PassRefPtr<Int32Array> create(unsigned length); 37 static inline PassRefPtr<Int32Array> create(int* array, unsigned length); 38 static inline PassRefPtr<Int32Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); 39 40 // Can’t use "using" here due to a bug in the RVCT compiler. 41 bool set(TypedArrayBase<int>* array, unsigned offset) { return TypedArrayBase<int>::set(array, offset); } 42 void set(unsigned index, double value) { IntegralTypedArrayBase<int>::set(index, value); } 43 44 inline PassRefPtr<Int32Array> subarray(int start) const; 45 inline PassRefPtr<Int32Array> subarray(int start, int end) const; 46 47 private: 48 inline Int32Array(PassRefPtr<ArrayBuffer>, 49 unsigned byteOffset, 50 unsigned length); 51 // Make constructor visible to superclass. 52 friend class TypedArrayBase<int>; 53 54 // Overridden from ArrayBufferView. 55 virtual bool isIntArray() const { return true; } 56 }; 31 57 32 58 PassRefPtr<Int32Array> Int32Array::create(unsigned length) … … 60 86 } 61 87 62 } 88 } // namespace WTF 89 90 using WTF::Int32Array; 91 92 #endif // Int32Array_h -
trunk/Source/JavaScriptCore/wtf/Int8Array.h
r101294 r101295 25 25 */ 26 26 27 #include "config.h" 28 #include "Int8Array.h" 27 #ifndef Int8Array_h 28 #define Int8Array_h 29 30 #include "IntegralTypedArrayBase.h" 29 31 30 32 namespace WTF { 33 34 class ArrayBuffer; 35 36 class Int8Array : public IntegralTypedArrayBase<signed char> { 37 public: 38 static inline PassRefPtr<Int8Array> create(unsigned length); 39 static inline PassRefPtr<Int8Array> create(signed char* array, unsigned length); 40 static inline PassRefPtr<Int8Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); 41 42 // Can’t use "using" here due to a bug in the RVCT compiler. 43 bool set(TypedArrayBase<signed char>* array, unsigned offset) { return TypedArrayBase<signed char>::set(array, offset); } 44 void set(unsigned index, double value) { IntegralTypedArrayBase<signed char>::set(index, value); } 45 46 inline PassRefPtr<Int8Array> subarray(int start) const; 47 inline PassRefPtr<Int8Array> subarray(int start, int end) const; 48 49 private: 50 inline Int8Array(PassRefPtr<ArrayBuffer>, 51 unsigned byteOffset, 52 unsigned length); 53 // Make constructor visible to superclass. 54 friend class TypedArrayBase<signed char>; 55 56 // Overridden from ArrayBufferView. 57 virtual bool isByteArray() const { return true; } 58 }; 31 59 32 60 PassRefPtr<Int8Array> Int8Array::create(unsigned length) … … 60 88 } 61 89 62 } 90 } // namespace WTF 91 92 using WTF::Int8Array; 93 94 #endif // Int8Array_h -
trunk/Source/JavaScriptCore/wtf/Uint16Array.h
r101294 r101295 25 25 */ 26 26 27 #include "config.h" 28 #include "Uint16Array.h" 27 #ifndef Uint16Array_h 28 #define Uint16Array_h 29 30 #include "IntegralTypedArrayBase.h" 29 31 30 32 namespace WTF { 33 34 class ArrayBuffer; 35 36 class Uint16Array : public IntegralTypedArrayBase<unsigned short> { 37 public: 38 static inline PassRefPtr<Uint16Array> create(unsigned length); 39 static inline PassRefPtr<Uint16Array> create(unsigned short* array, unsigned length); 40 static inline PassRefPtr<Uint16Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); 41 42 // Can’t use "using" here due to a bug in the RVCT compiler. 43 bool set(TypedArrayBase<unsigned short>* array, unsigned offset) { return TypedArrayBase<unsigned short>::set(array, offset); } 44 void set(unsigned index, double value) { IntegralTypedArrayBase<unsigned short>::set(index, value); } 45 46 inline PassRefPtr<Uint16Array> subarray(int start) const; 47 inline PassRefPtr<Uint16Array> subarray(int start, int end) const; 48 49 private: 50 inline Uint16Array(PassRefPtr<ArrayBuffer>, 51 unsigned byteOffset, 52 unsigned length); 53 // Make constructor visible to superclass. 54 friend class TypedArrayBase<unsigned short>; 55 56 // Overridden from ArrayBufferView. 57 virtual bool isUnsignedShortArray() const { return true; } 58 }; 31 59 32 60 PassRefPtr<Uint16Array> Uint16Array::create(unsigned length) … … 60 88 } 61 89 62 } 90 } // namespace WTF 91 92 using WTF::Uint16Array; 93 94 #endif // Uint16Array_h -
trunk/Source/JavaScriptCore/wtf/Uint32Array.h
r101294 r101295 25 25 */ 26 26 27 #include "config.h" 28 #include "Uint32Array.h" 27 #ifndef Uint32Array_h 28 #define Uint32Array_h 29 30 #include "IntegralTypedArrayBase.h" 29 31 30 32 namespace WTF { 33 34 class ArrayBuffer; 35 36 class Uint32Array : public IntegralTypedArrayBase<unsigned int> { 37 public: 38 static inline PassRefPtr<Uint32Array> create(unsigned length); 39 static inline PassRefPtr<Uint32Array> create(unsigned int* array, unsigned length); 40 static inline PassRefPtr<Uint32Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); 41 42 // Can’t use "using" here due to a bug in the RVCT compiler. 43 bool set(TypedArrayBase<unsigned int>* array, unsigned offset) { return TypedArrayBase<unsigned int>::set(array, offset); } 44 void set(unsigned index, double value) { IntegralTypedArrayBase<unsigned int>::set(index, value); } 45 46 inline PassRefPtr<Uint32Array> subarray(int start) const; 47 inline PassRefPtr<Uint32Array> subarray(int start, int end) const; 48 49 private: 50 inline Uint32Array(PassRefPtr<ArrayBuffer>, 51 unsigned byteOffset, 52 unsigned length); 53 // Make constructor visible to superclass. 54 friend class TypedArrayBase<unsigned int>; 55 56 // Overridden from ArrayBufferView. 57 virtual bool isUnsignedIntArray() const { return true; } 58 }; 31 59 32 60 PassRefPtr<Uint32Array> Uint32Array::create(unsigned length) … … 60 88 } 61 89 62 } 90 } // namespace WTF 91 92 using WTF::Uint32Array; 93 94 #endif // Uint32Array_h -
trunk/Source/JavaScriptCore/wtf/Uint8Array.h
r101294 r101295 36 36 class Uint8Array : public IntegralTypedArrayBase<unsigned char> { 37 37 public: 38 static PassRefPtr<Uint8Array> create(unsigned length);39 static PassRefPtr<Uint8Array> create(unsigned char* array, unsigned length);40 static PassRefPtr<Uint8Array> create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length);38 static inline PassRefPtr<Uint8Array> create(unsigned length); 39 static inline PassRefPtr<Uint8Array> create(unsigned char* array, unsigned length); 40 static inline PassRefPtr<Uint8Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); 41 41 42 42 // Can’t use "using" here due to a bug in the RVCT compiler. … … 44 44 void set(unsigned index, double value) { IntegralTypedArrayBase<unsigned char>::set(index, value); } 45 45 46 PassRefPtr<Uint8Array> subarray(int start) const;47 PassRefPtr<Uint8Array> subarray(int start, int end) const;46 inline PassRefPtr<Uint8Array> subarray(int start) const; 47 inline PassRefPtr<Uint8Array> subarray(int start, int end) const; 48 48 49 49 private: 50 Uint8Array(PassRefPtr<ArrayBuffer> buffer,50 inline Uint8Array(PassRefPtr<ArrayBuffer>, 51 51 unsigned byteOffset, 52 52 unsigned length); … … 58 58 }; 59 59 60 PassRefPtr<Uint8Array> Uint8Array::create(unsigned length) 61 { 62 return TypedArrayBase<unsigned char>::create<Uint8Array>(length); 63 } 64 65 PassRefPtr<Uint8Array> Uint8Array::create(unsigned char* array, unsigned length) 66 { 67 return TypedArrayBase<unsigned char>::create<Uint8Array>(array, length); 68 } 69 70 PassRefPtr<Uint8Array> Uint8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) 71 { 72 return TypedArrayBase<unsigned char>::create<Uint8Array>(buffer, byteOffset, length); 73 } 74 75 Uint8Array::Uint8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) 76 : IntegralTypedArrayBase<unsigned char>(buffer, byteOffset, length) 77 { 78 } 79 80 PassRefPtr<Uint8Array> Uint8Array::subarray(int start) const 81 { 82 return subarray(start, length()); 83 } 84 85 PassRefPtr<Uint8Array> Uint8Array::subarray(int start, int end) const 86 { 87 return subarrayImpl<Uint8Array>(start, end); 88 } 89 60 90 } // namespace WTF 61 91 -
trunk/Source/JavaScriptCore/wtf/wtf.pro
r101247 r101295 26 26 Alignment.h \ 27 27 AlwaysInline.h \ 28 ArrayBuffer.h \ 29 ArrayBufferView.h \ 28 30 ASCIICType.h \ 29 31 Assertions.h \ … … 45 47 Deque.h \ 46 48 DisallowCType.h \ 49 dtoa.h \ 47 50 dtoa/bignum-dtoa.h \ 48 51 dtoa/bignum.h \ … … 53 56 dtoa/fast-dtoa.h \ 54 57 dtoa/fixed-dtoa.h \ 55 dtoa.h \56 58 dtoa/strtod.h \ 57 59 dtoa/utils.h \ … … 61 63 FastMalloc.h \ 62 64 FixedArray.h \ 65 Float32Array.h \ 66 Float64Array.h \ 63 67 Forward.h \ 64 68 GetPtr.h \ … … 71 75 HashTraits.h \ 72 76 HexNumber.h \ 77 Int16Array.h \ 78 Int32Array.h \ 79 Int8Array.h \ 73 80 ListHashSet.h \ 74 81 ListRefPtr.h \ … … 89 96 OwnArrayPtr.h \ 90 97 OwnFastMallocPtr.h \ 98 OwnPtr.h \ 91 99 OwnPtrCommon.h \ 92 OwnPtr.h \93 100 PackedIntVector.h \ 101 PageAllocation.h \ 94 102 PageAllocationAligned.h \ 95 PageAllocation.h \96 103 PageBlock.h \ 97 104 PageReservation.h \ 105 ParallelJobs.h \ 98 106 ParallelJobsGeneric.h \ 99 ParallelJobs.h \100 107 ParallelJobsLibdispatch.h \ 101 108 ParallelJobsOpenMP.h \ … … 143 150 ThreadSpecific.h \ 144 151 TypeTraits.h \ 152 Uint16Array.h \ 153 Uint32Array.h \ 154 Uint8Array.h \ 145 155 unicode/CharacterNames.h \ 146 156 unicode/Collator.h \ … … 158 168 WTFThreadData.h 159 169 170 160 171 SOURCES += \ 172 ArrayBuffer.cpp \ 173 ArrayBufferView.cpp \ 161 174 Assertions.cpp \ 162 175 BitVector.cpp \ -
trunk/Source/WebCore/CMakeLists.txt
r101288 r101295 824 824 html/WeekInputType.cpp 825 825 826 html/canvas/ArrayBuffer.cpp827 html/canvas/ArrayBufferView.cpp828 826 html/canvas/CanvasContextAttributes.cpp 829 827 html/canvas/CanvasGradient.cpp … … 834 832 html/canvas/CanvasStyle.cpp 835 833 html/canvas/DataView.cpp 836 html/canvas/Float32Array.cpp837 html/canvas/Float64Array.cpp838 html/canvas/Int16Array.cpp839 html/canvas/Int32Array.cpp840 html/canvas/Int8Array.cpp841 html/canvas/Uint16Array.cpp842 html/canvas/Uint32Array.cpp843 html/canvas/Uint8Array.cpp844 834 845 835 html/parser/CSSPreloadScanner.cpp -
trunk/Source/WebCore/ChangeLog
r101292 r101295 1 2011-11-28 Oliver Hunt <oliver@apple.com> 2 3 Move typed array implementations into wtf 4 https://bugs.webkit.org/show_bug.cgi?id=73248 5 6 Reviewed by Sam Weinig. 7 8 Removed the typed array implementation files from WebCore and 9 added forwarding headers. 10 11 * CMakeLists.txt: 12 * ForwardingHeaders/wtf/ArrayBuffer.h: Added. 13 * ForwardingHeaders/wtf/ArrayBufferView.h: Added. 14 * ForwardingHeaders/wtf/Float32Array.h: Added. 15 * ForwardingHeaders/wtf/Float64Array.h: Added. 16 * ForwardingHeaders/wtf/Int16Array.h: Added. 17 * ForwardingHeaders/wtf/Int32Array.h: Added. 18 * ForwardingHeaders/wtf/Int8Array.h: Added. 19 * ForwardingHeaders/wtf/Uint16Array.h: Added. 20 * ForwardingHeaders/wtf/Uint32Array.h: Added. 21 * ForwardingHeaders/wtf/Uint8Array.h: Added. 22 * GNUmakefile.list.am: 23 * Target.pri: 24 * WebCore.vcproj/WebCore.vcproj: 25 * WebCore.xcodeproj/project.pbxproj: 26 * bindings/js/JSArrayBufferCustom.cpp: 27 * bindings/js/JSArrayBufferViewHelper.h: 28 * bindings/js/JSAudioContextCustom.cpp: 29 * bindings/js/JSFileReaderCustom.cpp: 30 * bindings/js/JSFloat32ArrayCustom.cpp: 31 * bindings/js/JSFloat64ArrayCustom.cpp: 32 * bindings/js/JSInt16ArrayCustom.cpp: 33 * bindings/js/JSInt32ArrayCustom.cpp: 34 * bindings/js/JSInt8ArrayCustom.cpp: 35 * bindings/js/JSUint16ArrayCustom.cpp: 36 * bindings/js/JSUint32ArrayCustom.cpp: 37 * bindings/js/JSUint8ArrayCustom.cpp: 38 * bindings/js/JSWaveShaperNodeCustom.cpp: 39 * bindings/js/JSWebGLRenderingContextCustom.cpp: 40 * bindings/js/JSXMLHttpRequestCustom.cpp: 41 * bindings/scripts/CodeGeneratorJS.pm: 42 (AddIncludesForType): 43 (GenerateHeader): 44 (NativeToJSValue): 45 * bindings/scripts/test/JS/JSFloat64Array.cpp: 46 * bindings/scripts/test/JS/JSFloat64Array.h: 47 * dom/MessageEvent.h: 48 * fileapi/FileReader.cpp: 49 * fileapi/FileReaderLoader.cpp: 50 * fileapi/FileReaderSync.cpp: 51 * fileapi/WebKitBlobBuilder.cpp: 52 * html/HTMLMediaElement.cpp: 53 * html/canvas/ArrayBuffer.h: Removed. 54 * html/canvas/ArrayBufferView.cpp: Removed. 55 * html/canvas/DataView.h: 56 * html/canvas/Float64Array.cpp: Removed. 57 * html/canvas/Int16Array.h: Removed. 58 * html/canvas/Int32Array.h: Removed. 59 * html/canvas/Int8Array.h: Removed. 60 * html/canvas/Uint16Array.h: Removed. 61 * html/canvas/Uint32Array.h: Removed. 62 * html/canvas/Uint8Array.cpp: Removed. 63 * html/canvas/WebGLBuffer.cpp: 64 * html/canvas/WebGLBuffer.h: 65 * html/canvas/WebGLGetInfo.cpp: 66 * html/canvas/WebGLGetInfo.h: 67 * html/canvas/WebGLRenderingContext.cpp: 68 * html/canvas/WebGLRenderingContext.h: 69 * page/Crypto.cpp: 70 * platform/graphics/GraphicsContext3D.cpp: 71 * platform/graphics/mac/GraphicsContext3DMac.mm: 72 * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: 73 * webaudio/AsyncAudioDecoder.cpp: 74 * webaudio/AudioBuffer.h: 75 * webaudio/AudioContext.cpp: 76 * webaudio/AudioParam.h: 77 * webaudio/AudioParamTimeline.h: 78 * webaudio/JavaScriptAudioNode.cpp: 79 * webaudio/RealtimeAnalyser.cpp: 80 * webaudio/WaveShaperProcessor.h: 81 * websockets/WebSocketChannel.cpp: 82 * websockets/WorkerThreadableWebSocketChannel.cpp: 83 * xml/XMLHttpRequest.cpp: 84 1 85 2011-11-28 Robert Hogan <robert@webkit.org> 2 86 -
trunk/Source/WebCore/GNUmakefile.list.am
r101288 r101295 1620 1620 Source/WebCore/html/ButtonInputType.cpp \ 1621 1621 Source/WebCore/html/ButtonInputType.h \ 1622 Source/WebCore/html/canvas/ArrayBuffer.cpp \1623 Source/WebCore/html/canvas/ArrayBuffer.h \1624 Source/WebCore/html/canvas/ArrayBufferView.cpp \1625 Source/WebCore/html/canvas/ArrayBufferView.h \1626 1622 Source/WebCore/html/canvas/CanvasContextAttributes.cpp \ 1627 1623 Source/WebCore/html/canvas/CanvasContextAttributes.h \ … … 1641 1637 Source/WebCore/html/canvas/DataView.cpp \ 1642 1638 Source/WebCore/html/canvas/DataView.h \ 1643 Source/WebCore/html/canvas/Float32Array.cpp \1644 Source/WebCore/html/canvas/Float32Array.h \1645 Source/WebCore/html/canvas/Float64Array.cpp \1646 Source/WebCore/html/canvas/Float64Array.h \1647 Source/WebCore/html/canvas/Int16Array.cpp \1648 Source/WebCore/html/canvas/Int16Array.h \1649 Source/WebCore/html/canvas/Int32Array.cpp \1650 Source/WebCore/html/canvas/Int32Array.h \1651 Source/WebCore/html/canvas/Int8Array.cpp \1652 Source/WebCore/html/canvas/Int8Array.h \1653 Source/WebCore/html/canvas/IntegralTypedArrayBase.h \1654 Source/WebCore/html/canvas/TypedArrayBase.h \1655 Source/WebCore/html/canvas/Uint16Array.cpp \1656 Source/WebCore/html/canvas/Uint16Array.h \1657 Source/WebCore/html/canvas/Uint32Array.cpp \1658 Source/WebCore/html/canvas/Uint32Array.h \1659 Source/WebCore/html/canvas/Uint8Array.cpp \1660 Source/WebCore/html/canvas/Uint8Array.h \1661 1639 Source/WebCore/html/DOMSettableTokenList.cpp \ 1662 1640 Source/WebCore/html/DOMSettableTokenList.h \ -
trunk/Source/WebCore/Target.pri
r101288 r101295 810 810 html/ValidityState.cpp \ 811 811 html/WeekInputType.cpp \ 812 html/canvas/ArrayBuffer.cpp \813 html/canvas/ArrayBufferView.cpp \814 812 html/canvas/CanvasGradient.cpp \ 815 813 html/canvas/CanvasPattern.cpp \ … … 819 817 html/canvas/CanvasStyle.cpp \ 820 818 html/canvas/DataView.cpp \ 821 html/canvas/Float32Array.cpp \822 html/canvas/Float64Array.cpp \823 html/canvas/Int16Array.cpp \824 html/canvas/Int32Array.cpp \825 html/canvas/Int8Array.cpp \826 html/canvas/Uint16Array.cpp \827 html/canvas/Uint32Array.cpp \828 html/canvas/Uint8Array.cpp \829 819 html/parser/CSSPreloadScanner.cpp \ 830 820 html/parser/HTMLConstructionSite.cpp \ … … 1752 1742 history/HistoryItem.h \ 1753 1743 history/PageCache.h \ 1754 html/canvas/ArrayBuffer.h \1755 html/canvas/ArrayBufferView.h \1756 1744 html/canvas/CanvasGradient.h \ 1757 1745 html/canvas/CanvasPattern.h \ … … 1761 1749 html/canvas/CanvasStyle.h \ 1762 1750 html/canvas/DataView.h \ 1763 html/canvas/Float32Array.h \1764 html/canvas/Float64Array.h \1765 html/canvas/Int16Array.h \1766 html/canvas/Int32Array.h \1767 html/canvas/Int8Array.h \1768 html/canvas/Uint16Array.h \1769 html/canvas/Uint32Array.h \1770 html/canvas/Uint8Array.h \1771 1751 html/ClassList.h \ 1772 1752 html/CollectionCache.h \ -
trunk/Source/WebCore/WebCore.gypi
r101288 r101295 5683 5683 'html/WeekInputType.cpp', 5684 5684 'html/WeekInputType.h', 5685 'html/canvas/ArrayBuffer.cpp',5686 'html/canvas/ArrayBuffer.h',5687 'html/canvas/ArrayBufferView.cpp',5688 'html/canvas/ArrayBufferView.h',5689 5685 'html/canvas/CanvasContextAttributes.cpp', 5690 5686 'html/canvas/CanvasContextAttributes.h', … … 5704 5700 'html/canvas/DataView.cpp', 5705 5701 'html/canvas/DataView.h', 5706 'html/canvas/Float32Array.cpp',5707 'html/canvas/Float32Array.h',5708 'html/canvas/Float64Array.cpp',5709 'html/canvas/Float64Array.h',5710 'html/canvas/Int16Array.cpp',5711 'html/canvas/Int16Array.h',5712 'html/canvas/Int32Array.cpp',5713 'html/canvas/Int32Array.h',5714 'html/canvas/Int8Array.cpp',5715 'html/canvas/Int8Array.h',5716 'html/canvas/IntegralTypedArrayBase.h',5717 5702 'html/canvas/OESStandardDerivatives.cpp', 5718 5703 'html/canvas/OESStandardDerivatives.h', … … 5721 5706 'html/canvas/OESVertexArrayObject.cpp', 5722 5707 'html/canvas/OESVertexArrayObject.h', 5723 'html/canvas/TypedArrayBase.h',5724 'html/canvas/Uint16Array.cpp',5725 'html/canvas/Uint16Array.h',5726 'html/canvas/Uint32Array.cpp',5727 'html/canvas/Uint32Array.h',5728 'html/canvas/Uint8Array.cpp',5729 'html/canvas/Uint8Array.h',5730 5708 'html/canvas/WebGLActiveInfo.h', 5731 5709 'html/canvas/WebGLBuffer.cpp', -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r101288 r101295 52959 52959 > 52960 52960 <File 52961 RelativePath="..\html\canvas\ArrayBuffer.cpp"52962 >52963 </File>52964 <File52965 RelativePath="..\html\canvas\ArrayBuffer.h"52966 >52967 </File>52968 <File52969 RelativePath="..\html\canvas\ArrayBufferView.cpp"52970 >52971 </File>52972 <File52973 RelativePath="..\html\canvas\ArrayBufferView.h"52974 >52975 </File>52976 <File52977 52961 RelativePath="..\fileapi\AsyncFileWriter.h" 52978 52962 > … … 53467 53451 </File> 53468 53452 <File 53469 RelativePath="..\html\canvas\Float32Array.cpp"53470 >53471 </File>53472 <File53473 RelativePath="..\html\canvas\Float32Array.h"53474 >53475 </File>53476 <File53477 RelativePath="..\html\canvas\Float64Array.cpp"53478 >53479 </File>53480 <File53481 RelativePath="..\html\canvas\Float64Array.h"53482 >53483 </File>53484 <File53485 53453 RelativePath="..\html\FormAssociatedElement.cpp" 53486 53454 > … … 57795 57763 </File> 57796 57764 <File 57797 RelativePath="..\html\canvas\Int16Array.cpp"57798 >57799 </File>57800 <File57801 RelativePath="..\html\canvas\Int16Array.h"57802 >57803 </File>57804 <File57805 RelativePath="..\html\canvas\Int32Array.cpp"57806 >57807 </File>57808 <File57809 RelativePath="..\html\canvas\Int32Array.h"57810 >57811 </File>57812 <File57813 RelativePath="..\html\canvas\Int8Array.cpp"57814 >57815 </File>57816 <File57817 RelativePath="..\html\canvas\Int8Array.h"57818 >57819 </File>57820 <File57821 57765 RelativePath="..\html\IsIndexInputType.cpp" 57822 57766 > … … 58020 57964 <File 58021 57965 RelativePath="..\html\TimeRanges.h" 58022 >58023 </File>58024 <File58025 RelativePath="..\html\canvas\UInt16Array.cpp"58026 >58027 </File>58028 <File58029 RelativePath="..\html\canvas\UInt16Array.h"58030 >58031 </File>58032 <File58033 RelativePath="..\html\canvas\UInt32Array.cpp"58034 >58035 </File>58036 <File58037 RelativePath="..\html\canvas\UInt32Array.h"58038 >58039 </File>58040 <File58041 RelativePath="..\html\canvas\UInt8Array.cpp"58042 >58043 </File>58044 <File58045 RelativePath="..\html\canvas\UInt8Array.h"58046 57966 > 58047 57967 </File> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r101288 r101295 1221 1221 49C7B9C81042D32F0009D447 /* WebGLBuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49C7B9A81042D32E0009D447 /* WebGLBuffer.cpp */; }; 1222 1222 49C7B9C91042D32F0009D447 /* WebGLBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 49C7B9A91042D32E0009D447 /* WebGLBuffer.h */; }; 1223 49C7B9CB1042D32F0009D447 /* Int8Array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49C7B9AB1042D32E0009D447 /* Int8Array.cpp */; };1224 49C7B9CC1042D32F0009D447 /* Int8Array.h in Headers */ = {isa = PBXBuildFile; fileRef = 49C7B9AC1042D32E0009D447 /* Int8Array.h */; };1225 1223 49C7B9CE1042D32F0009D447 /* WebGLFramebuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49C7B9AE1042D32E0009D447 /* WebGLFramebuffer.cpp */; }; 1226 1224 49C7B9CF1042D32F0009D447 /* WebGLFramebuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 49C7B9AF1042D32E0009D447 /* WebGLFramebuffer.h */; }; … … 1267 1265 49E912AD0EFAC906009D0CAF /* AnimationList.h in Headers */ = {isa = PBXBuildFile; fileRef = 49E912A80EFAC906009D0CAF /* AnimationList.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1268 1266 49E912AE0EFAC906009D0CAF /* TimingFunction.h in Headers */ = {isa = PBXBuildFile; fileRef = 49E912A90EFAC906009D0CAF /* TimingFunction.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1269 49EECDDF10503C2400099FAB /* ArrayBufferView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49EECDC710503C2300099FAB /* ArrayBufferView.cpp */; };1270 49EECDE010503C2400099FAB /* ArrayBufferView.h in Headers */ = {isa = PBXBuildFile; fileRef = 49EECDC810503C2300099FAB /* ArrayBufferView.h */; };1271 49EECDE210503C2400099FAB /* ArrayBuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49EECDCA10503C2300099FAB /* ArrayBuffer.cpp */; };1272 49EECDE310503C2400099FAB /* ArrayBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 49EECDCB10503C2300099FAB /* ArrayBuffer.h */; };1273 49EECDE510503C2400099FAB /* Float32Array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49EECDCD10503C2300099FAB /* Float32Array.cpp */; };1274 49EECDE610503C2400099FAB /* Float32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = 49EECDCE10503C2300099FAB /* Float32Array.h */; };1275 49EECDE810503C2400099FAB /* Int32Array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49EECDD010503C2300099FAB /* Int32Array.cpp */; };1276 49EECDE910503C2400099FAB /* Int32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = 49EECDD110503C2300099FAB /* Int32Array.h */; };1277 49EECDEB10503C2400099FAB /* Int16Array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49EECDD310503C2300099FAB /* Int16Array.cpp */; };1278 49EECDEC10503C2400099FAB /* Int16Array.h in Headers */ = {isa = PBXBuildFile; fileRef = 49EECDD410503C2300099FAB /* Int16Array.h */; };1279 49EECDEE10503C2400099FAB /* Uint8Array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49EECDD610503C2300099FAB /* Uint8Array.cpp */; };1280 49EECDEF10503C2400099FAB /* Uint8Array.h in Headers */ = {isa = PBXBuildFile; fileRef = 49EECDD710503C2300099FAB /* Uint8Array.h */; };1281 49EECDF110503C2400099FAB /* Uint32Array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49EECDD910503C2300099FAB /* Uint32Array.cpp */; };1282 49EECDF210503C2400099FAB /* Uint32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = 49EECDDA10503C2300099FAB /* Uint32Array.h */; };1283 49EECDF410503C2400099FAB /* Uint16Array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49EECDDC10503C2300099FAB /* Uint16Array.cpp */; };1284 49EECDF510503C2400099FAB /* Uint16Array.h in Headers */ = {isa = PBXBuildFile; fileRef = 49EECDDD10503C2400099FAB /* Uint16Array.h */; };1285 1267 49EECF00105070C400099FAB /* JSArrayBuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49EECEF2105070C400099FAB /* JSArrayBuffer.cpp */; }; 1286 1268 49EECF01105070C400099FAB /* JSArrayBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 49EECEF3105070C400099FAB /* JSArrayBuffer.h */; }; … … 1387 1369 508CCA4F13CF106B003151F3 /* RenderFlowThread.h in Headers */ = {isa = PBXBuildFile; fileRef = 508CCA4D13CF106B003151F3 /* RenderFlowThread.h */; }; 1388 1370 508CCA5013CF106B003151F3 /* RenderFlowThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 508CCA4E13CF106B003151F3 /* RenderFlowThread.cpp */; }; 1389 50B42158146976960087E604 /* WebKitCSSShaderValue.h in Headers */ = {isa = PBXBuildFile; fileRef = 50B42157146976960087E604 /* WebKitCSSShaderValue.h */; };1390 1371 50E566D6139E38C500214433 /* CSSWrapShapes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 501BAAB11395114B00F7ACEB /* CSSWrapShapes.cpp */; }; 1391 1372 510184690B08602A004A825F /* CachedPage.h in Headers */ = {isa = PBXBuildFile; fileRef = 510184670B08602A004A825F /* CachedPage.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 1730 1711 6E67D2A71280E8A4008758F7 /* Extensions3DOpenGL.h in Headers */ = {isa = PBXBuildFile; fileRef = 6E67D2A51280E8A4008758F7 /* Extensions3DOpenGL.h */; }; 1731 1712 6E67D2A91280E8BD008758F7 /* Extensions3D.h in Headers */ = {isa = PBXBuildFile; fileRef = 6E67D2A81280E8BD008758F7 /* Extensions3D.h */; }; 1732 6E96BB1C11986EE2007D94CD /* IntegralTypedArrayBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 6E96BB1A11986EE1007D94CD /* IntegralTypedArrayBase.h */; };1733 6E96BB1D11986EE2007D94CD /* TypedArrayBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 6E96BB1B11986EE1007D94CD /* TypedArrayBase.h */; };1734 6EBC5D81138B4C4E00A0CF8A /* Float64Array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6EBC5D7E138B4C4E00A0CF8A /* Float64Array.cpp */; };1735 6EBC5D82138B4C4E00A0CF8A /* Float64Array.h in Headers */ = {isa = PBXBuildFile; fileRef = 6EBC5D7F138B4C4E00A0CF8A /* Float64Array.h */; };1736 1713 6EBC5D85138B4CE000A0CF8A /* JSFloat64ArrayCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6EBC5D84138B4CE000A0CF8A /* JSFloat64ArrayCustom.cpp */; }; 1737 1714 6EBC5EAF138B50F200A0CF8A /* JSFloat64Array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6EBC5EAD138B50F200A0CF8A /* JSFloat64Array.cpp */; }; … … 8423 8400 49C7B9A91042D32E0009D447 /* WebGLBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebGLBuffer.h; path = canvas/WebGLBuffer.h; sourceTree = "<group>"; }; 8424 8401 49C7B9AA1042D32E0009D447 /* WebGLBuffer.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = WebGLBuffer.idl; path = canvas/WebGLBuffer.idl; sourceTree = "<group>"; }; 8425 49C7B9AB1042D32E0009D447 /* Int8Array.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Int8Array.cpp; path = canvas/Int8Array.cpp; sourceTree = "<group>"; };8426 49C7B9AC1042D32E0009D447 /* Int8Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Int8Array.h; path = canvas/Int8Array.h; sourceTree = "<group>"; };8427 8402 49C7B9AD1042D32E0009D447 /* Int8Array.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Int8Array.idl; path = canvas/Int8Array.idl; sourceTree = "<group>"; }; 8428 8403 49C7B9AE1042D32E0009D447 /* WebGLFramebuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebGLFramebuffer.cpp; path = canvas/WebGLFramebuffer.cpp; sourceTree = "<group>"; }; … … 8477 8452 49E912A80EFAC906009D0CAF /* AnimationList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AnimationList.h; path = animation/AnimationList.h; sourceTree = "<group>"; }; 8478 8453 49E912A90EFAC906009D0CAF /* TimingFunction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TimingFunction.h; path = animation/TimingFunction.h; sourceTree = "<group>"; }; 8479 49EECDC710503C2300099FAB /* ArrayBufferView.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ArrayBufferView.cpp; path = canvas/ArrayBufferView.cpp; sourceTree = "<group>"; };8480 49EECDC810503C2300099FAB /* ArrayBufferView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ArrayBufferView.h; path = canvas/ArrayBufferView.h; sourceTree = "<group>"; };8481 8454 49EECDC910503C2300099FAB /* ArrayBufferView.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = ArrayBufferView.idl; path = canvas/ArrayBufferView.idl; sourceTree = "<group>"; }; 8482 49EECDCA10503C2300099FAB /* ArrayBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ArrayBuffer.cpp; path = canvas/ArrayBuffer.cpp; sourceTree = "<group>"; };8483 49EECDCB10503C2300099FAB /* ArrayBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ArrayBuffer.h; path = canvas/ArrayBuffer.h; sourceTree = "<group>"; };8484 8455 49EECDCC10503C2300099FAB /* ArrayBuffer.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = ArrayBuffer.idl; path = canvas/ArrayBuffer.idl; sourceTree = "<group>"; }; 8485 49EECDCD10503C2300099FAB /* Float32Array.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Float32Array.cpp; path = canvas/Float32Array.cpp; sourceTree = "<group>"; };8486 49EECDCE10503C2300099FAB /* Float32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Float32Array.h; path = canvas/Float32Array.h; sourceTree = "<group>"; };8487 8456 49EECDCF10503C2300099FAB /* Float32Array.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Float32Array.idl; path = canvas/Float32Array.idl; sourceTree = "<group>"; }; 8488 49EECDD010503C2300099FAB /* Int32Array.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Int32Array.cpp; path = canvas/Int32Array.cpp; sourceTree = "<group>"; };8489 49EECDD110503C2300099FAB /* Int32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Int32Array.h; path = canvas/Int32Array.h; sourceTree = "<group>"; };8490 8457 49EECDD210503C2300099FAB /* Int32Array.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Int32Array.idl; path = canvas/Int32Array.idl; sourceTree = "<group>"; }; 8491 49EECDD310503C2300099FAB /* Int16Array.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Int16Array.cpp; path = canvas/Int16Array.cpp; sourceTree = "<group>"; };8492 49EECDD410503C2300099FAB /* Int16Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Int16Array.h; path = canvas/Int16Array.h; sourceTree = "<group>"; };8493 8458 49EECDD510503C2300099FAB /* Int16Array.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Int16Array.idl; path = canvas/Int16Array.idl; sourceTree = "<group>"; }; 8494 49EECDD610503C2300099FAB /* Uint8Array.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Uint8Array.cpp; path = canvas/Uint8Array.cpp; sourceTree = "<group>"; };8495 49EECDD710503C2300099FAB /* Uint8Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Uint8Array.h; path = canvas/Uint8Array.h; sourceTree = "<group>"; };8496 8459 49EECDD810503C2300099FAB /* Uint8Array.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Uint8Array.idl; path = canvas/Uint8Array.idl; sourceTree = "<group>"; }; 8497 49EECDD910503C2300099FAB /* Uint32Array.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Uint32Array.cpp; path = canvas/Uint32Array.cpp; sourceTree = "<group>"; };8498 49EECDDA10503C2300099FAB /* Uint32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Uint32Array.h; path = canvas/Uint32Array.h; sourceTree = "<group>"; };8499 8460 49EECDDB10503C2300099FAB /* Uint32Array.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Uint32Array.idl; path = canvas/Uint32Array.idl; sourceTree = "<group>"; }; 8500 49EECDDC10503C2300099FAB /* Uint16Array.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Uint16Array.cpp; path = canvas/Uint16Array.cpp; sourceTree = "<group>"; };8501 49EECDDD10503C2400099FAB /* Uint16Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Uint16Array.h; path = canvas/Uint16Array.h; sourceTree = "<group>"; };8502 8461 49EECDDE10503C2400099FAB /* Uint16Array.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Uint16Array.idl; path = canvas/Uint16Array.idl; sourceTree = "<group>"; }; 8503 8462 49EECEF2105070C400099FAB /* JSArrayBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSArrayBuffer.cpp; sourceTree = "<group>"; }; … … 8977 8936 6E67D2A51280E8A4008758F7 /* Extensions3DOpenGL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Extensions3DOpenGL.h; sourceTree = "<group>"; }; 8978 8937 6E67D2A81280E8BD008758F7 /* Extensions3D.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Extensions3D.h; sourceTree = "<group>"; }; 8979 6E96BB1A11986EE1007D94CD /* IntegralTypedArrayBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = IntegralTypedArrayBase.h; path = canvas/IntegralTypedArrayBase.h; sourceTree = "<group>"; };8980 6E96BB1B11986EE1007D94CD /* TypedArrayBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TypedArrayBase.h; path = canvas/TypedArrayBase.h; sourceTree = "<group>"; };8981 6EBC5D7E138B4C4E00A0CF8A /* Float64Array.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Float64Array.cpp; path = canvas/Float64Array.cpp; sourceTree = "<group>"; };8982 6EBC5D7F138B4C4E00A0CF8A /* Float64Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Float64Array.h; path = canvas/Float64Array.h; sourceTree = "<group>"; };8983 8938 6EBC5D80138B4C4E00A0CF8A /* Float64Array.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Float64Array.idl; path = canvas/Float64Array.idl; sourceTree = "<group>"; }; 8984 8939 6EBC5D84138B4CE000A0CF8A /* JSFloat64ArrayCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSFloat64ArrayCustom.cpp; sourceTree = "<group>"; }; … … 14924 14879 A0EE0DF0144F824300F80B0D /* WebGLDebugRendererInfo.idl */, 14925 14880 A0EE0DEF144F823200F80B0D /* WebGLDebugShaders.idl */, 14926 49EECDCA10503C2300099FAB /* ArrayBuffer.cpp */,14927 49EECDCB10503C2300099FAB /* ArrayBuffer.h */,14928 14881 49EECDCC10503C2300099FAB /* ArrayBuffer.idl */, 14929 49EECDC710503C2300099FAB /* ArrayBufferView.cpp */,14930 49EECDC810503C2300099FAB /* ArrayBufferView.h */,14931 14882 49EECDC910503C2300099FAB /* ArrayBufferView.idl */, 14932 14883 6E4E91A710F7FB3100A2779C /* CanvasContextAttributes.cpp */, … … 14953 14904 2E97CCE812939CB800C5C8FF /* DataView.h */, 14954 14905 2E97CCE912939CB800C5C8FF /* DataView.idl */, 14955 49EECDCD10503C2300099FAB /* Float32Array.cpp */,14956 49EECDCE10503C2300099FAB /* Float32Array.h */,14957 14906 49EECDCF10503C2300099FAB /* Float32Array.idl */, 14958 6EBC5D7E138B4C4E00A0CF8A /* Float64Array.cpp */,14959 6EBC5D7F138B4C4E00A0CF8A /* Float64Array.h */,14960 14907 6EBC5D80138B4C4E00A0CF8A /* Float64Array.idl */, 14961 49EECDD310503C2300099FAB /* Int16Array.cpp */,14962 49EECDD410503C2300099FAB /* Int16Array.h */,14963 14908 49EECDD510503C2300099FAB /* Int16Array.idl */, 14964 49EECDD010503C2300099FAB /* Int32Array.cpp */,14965 49EECDD110503C2300099FAB /* Int32Array.h */,14966 14909 49EECDD210503C2300099FAB /* Int32Array.idl */, 14967 49C7B9AB1042D32E0009D447 /* Int8Array.cpp */,14968 49C7B9AC1042D32E0009D447 /* Int8Array.h */,14969 14910 49C7B9AD1042D32E0009D447 /* Int8Array.idl */, 14970 6E96BB1A11986EE1007D94CD /* IntegralTypedArrayBase.h */,14971 14911 9001773D12E0347800648462 /* OESStandardDerivatives.cpp */, 14972 14912 9001773E12E0347800648462 /* OESStandardDerivatives.h */, … … 14978 14918 77A17A6F12F28182004E02F6 /* OESVertexArrayObject.h */, 14979 14919 77A17A7012F28182004E02F6 /* OESVertexArrayObject.idl */, 14980 6E96BB1B11986EE1007D94CD /* TypedArrayBase.h */,14981 49EECDDC10503C2300099FAB /* Uint16Array.cpp */,14982 49EECDDD10503C2400099FAB /* Uint16Array.h */,14983 14920 49EECDDE10503C2400099FAB /* Uint16Array.idl */, 14984 49EECDD910503C2300099FAB /* Uint32Array.cpp */,14985 49EECDDA10503C2300099FAB /* Uint32Array.h */,14986 14921 49EECDDB10503C2300099FAB /* Uint32Array.idl */, 14987 49EECDD610503C2300099FAB /* Uint8Array.cpp */,14988 49EECDD710503C2300099FAB /* Uint8Array.h */,14989 14922 49EECDD810503C2300099FAB /* Uint8Array.idl */, 14990 14923 A7D20F6B107F438B00A80392 /* WebGLActiveInfo.h */, … … 21791 21724 512DD8F80D91E6AF000F89EE /* ArchiveResourceCollection.h in Headers */, 21792 21725 BCFB2F77097A2E1A00BA703D /* Arena.h in Headers */, 21793 49EECDE310503C2400099FAB /* ArrayBuffer.h in Headers */,21794 49EECDE010503C2400099FAB /* ArrayBufferView.h in Headers */,21795 21726 FD5686CA13AC180200B69C68 /* AsyncAudioDecoder.h in Headers */, 21796 21727 2EF1BFF7121CB0BD00C27627 /* AsyncFileStream.h in Headers */, … … 22821 22752 372C00D9129619F8005C9575 /* FindOptions.h in Headers */, 22822 22753 A8CFF04F0A154F09000A4234 /* FixedTableLayout.h in Headers */, 22823 49EECDE610503C2400099FAB /* Float32Array.h in Headers */,22824 6EBC5D82138B4C4E00A0CF8A /* Float64Array.h in Headers */,22825 22754 BC073BAA0C399B1F000F5979 /* FloatConversion.h in Headers */, 22826 22755 B27535690B053814002CE64F /* FloatPoint.h in Headers */, … … 23134 23063 F375CC071150D300008DDB81 /* InspectorWorkerResource.h in Headers */, 23135 23064 F3ABFE0C130E9DA000E7F7D1 /* InstrumentingAgents.h in Headers */, 23136 49EECDEC10503C2400099FAB /* Int16Array.h in Headers */,23137 49EECDE910503C2400099FAB /* Int32Array.h in Headers */,23138 49C7B9CC1042D32F0009D447 /* Int8Array.h in Headers */,23139 6E96BB1C11986EE2007D94CD /* IntegralTypedArrayBase.h in Headers */,23140 23065 B27535720B053814002CE64F /* IntPoint.h in Headers */, 23141 23066 E462A4A1113E71BE004A4220 /* IntPointHash.h in Headers */, … … 24550 24475 1419D2C50CEA6F6100FF507A /* TreeShared.h in Headers */, 24551 24476 854FE7390A2297BE0058D7AD /* TreeWalker.h in Headers */, 24552 6E96BB1D11986EE2007D94CD /* TypedArrayBase.h in Headers */,24553 24477 37C28A6810F659CC008C7813 /* TypesettingFeatures.h in Headers */, 24554 24478 93309E1A099E64920056E581 /* TypingCommand.h in Headers */, 24555 24479 85031B4E0A44EFC700F992E0 /* UIEvent.h in Headers */, 24556 24480 85031B4F0A44EFC700F992E0 /* UIEventWithKeyState.h in Headers */, 24557 49EECDF510503C2400099FAB /* Uint16Array.h in Headers */,24558 49EECDF210503C2400099FAB /* Uint32Array.h in Headers */,24559 49EECDEF10503C2400099FAB /* Uint8Array.h in Headers */,24560 24481 A863E2011343412000274926 /* UnicodeBidi.h in Headers */, 24561 24482 B2C3DA4D0D006C1D00EF6F26 /* UnicodeRange.h in Headers */, … … 25188 25109 512DD8F70D91E6AF000F89EE /* ArchiveResourceCollection.cpp in Sources */, 25189 25110 BCFB2F76097A2E1A00BA703D /* Arena.cpp in Sources */, 25190 49EECDE210503C2400099FAB /* ArrayBuffer.cpp in Sources */,25191 49EECDDF10503C2400099FAB /* ArrayBufferView.cpp in Sources */,25192 25111 FD5686C913AC180200B69C68 /* AsyncAudioDecoder.cpp in Sources */, 25193 25112 89D08D9F12228451001241DF /* AsyncFileSystem.cpp in Sources */, … … 25839 25758 08C925190FCC7C4A00480DEC /* FilterEffect.cpp in Sources */, 25840 25759 A8CFF04D0A154F09000A4234 /* FixedTableLayout.cpp in Sources */, 25841 49EECDE510503C2400099FAB /* Float32Array.cpp in Sources */,25842 6EBC5D81138B4C4E00A0CF8A /* Float64Array.cpp in Sources */,25843 25760 B27535680B053814002CE64F /* FloatPoint.cpp in Sources */, 25844 25761 B2E27C9F0B0F2B0900F17C7B /* FloatPoint3D.cpp in Sources */, … … 26116 26033 F3810C1B1365A49600ED6E33 /* InspectorWorkerAgent.cpp in Sources */, 26117 26034 F350B73513F1377D00880C43 /* InstrumentingAgents.cpp in Sources */, 26118 49EECDEB10503C2400099FAB /* Int16Array.cpp in Sources */,26119 49EECDE810503C2400099FAB /* Int32Array.cpp in Sources */,26120 49C7B9CB1042D32F0009D447 /* Int8Array.cpp in Sources */,26121 26035 B27535600B053814002CE64F /* IntPointCG.cpp in Sources */, 26122 26036 B275357C0B053814002CE64F /* IntPointMac.mm in Sources */, … … 27467 27381 85031B4D0A44EFC700F992E0 /* UIEvent.cpp in Sources */, 27468 27382 93354A3C0B24F8C9003F6DEA /* UIEventWithKeyState.cpp in Sources */, 27469 49EECDF410503C2400099FAB /* Uint16Array.cpp in Sources */,27470 49EECDF110503C2400099FAB /* Uint32Array.cpp in Sources */,27471 49EECDEE10503C2400099FAB /* Uint8Array.cpp in Sources */,27472 27383 B2C3DA4C0D006C1D00EF6F26 /* UnicodeRange.cpp in Sources */, 27473 27384 D086FE9909D53AAB005BC74D /* UnlinkCommand.cpp in Sources */, -
trunk/Source/WebCore/bindings/js/JSArrayBufferCustom.cpp
r78407 r101295 27 27 #include "JSArrayBuffer.h" 28 28 29 #include "ArrayBuffer.h"30 29 #include "ExceptionCode.h" 31 30 #include <runtime/Error.h> 31 #include <wtf/ArrayBuffer.h> 32 32 33 33 namespace WebCore { -
trunk/Source/WebCore/bindings/js/JSArrayBufferViewHelper.h
r100227 r101295 28 28 #define JSArrayBufferViewHelper_h 29 29 30 #include "ArrayBufferView.h"31 30 #include "ExceptionCode.h" 32 31 #include "JSArrayBuffer.h" … … 37 36 #include <runtime/JSObject.h> 38 37 #include <runtime/JSValue.h> 38 #include <wtf/ArrayBufferView.h> 39 39 40 40 namespace WebCore { -
trunk/Source/WebCore/bindings/js/JSAudioContextCustom.cpp
r100006 r101295 29 29 #include "AudioContext.h" 30 30 31 #include "ArrayBuffer.h"32 31 #include "AudioBuffer.h" 33 32 #include "JSArrayBuffer.h" … … 35 34 #include "JSAudioContext.h" 36 35 #include <runtime/Error.h> 36 #include <wtf/ArrayBuffer.h> 37 37 38 38 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSFileReaderCustom.cpp
r95901 r101295 35 35 #include "JSFileReader.h" 36 36 37 #include "ArrayBuffer.h"38 37 #include "FileReader.h" 39 38 #include "JSArrayBuffer.h" 39 #include <wtf/ArrayBuffer.h> 40 40 41 41 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSFloat32ArrayCustom.cpp
r78407 r101295 27 27 #include "JSFloat32Array.h" 28 28 29 #include "Float32Array.h"30 29 #include "JSArrayBufferViewHelper.h" 30 #include <wtf/Float32Array.h> 31 31 32 32 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSFloat64ArrayCustom.cpp
r95901 r101295 27 27 #include "JSFloat64Array.h" 28 28 29 #include "Float64Array.h"30 29 #include "JSArrayBufferViewHelper.h" 30 #include <wtf/Float64Array.h> 31 31 32 32 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSInt16ArrayCustom.cpp
r78407 r101295 27 27 #include "JSInt16Array.h" 28 28 29 #include "Int16Array.h"30 29 #include "JSArrayBufferViewHelper.h" 30 #include <wtf/Int16Array.h> 31 31 32 32 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSInt32ArrayCustom.cpp
r78407 r101295 27 27 #include "JSInt32Array.h" 28 28 29 #include "Int32Array.h"30 29 #include "JSArrayBufferViewHelper.h" 30 #include <wtf/Int32Array.h> 31 31 32 32 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSInt8ArrayCustom.cpp
r78407 r101295 27 27 #include "JSInt8Array.h" 28 28 29 #include "Int8Array.h"30 29 #include "JSArrayBufferViewHelper.h" 31 30 #include <runtime/Error.h> 31 #include <wtf/Int8Array.h> 32 32 33 33 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSUint16ArrayCustom.cpp
r78407 r101295 28 28 29 29 #include "JSArrayBufferViewHelper.h" 30 #include "Uint16Array.h"30 #include <wtf/Uint16Array.h> 31 31 32 32 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSUint32ArrayCustom.cpp
r78407 r101295 28 28 29 29 #include "JSArrayBufferViewHelper.h" 30 #include "Uint32Array.h"30 #include <wtf/Uint32Array.h> 31 31 32 32 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSUint8ArrayCustom.cpp
r78407 r101295 28 28 29 29 #include "JSArrayBufferViewHelper.h" 30 #include "Uint8Array.h"30 #include <wtf/Uint8Array.h> 31 31 32 32 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSWaveShaperNodeCustom.cpp
r95901 r101295 29 29 #include "WaveShaperNode.h" 30 30 31 #include "Float32Array.h"32 31 #include "JSFloat32Array.h" 33 32 #include "JSWaveShaperNode.h" 33 #include <wtf/Float32Array.h> 34 34 35 35 using namespace JSC; -
trunk/Source/WebCore/bindings/js/JSWebGLRenderingContextCustom.cpp
r100191 r101295 31 31 32 32 #include "ExceptionCode.h" 33 #include "Float32Array.h"34 33 #include "HTMLCanvasElement.h" 35 34 #include "HTMLImageElement.h" 36 #include "Int32Array.h"37 35 #include "JSFloat32Array.h" 38 36 #include "JSHTMLCanvasElement.h" … … 71 69 #include <runtime/JSArray.h> 72 70 #include <wtf/FastMalloc.h> 71 #include <wtf/Float32Array.h> 72 #include <wtf/Int32Array.h> 73 73 #include <wtf/OwnFastMallocPtr.h> 74 74 -
trunk/Source/WebCore/bindings/js/JSXMLHttpRequestCustom.cpp
r100006 r101295 30 30 #include "JSXMLHttpRequest.h" 31 31 32 #include "ArrayBuffer.h"33 32 #include "Blob.h" 34 33 #include "DOMFormData.h" … … 50 49 #include <runtime/Error.h> 51 50 #include <interpreter/Interpreter.h> 51 #include <wtf/ArrayBuffer.h> 52 52 53 53 using namespace JSC; -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r101102 r101295 297 297 } elsif ($isCallback) { 298 298 $includesRef->{"JS${type}.h"} = 1; 299 } elsif (IsTypedArrayType($type)) { 300 $includesRef->{"<wtf/${type}.h>"} = 1; 299 301 } else { 300 302 # default, include the same named file … … 692 694 693 695 if ($hasParent && $dataNode->extendedAttributes->{"GenerateNativeConverter"}) { 694 $headerIncludes{"$implClassName.h"} = 1; 696 if (IsTypedArrayType($implClassName)) { 697 $headerIncludes{"<wtf/$implClassName.h>"} = 1; 698 } else { 699 $headerIncludes{"$implClassName.h"} = 1; 700 } 695 701 } 696 702 … … 2885 2891 # Default, include header with same name. 2886 2892 AddToImplIncludes("JS$type.h", $conditional); 2887 AddToImplIncludes("$type.h", $conditional) if not $codeGenerator->AvoidInclusionOfType($type); 2893 if (IsTypedArrayType($type)) { 2894 AddToImplIncludes("<wtf/$type.h>", $conditional) if not $codeGenerator->AvoidInclusionOfType($type); 2895 } else { 2896 AddToImplIncludes("$type.h", $conditional) if not $codeGenerator->AvoidInclusionOfType($type); 2897 } 2888 2898 } 2889 2899 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r101184 r101295 155 155 # When we're finished with the one-file-per-class 156 156 # reorganization, we won't need these special cases. 157 if (IsTypedArrayType($type)) { 158 AddToImplIncludes("wtf/${type}.h"); 159 return; 160 } 157 161 if (!$codeGenerator->IsPrimitiveType($type) and !$codeGenerator->IsStringType($type) and !$codeGenerator->AvoidInclusionOfType($type) and $type ne "Date") { 158 162 # default, include the same named file … … 538 542 $className =~ s/Abs|Rel//; 539 543 } 544 return "wtf/${className}.h" if IsTypedArrayType($className); 540 545 return "" if ($codeGenerator->AvoidInclusionOfType($className)); 541 546 return "${className}.h"; -
trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMFloat64Array.cpp
r100882 r101295 22 22 #include "WebDOMFloat64Array.h" 23 23 24 #include "Float32Array.h" 24 25 #include "Float64Array.h" 26 #include "WebDOMFloat32Array.h" 25 27 #include "WebExceptionHandler.h" 26 28 #include <wtf/GetPtr.h> … … 42 44 } 43 45 46 void WebDOMFloat64Array::foo(const WebDOMFloat32Array& array) 47 { 48 if (!impl()) 49 return; 50 51 impl()->foo(toWebCore(array)); 52 } 53 44 54 WTF::Float64Array* toWebCore(const WebDOMFloat64Array& wrapper) 45 55 { -
trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMFloat64Array.h
r100882 r101295 31 31 }; 32 32 33 class WebDOMFloat32Array; 33 34 34 35 class WebDOMFloat64Array : public WebDOMArrayBufferView { … … 38 39 virtual ~WebDOMFloat64Array() { } 39 40 41 void foo(const WebDOMFloat32Array& array); 40 42 41 43 WTF::Float64Array* impl() const; -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMFloat64Array.cpp
r100227 r101295 30 30 #include "WebKitDOMBinding.h" 31 31 #include "gobject/ConvertToUTF8String.h" 32 #include "webkit/WebKitDOMFloat32Array.h" 33 #include "webkit/WebKitDOMFloat32ArrayPrivate.h" 32 34 #include "webkit/WebKitDOMFloat64Array.h" 33 35 #include "webkit/WebKitDOMFloat64ArrayPrivate.h" … … 49 51 50 52 } // namespace WebKit // 53 54 void 55 webkit_dom_float64array_foo(WebKitDOMFloat64Array* self, WebKitDOMFloat32Array* array) 56 { 57 g_return_if_fail(self); 58 WebCore::JSMainThreadNullState state; 59 WebCore::Float64Array * item = WebKit::core(self); 60 g_return_if_fail(array); 61 WebCore::Float32Array * converted_array = NULL; 62 if (array != NULL) { 63 converted_array = WebKit::core(array); 64 g_return_if_fail(converted_array); 65 } 66 item->foo(converted_array); 67 } 51 68 52 69 -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMFloat64Array.h
r100227 r101295 47 47 webkit_dom_float64array_get_type (void); 48 48 49 /** 50 * webkit_dom_float64array_foo: 51 * @self: A #WebKitDOMFloat64Array 52 * @array: A #WebKitDOMFloat32Array 53 * 54 * Returns: 55 * 56 **/ 57 WEBKIT_API void 58 webkit_dom_float64array_foo(WebKitDOMFloat64Array* self, WebKitDOMFloat32Array* array); 59 49 60 G_END_DECLS 50 61 -
trunk/Source/WebCore/bindings/scripts/test/JS/JSFloat64Array.cpp
r101099 r101295 22 22 #include "JSFloat64Array.h" 23 23 24 #include "Float64Array.h" 24 #include "ExceptionCode.h" 25 #include "JSDOMBinding.h" 26 #include "JSFloat32Array.h" 27 #include <runtime/Error.h> 25 28 #include <runtime/PropertyNameArray.h> 29 #include <wtf/Float64Array.h> 26 30 #include <wtf/GetPtr.h> 27 31 … … 115 119 static const HashTableValue JSFloat64ArrayPrototypeTableValues[] = 116 120 { 121 { "foo", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsFloat64ArrayPrototypeFunctionFoo), (intptr_t)1 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }, 117 122 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) } 118 123 }; 119 124 120 125 #undef THUNK_GENERATOR 121 static const HashTable JSFloat64ArrayPrototypeTable = { 1, 0, JSFloat64ArrayPrototypeTableValues, 0 };126 static const HashTable JSFloat64ArrayPrototypeTable = { 2, 1, JSFloat64ArrayPrototypeTableValues, 0 }; 122 127 static const HashTable* getJSFloat64ArrayPrototypeTable(ExecState* exec) 123 128 { … … 130 135 { 131 136 return getDOMPrototype<JSFloat64Array>(exec, globalObject); 137 } 138 139 bool JSFloat64ArrayPrototype::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 140 { 141 JSFloat64ArrayPrototype* thisObject = jsCast<JSFloat64ArrayPrototype*>(cell); 142 return getStaticFunctionSlot<JSObject>(exec, getJSFloat64ArrayPrototypeTable(exec), thisObject, propertyName, slot); 143 } 144 145 bool JSFloat64ArrayPrototype::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) 146 { 147 JSFloat64ArrayPrototype* thisObject = jsCast<JSFloat64ArrayPrototype*>(object); 148 return getStaticFunctionDescriptor<JSObject>(exec, getJSFloat64ArrayPrototypeTable(exec), thisObject, propertyName, descriptor); 132 149 } 133 150 … … 233 250 } 234 251 252 EncodedJSValue JSC_HOST_CALL jsFloat64ArrayPrototypeFunctionFoo(ExecState* exec) 253 { 254 JSValue thisValue = exec->hostThisValue(); 255 if (!thisValue.inherits(&JSFloat64Array::s_info)) 256 return throwVMTypeError(exec); 257 JSFloat64Array* castedThis = static_cast<JSFloat64Array*>(asObject(thisValue)); 258 ASSERT_GC_OBJECT_INHERITS(castedThis, &JSFloat64Array::s_info); 259 Float64Array* imp = static_cast<Float64Array*>(castedThis->impl()); 260 if (exec->argumentCount() < 1) 261 return throwVMError(exec, createTypeError(exec, "Not enough arguments")); 262 Float32Array* array(toFloat32Array(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined))); 263 if (exec->hadException()) 264 return JSValue::encode(jsUndefined()); 265 imp->foo(array); 266 return JSValue::encode(jsUndefined()); 267 } 268 235 269 236 270 JSValue JSFloat64Array::getByIndex(ExecState*, unsigned index) -
trunk/Source/WebCore/bindings/scripts/test/JS/JSFloat64Array.h
r100227 r101295 22 22 #define JSFloat64Array_h 23 23 24 #include "Float64Array.h"25 24 #include "JSArrayBufferView.h" 26 25 #include "JSDOMBinding.h" 27 26 #include <runtime/JSObject.h> 27 #include <wtf/Float64Array.h> 28 28 29 29 namespace WebCore { … … 81 81 82 82 static const JSC::ClassInfo s_info; 83 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); 84 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); 83 85 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) 84 86 { … … 89 91 JSFloat64ArrayPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { } 90 92 protected: 91 static const unsigned StructureFlags = Base::StructureFlags;93 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; 92 94 }; 93 95 … … 119 121 }; 120 122 123 // Functions 124 125 JSC::EncodedJSValue JSC_HOST_CALL jsFloat64ArrayPrototypeFunctionFoo(JSC::ExecState*); 121 126 // Attributes 122 127 -
trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMFloat64Array.h
r100227 r101295 29 29 #if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST 30 30 31 @class DOMFloat32Array; 32 31 33 @interface DOMFloat64Array : DOMArrayBufferView 34 - (void)foo:(DOMFloat32Array *)array; 32 35 @end 33 36 -
trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMFloat64Array.mm
r100227 r101295 34 34 #import "DOMCSSValueInternal.h" 35 35 #import "DOMEventInternal.h" 36 #import "DOMFloat32ArrayInternal.h" 36 37 #import "DOMFloat64ArrayInternal.h" 37 38 #import "DOMNodeInternal.h" 38 39 #import "DOMStyleSheetInternal.h" 39 40 #import "ExceptionHandlers.h" 41 #import "Float32Array.h" 40 42 #import "Float64Array.h" 41 43 #import "JSMainThreadExecState.h" … … 47 49 48 50 @implementation DOMFloat64Array 51 52 - (void)foo:(DOMFloat32Array *)array 53 { 54 WebCore::JSMainThreadNullState state; 55 IMPL->foo(core(array)); 56 } 49 57 50 58 @end -
trunk/Source/WebCore/bindings/scripts/test/TestTypedArray.idl
r100227 r101295 35 35 DontCheckEnums 36 36 ] Float64Array : ArrayBufferView { 37 void foo(in Float32Array array); 37 38 }; 38 39 } -
trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.cpp
r101099 r101295 22 22 #include "V8Float64Array.h" 23 23 24 #include "ExceptionCode.h" 24 25 #include "RuntimeEnabledFeatures.h" 25 26 #include "V8ArrayBufferView.h" 26 27 #include "V8Binding.h" 28 #include "V8BindingMacros.h" 27 29 #include "V8BindingState.h" 28 30 #include "V8DOMWrapper.h" 31 #include "V8Float32Array.h" 29 32 #include "V8IsolatedContext.h" 30 33 #include "V8Proxy.h" 34 #include <wtf/Float32Array.h> 35 #include <wtf/Float64Array.h> 31 36 #include <wtf/UnusedParam.h> 32 37 … … 38 43 39 44 template <typename T> void V8_USE(T) { } 45 46 static v8::Handle<v8::Value> fooCallback(const v8::Arguments& args) 47 { 48 INC_STATS("DOM.Float64Array.foo"); 49 if (args.Length() < 1) 50 return throwError("Not enough arguments", V8Proxy::TypeError); 51 Float64Array* imp = V8Float64Array::toNative(args.Holder()); 52 EXCEPTION_BLOCK(Float32Array*, array, V8Float32Array::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8Float32Array::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0); 53 imp->foo(array); 54 return v8::Handle<v8::Value>(); 55 } 40 56 41 57 } // namespace Float64ArrayInternal … … 51 67 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 52 68 desc->SetCallHandler(V8Float64Array::constructorCallback); 69 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); 70 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); 71 UNUSED_PARAM(instance); // In some cases, it will not be used. 72 UNUSED_PARAM(proto); // In some cases, it will not be used. 53 73 74 75 // Custom Signature 'foo' 76 const int fooArgc = 1; 77 v8::Handle<v8::FunctionTemplate> fooArgv[fooArgc] = { V8Float32Array::GetRawTemplate() }; 78 v8::Handle<v8::Signature> fooSignature = v8::Signature::New(desc, fooArgc, fooArgv); 79 proto->Set(v8::String::New("foo"), v8::FunctionTemplate::New(Float64ArrayInternal::fooCallback, v8::Handle<v8::Value>(), fooSignature)); 54 80 55 81 // Custom toString template -
trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.h
r100227 r101295 22 22 #define V8Float64Array_h 23 23 24 #include "Float64Array.h"25 24 #include "V8ArrayBufferView.h" 26 25 #include "V8DOMWrapper.h" 27 26 #include "WrapperTypeInfo.h" 28 27 #include <v8.h> 28 #include <wtf/Float64Array.h> 29 29 #include <wtf/HashMap.h> 30 30 #include <wtf/text/StringHash.h> -
trunk/Source/WebCore/dom/MessageEvent.h
r98146 r101295 29 29 #define MessageEvent_h 30 30 31 #include "ArrayBuffer.h"32 31 #include "Blob.h" 33 32 #include "DOMWindow.h" … … 36 35 #include "ScriptValue.h" 37 36 #include "SerializedScriptValue.h" 37 #include <wtf/ArrayBuffer.h> 38 38 39 39 namespace WebCore { -
trunk/Source/WebCore/fileapi/FileReader.cpp
r98388 r101295 35 35 #include "FileReader.h" 36 36 37 #include "ArrayBuffer.h"38 37 #include "CrossThreadTask.h" 39 38 #include "File.h" … … 42 41 #include "ProgressEvent.h" 43 42 #include "ScriptExecutionContext.h" 43 #include <wtf/ArrayBuffer.h> 44 44 #include <wtf/CurrentTime.h> 45 45 #include <wtf/text/CString.h> -
trunk/Source/WebCore/fileapi/FileReaderLoader.cpp
r95901 r101295 35 35 #include "FileReaderLoader.h" 36 36 37 #include "ArrayBuffer.h"38 37 #include "Base64.h" 39 38 #include "Blob.h" … … 46 45 #include "ThreadableBlobRegistry.h" 47 46 #include "ThreadableLoader.h" 47 #include <wtf/ArrayBuffer.h> 48 48 #include <wtf/PassRefPtr.h> 49 49 #include <wtf/RefPtr.h> -
trunk/Source/WebCore/fileapi/FileReaderSync.cpp
r95901 r101295 35 35 #include "FileReaderSync.h" 36 36 37 #include "ArrayBuffer.h"38 37 #include "Blob.h" 39 38 #include "BlobURL.h" 40 39 #include "FileException.h" 41 40 #include "FileReaderLoader.h" 41 #include <wtf/ArrayBuffer.h> 42 42 #include <wtf/PassRefPtr.h> 43 43 -
trunk/Source/WebCore/fileapi/WebKitBlobBuilder.cpp
r95901 r101295 33 33 #include "WebKitBlobBuilder.h" 34 34 35 #include "ArrayBuffer.h"36 35 #include "Blob.h" 37 36 #include "ExceptionCode.h" … … 39 38 #include "LineEnding.h" 40 39 #include "TextEncoding.h" 40 #include <wtf/ArrayBuffer.h> 41 41 #include <wtf/PassRefPtr.h> 42 42 #include <wtf/Vector.h> -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r100453 r101295 72 72 #include "TimeRanges.h" 73 73 #include "UUID.h" 74 #include "Uint8Array.h"75 74 #include <limits> 76 75 #include <wtf/CurrentTime.h> 77 76 #include <wtf/MathExtras.h> 77 #include <wtf/Uint8Array.h> 78 78 #include <wtf/text/CString.h> 79 79 -
trunk/Source/WebCore/html/canvas/DataView.h
r101064 r101295 27 27 #define DataView_h 28 28 29 #include "ArrayBufferView.h"29 #include <wtf/ArrayBufferView.h> 30 30 #include <wtf/PassRefPtr.h> 31 31 -
trunk/Source/WebCore/html/canvas/WebGLBuffer.cpp
r95901 r101295 30 30 #include "WebGLBuffer.h" 31 31 32 #include "ArrayBufferView.h"33 32 #include "CheckedInt.h" 34 33 #include "WebGLRenderingContext.h" 34 #include <wtf/ArrayBufferView.h> 35 35 36 36 namespace WebCore { -
trunk/Source/WebCore/html/canvas/WebGLBuffer.h
r100227 r101295 27 27 #define WebGLBuffer_h 28 28 29 #include "ArrayBuffer.h"30 29 #include "WebGLObject.h" 31 30 31 #include <wtf/ArrayBuffer.h> 32 32 #include <wtf/Forward.h> 33 33 #include <wtf/PassRefPtr.h> -
trunk/Source/WebCore/html/canvas/WebGLGetInfo.cpp
r95901 r101295 31 31 #include "WebGLGetInfo.h" 32 32 33 #include "Float32Array.h"34 #include "Int32Array.h"35 #include "Uint8Array.h"36 33 #include "WebGLBuffer.h" 37 34 #include "WebGLFramebuffer.h" … … 40 37 #include "WebGLTexture.h" 41 38 #include "WebGLVertexArrayObjectOES.h" 39 #include <wtf/Float32Array.h> 40 #include <wtf/Int32Array.h> 41 #include <wtf/Uint8Array.h> 42 42 43 43 namespace WebCore { -
trunk/Source/WebCore/html/canvas/WebGLGetInfo.h
r96726 r101295 28 28 #define WebGLGetInfo_h 29 29 30 #include "Float32Array.h"31 #include "Int32Array.h"32 30 #include "PlatformString.h" 33 #include "Uint8Array.h"34 31 #include "WebGLBuffer.h" 35 32 #include "WebGLFramebuffer.h" … … 39 36 #include "WebGLVertexArrayObjectOES.h" 40 37 38 #include <wtf/Float32Array.h> 39 #include <wtf/Int32Array.h> 41 40 #include <wtf/PassRefPtr.h> 42 41 #include <wtf/RefPtr.h> 42 #include <wtf/Uint8Array.h> 43 43 44 44 namespace WebCore { -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
r101120 r101295 53 53 #include "RenderLayer.h" 54 54 #include "Settings.h" 55 #include "Uint16Array.h"56 55 #include "WebGLActiveInfo.h" 57 56 #include "WebGLBuffer.h" … … 71 70 #include <wtf/OwnArrayPtr.h> 72 71 #include <wtf/PassOwnArrayPtr.h> 72 #include <wtf/Uint16Array.h> 73 73 #include <wtf/text/StringBuilder.h> 74 74 -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.h
r100191 r101295 29 29 #include "CanvasRenderingContext.h" 30 30 #include "DrawingBuffer.h" 31 #include "Float32Array.h"32 31 #include "GraphicsContext3D.h" 33 #include "Int32Array.h"34 32 #include "PlatformString.h" 35 33 #include "Timer.h" 36 #include "Uint8Array.h"37 34 #include "WebGLGetInfo.h" 38 35 36 #include <wtf/Float32Array.h> 37 #include <wtf/Int32Array.h> 39 38 #include <wtf/OwnArrayPtr.h> 39 #include <wtf/Uint8Array.h> 40 40 41 41 namespace WebCore { -
trunk/Source/WebCore/page/Crypto.cpp
r95901 r101295 32 32 33 33 #include "ExceptionCode.h" 34 #include "Uint8Array.h"34 #include <wtf/Uint8Array.h> 35 35 #include <wtf/CryptographicallyRandomNumber.h> 36 36 -
trunk/Source/WebCore/platform/graphics/GraphicsContext3D.cpp
r100032 r101295 31 31 #include "GraphicsContext3D.h" 32 32 33 #include "ArrayBufferView.h"34 33 #include "CheckedInt.h" 35 34 #include "DrawingBuffer.h" … … 39 38 #include "ImageObserver.h" 40 39 40 #include <wtf/ArrayBufferView.h> 41 41 #include <wtf/OwnArrayPtr.h> 42 42 #include <wtf/PassOwnArrayPtr.h> -
trunk/Source/WebCore/platform/graphics/mac/GraphicsContext3DMac.mm
r100084 r101295 33 33 34 34 #include "ANGLE/ShaderLang.h" 35 #include "ArrayBuffer.h"36 #include "ArrayBufferView.h"37 35 #include "CanvasRenderingContext.h" 38 36 #include <CoreGraphics/CGBitmapContext.h> 39 37 #include "Extensions3DOpenGL.h" 40 #include "Float32Array.h"41 38 #include "GraphicsContext.h" 42 39 #include "HTMLCanvasElement.h" 43 40 #include "ImageBuffer.h" 44 #include "Int32Array.h"45 41 #include "NotImplemented.h" 46 42 #include <OpenGL/CGLRenderers.h> 47 43 #include <OpenGL/gl.h> 48 #include "Uint8Array.h"49 44 #include "WebGLLayer.h" 50 45 #include "WebGLObject.h" 46 #include <wtf/ArrayBuffer.h> 47 #include <wtf/ArrayBufferView.h> 48 #include <wtf/Int32Array.h> 49 #include <wtf/Float32Array.h> 50 #include <wtf/Uint8Array.h> 51 51 #include <wtf/UnusedParam.h> 52 52 #include <wtf/text/CString.h> -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
r100191 r101295 34 34 #include "GraphicsContext3D.h" 35 35 36 #include "ArrayBuffer.h"37 #include "ArrayBufferView.h"38 36 #include "WebGLObject.h" 39 37 #include "CanvasRenderingContext.h" 40 38 #include "Extensions3DOpenGL.h" 41 #include "Float32Array.h"42 39 #include "GraphicsContext.h" 43 40 #include "HTMLCanvasElement.h" 44 41 #include "ImageBuffer.h" 45 42 #include "ImageData.h" 46 #include "Int32Array.h"47 43 #include "NotImplemented.h" 48 #include "Uint8Array.h"49 44 #include <cstring> 45 #include <wtf/ArrayBuffer.h> 46 #include <wtf/ArrayBufferView.h> 47 #include <wtf/Float32Array.h> 48 #include <wtf/Int32Array.h> 49 #include <wtf/Uint8Array.h> 50 50 #include <wtf/UnusedParam.h> 51 51 #include <wtf/text/CString.h> -
trunk/Source/WebCore/webaudio/AsyncAudioDecoder.cpp
r96745 r101295 29 29 #include "AsyncAudioDecoder.h" 30 30 31 #include "ArrayBuffer.h"32 31 #include "AudioBuffer.h" 33 32 #include "AudioBufferCallback.h" 33 #include <wtf/ArrayBuffer.h> 34 34 #include <wtf/MainThread.h> 35 35 #include <wtf/OwnPtr.h> -
trunk/Source/WebCore/webaudio/AudioBuffer.h
r96745 r101295 30 30 #define AudioBuffer_h 31 31 32 #include "Float32Array.h"32 #include <wtf/Float32Array.h> 33 33 #include <wtf/PassRefPtr.h> 34 34 #include <wtf/RefCounted.h> -
trunk/Source/WebCore/webaudio/AudioContext.cpp
r101265 r101295 29 29 #include "AudioContext.h" 30 30 31 #include "ArrayBuffer.h"32 31 #include "AsyncAudioDecoder.h" 33 32 #include "AudioBuffer.h" … … 70 69 #endif 71 70 71 #include <wtf/ArrayBuffer.h> 72 72 #include <wtf/MainThread.h> 73 73 #include <wtf/OwnPtr.h> -
trunk/Source/WebCore/webaudio/AudioParam.h
r95901 r101295 32 32 #include "AudioContext.h" 33 33 #include "AudioParamTimeline.h" 34 #include "Float32Array.h"35 34 #include "PlatformString.h" 36 35 #include <sys/types.h> 36 #include <wtf/Float32Array.h> 37 37 #include <wtf/PassRefPtr.h> 38 38 #include <wtf/RefCounted.h> -
trunk/Source/WebCore/webaudio/AudioParamTimeline.h
r95901 r101295 31 31 32 32 #include "AudioContext.h" 33 #include "Float32Array.h"33 #include <wtf/Float32Array.h> 34 34 #include <wtf/PassRefPtr.h> 35 35 #include <wtf/RefCounted.h> -
trunk/Source/WebCore/webaudio/JavaScriptAudioNode.cpp
r98388 r101295 36 36 #include "AudioProcessingEvent.h" 37 37 #include "Document.h" 38 #include "Float32Array.h"38 #include <wtf/Float32Array.h> 39 39 #include <wtf/MainThread.h> 40 40 -
trunk/Source/WebCore/webaudio/RealtimeAnalyser.cpp
r95901 r101295 32 32 #include "AudioUtilities.h" 33 33 #include "FFTFrame.h" 34 #include "Float32Array.h"35 #include "Uint8Array.h"36 34 37 35 #include <algorithm> 38 36 #include <limits.h> 39 37 #include <wtf/Complex.h> 38 #include <wtf/Float32Array.h> 40 39 #include <wtf/MainThread.h> 41 40 #include <wtf/MathExtras.h> 41 #include <wtf/Uint8Array.h> 42 42 43 43 using namespace std; -
trunk/Source/WebCore/webaudio/WaveShaperProcessor.h
r96745 r101295 29 29 #include "AudioDSPKernelProcessor.h" 30 30 #include "AudioNode.h" 31 #include "Float32Array.h"31 #include <wtf/Float32Array.h> 32 32 #include <wtf/RefPtr.h> 33 33 #include <wtf/Threading.h> -
trunk/Source/WebCore/websockets/WebSocketChannel.cpp
r100849 r101295 35 35 #include "WebSocketChannel.h" 36 36 37 #include "ArrayBuffer.h"38 37 #include "Blob.h" 39 38 #include "CookieJar.h" … … 53 52 #include "WebSocketHandshake.h" 54 53 54 #include <wtf/ArrayBuffer.h> 55 55 #include <wtf/CryptographicallyRandomNumber.h> 56 56 #include <wtf/Deque.h> -
trunk/Source/WebCore/websockets/WorkerThreadableWebSocketChannel.cpp
r95901 r101295 35 35 #include "WorkerThreadableWebSocketChannel.h" 36 36 37 #include "ArrayBuffer.h"38 37 #include "Blob.h" 39 38 #include "CrossThreadTask.h" … … 47 46 #include "WorkerRunLoop.h" 48 47 #include "WorkerThread.h" 48 #include <wtf/ArrayBuffer.h> 49 49 #include <wtf/MainThread.h> 50 50 #include <wtf/PassRefPtr.h> -
trunk/Source/WebCore/xml/XMLHttpRequest.cpp
r99506 r101295 23 23 #include "XMLHttpRequest.h" 24 24 25 #include "ArrayBuffer.h"26 25 #include "Blob.h" 27 26 #include "ContentSecurityPolicy.h" … … 53 52 #include "XMLHttpRequestUpload.h" 54 53 #include "markup.h" 54 #include <wtf/ArrayBuffer.h> 55 55 #include <wtf/RefCountedLeakCounter.h> 56 56 #include <wtf/StdLibExtras.h>
Note: See TracChangeset
for help on using the changeset viewer.