Move TypedArray implementation into JSC
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Aug 2013 22:11:50 +0000 (22:11 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Aug 2013 22:11:50 +0000 (22:11 +0000)
https://bugs.webkit.org/show_bug.cgi?id=119489

Reviewed by Filip Pizlo.

Source/JavaScriptCore:

Move TypedArray implementation into JSC in advance of re-implementation

* GNUmakefile.list.am:
* JSCTypedArrayStubs.h:
* JavaScriptCore.xcodeproj/project.pbxproj:
* runtime/ArrayBuffer.cpp: Renamed from Source/WTF/wtf/ArrayBuffer.cpp.
(JSC::ArrayBuffer::transfer):
(JSC::ArrayBuffer::addView):
(JSC::ArrayBuffer::removeView):
* runtime/ArrayBuffer.h: Renamed from Source/WTF/wtf/ArrayBuffer.h.
(JSC::ArrayBufferContents::ArrayBufferContents):
(JSC::ArrayBufferContents::data):
(JSC::ArrayBufferContents::sizeInBytes):
(JSC::ArrayBufferContents::transfer):
(JSC::ArrayBufferContents::copyTo):
(JSC::ArrayBuffer::isNeutered):
(JSC::ArrayBuffer::~ArrayBuffer):
(JSC::ArrayBuffer::clampValue):
(JSC::ArrayBuffer::create):
(JSC::ArrayBuffer::createUninitialized):
(JSC::ArrayBuffer::ArrayBuffer):
(JSC::ArrayBuffer::data):
(JSC::ArrayBuffer::byteLength):
(JSC::ArrayBuffer::slice):
(JSC::ArrayBuffer::sliceImpl):
(JSC::ArrayBuffer::clampIndex):
(JSC::ArrayBufferContents::tryAllocate):
(JSC::ArrayBufferContents::~ArrayBufferContents):
* runtime/ArrayBufferView.cpp: Renamed from Source/WTF/wtf/ArrayBufferView.cpp.
(JSC::ArrayBufferView::ArrayBufferView):
(JSC::ArrayBufferView::~ArrayBufferView):
(JSC::ArrayBufferView::neuter):
* runtime/ArrayBufferView.h: Renamed from Source/WTF/wtf/ArrayBufferView.h.
(JSC::ArrayBufferView::buffer):
(JSC::ArrayBufferView::baseAddress):
(JSC::ArrayBufferView::byteOffset):
(JSC::ArrayBufferView::setNeuterable):
(JSC::ArrayBufferView::isNeuterable):
(JSC::ArrayBufferView::verifySubRange):
(JSC::ArrayBufferView::clampOffsetAndNumElements):
(JSC::ArrayBufferView::setImpl):
(JSC::ArrayBufferView::setRangeImpl):
(JSC::ArrayBufferView::zeroRangeImpl):
(JSC::ArrayBufferView::calculateOffsetAndLength):
* runtime/Float32Array.h: Renamed from Source/WTF/wtf/Float32Array.h.
(JSC::Float32Array::set):
(JSC::Float32Array::getType):
(JSC::Float32Array::create):
(JSC::Float32Array::createUninitialized):
(JSC::Float32Array::Float32Array):
(JSC::Float32Array::subarray):
* runtime/Float64Array.h: Renamed from Source/WTF/wtf/Float64Array.h.
(JSC::Float64Array::set):
(JSC::Float64Array::getType):
(JSC::Float64Array::create):
(JSC::Float64Array::createUninitialized):
(JSC::Float64Array::Float64Array):
(JSC::Float64Array::subarray):
* runtime/Int16Array.h: Renamed from Source/WTF/wtf/Int16Array.h.
(JSC::Int16Array::getType):
(JSC::Int16Array::create):
(JSC::Int16Array::createUninitialized):
(JSC::Int16Array::Int16Array):
(JSC::Int16Array::subarray):
* runtime/Int32Array.h: Renamed from Source/WTF/wtf/Int32Array.h.
(JSC::Int32Array::getType):
(JSC::Int32Array::create):
(JSC::Int32Array::createUninitialized):
(JSC::Int32Array::Int32Array):
(JSC::Int32Array::subarray):
* runtime/Int8Array.h: Renamed from Source/WTF/wtf/Int8Array.h.
(JSC::Int8Array::getType):
(JSC::Int8Array::create):
(JSC::Int8Array::createUninitialized):
(JSC::Int8Array::Int8Array):
(JSC::Int8Array::subarray):
* runtime/IntegralTypedArrayBase.h: Renamed from Source/WTF/wtf/IntegralTypedArrayBase.h.
(JSC::IntegralTypedArrayBase::set):
(JSC::IntegralTypedArrayBase::IntegralTypedArrayBase):
* runtime/TypedArrayBase.h: Renamed from Source/WTF/wtf/TypedArrayBase.h.
(JSC::TypedArrayBase::data):
(JSC::TypedArrayBase::set):
(JSC::TypedArrayBase::setRange):
(JSC::TypedArrayBase::zeroRange):
(JSC::TypedArrayBase::length):
(JSC::TypedArrayBase::byteLength):
(JSC::TypedArrayBase::item):
(JSC::TypedArrayBase::checkInboundData):
(JSC::TypedArrayBase::TypedArrayBase):
(JSC::TypedArrayBase::create):
(JSC::TypedArrayBase::createUninitialized):
(JSC::TypedArrayBase::subarrayImpl):
(JSC::TypedArrayBase::neuter):
* runtime/Uint16Array.h: Renamed from Source/WTF/wtf/Uint16Array.h.
(JSC::Uint16Array::getType):
(JSC::Uint16Array::create):
(JSC::Uint16Array::createUninitialized):
(JSC::Uint16Array::Uint16Array):
(JSC::Uint16Array::subarray):
* runtime/Uint32Array.h: Renamed from Source/WTF/wtf/Uint32Array.h.
(JSC::Uint32Array::getType):
(JSC::Uint32Array::create):
(JSC::Uint32Array::createUninitialized):
(JSC::Uint32Array::Uint32Array):
(JSC::Uint32Array::subarray):
* runtime/Uint8Array.h: Renamed from Source/WTF/wtf/Uint8Array.h.
(JSC::Uint8Array::getType):
(JSC::Uint8Array::create):
(JSC::Uint8Array::createUninitialized):
(JSC::Uint8Array::Uint8Array):
(JSC::Uint8Array::subarray):
* runtime/Uint8ClampedArray.h: Renamed from Source/WTF/wtf/Uint8ClampedArray.h.
(JSC::Uint8ClampedArray::getType):
(JSC::Uint8ClampedArray::create):
(JSC::Uint8ClampedArray::createUninitialized):
(JSC::Uint8ClampedArray::zeroFill):
(JSC::Uint8ClampedArray::set):
(JSC::Uint8ClampedArray::Uint8ClampedArray):
(JSC::Uint8ClampedArray::subarray):
* runtime/VM.h:

Source/WebCore:

Update WebCore for new location of TypedArray implementation.

* ForwardingHeaders/runtime/ArrayBuffer.h: Added.
* ForwardingHeaders/runtime/ArrayBufferView.h: Added.
* ForwardingHeaders/runtime/Float32Array.h: Added.
* ForwardingHeaders/runtime/Float64Array.h: Added.
* ForwardingHeaders/runtime/Int16Array.h: Added.
* ForwardingHeaders/runtime/Int32Array.h: Added.
* ForwardingHeaders/runtime/Int8Array.h: Added.
* ForwardingHeaders/runtime/IntegralTypedArrayBase.h: Added.
* ForwardingHeaders/runtime/TypedArrayBase.h: Added.
* ForwardingHeaders/runtime/Uint16Array.h: Added.
* ForwardingHeaders/runtime/Uint32Array.h: Added.
* ForwardingHeaders/runtime/Uint8Array.h: Added.
* ForwardingHeaders/runtime/Uint8ClampedArray.h: Added.
* Modules/webaudio/AnalyserNode.h:
(WebCore::AnalyserNode::getFloatFrequencyData):
(WebCore::AnalyserNode::getByteFrequencyData):
(WebCore::AnalyserNode::getByteTimeDomainData):
* Modules/webaudio/AsyncAudioDecoder.cpp:
* Modules/webaudio/AsyncAudioDecoder.h:
(WebCore::AsyncAudioDecoder::DecodingTask::audioData):
* Modules/webaudio/AudioBuffer.h:
* Modules/webaudio/AudioContext.cpp:
* Modules/webaudio/AudioParam.h:
* Modules/webaudio/AudioParamTimeline.h:
* Modules/webaudio/PeriodicWave.h:
* Modules/webaudio/RealtimeAnalyser.cpp:
* Modules/webaudio/RealtimeAnalyser.h:
* Modules/webaudio/ScriptProcessorNode.cpp:
* Modules/webaudio/WaveShaperProcessor.h:
* Modules/websockets/ThreadableWebSocketChannel.h:
* Modules/websockets/WebSocket.cpp:
* Modules/websockets/WebSocket.h:
* Modules/websockets/WebSocketChannel.cpp:
* Modules/websockets/WebSocketChannel.h:
* Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
* Modules/websockets/WorkerThreadableWebSocketChannel.h:
* WebCore.exp.in:
* bindings/js/JSArrayBufferCustom.cpp:
* bindings/js/JSArrayBufferViewHelper.h:
* bindings/js/JSAudioContextCustom.cpp:
* bindings/js/JSCryptoCustom.cpp:
* bindings/js/JSDictionary.h:
* bindings/js/JSFileReaderCustom.cpp:
* bindings/js/JSWebGLRenderingContextCustom.cpp:
* bindings/js/JSXMLHttpRequestCustom.cpp:
* bindings/js/SerializedScriptValue.cpp:
(WebCore::SerializedScriptValue::transferArrayBuffers):
* bindings/js/SerializedScriptValue.h:
* bindings/scripts/CodeGeneratorJS.pm:
(AddIncludesForType):
(GenerateHeader):
(NativeToJSValue):
* dom/MessageEvent.h:
* fileapi/FileReader.cpp:
* fileapi/FileReader.h:
* fileapi/FileReaderLoader.cpp:
* fileapi/FileReaderLoader.h:
* fileapi/FileReaderSync.cpp:
* fileapi/FileReaderSync.h:
* fileapi/WebKitBlobBuilder.cpp:
* fileapi/WebKitBlobBuilder.h:
* html/HTMLMediaElement.cpp:
* html/ImageData.h:
* html/canvas/ArrayBuffer.idl:
* html/canvas/ArrayBufferView.idl:
* html/canvas/CanvasRenderingContext2D.cpp:
* html/canvas/DataView.h:
* html/canvas/Float32Array.idl:
* html/canvas/Float64Array.idl:
* html/canvas/Int16Array.idl:
* html/canvas/Int32Array.idl:
* html/canvas/Int8Array.idl:
* html/canvas/Uint16Array.idl:
* html/canvas/Uint32Array.idl:
* html/canvas/Uint8Array.idl:
* html/canvas/Uint8ClampedArray.idl:
* html/canvas/WebGLBuffer.h:
(WebCore::WebGLBuffer::elementArrayBuffer):
* html/canvas/WebGLGetInfo.cpp:
* html/canvas/WebGLGetInfo.h:
* html/canvas/WebGLRenderingContext.cpp:
* html/canvas/WebGLRenderingContext.h:
* inspector/InspectorMemoryAgent.cpp:
* page/Crypto.cpp:
* page/Crypto.h:
* platform/graphics/GraphicsContext3D.cpp:
* platform/graphics/ImageBuffer.h:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
* platform/graphics/cg/ImageBufferDataCG.h:
* platform/graphics/filters/FEBlend.cpp:
* platform/graphics/filters/FEColorMatrix.cpp:
* platform/graphics/filters/FEComponentTransfer.cpp:
* platform/graphics/filters/FEComposite.cpp:
* platform/graphics/filters/FEConvolveMatrix.cpp:
* platform/graphics/filters/FECustomFilter.cpp:
* platform/graphics/filters/FEDisplacementMap.cpp:
* platform/graphics/filters/FEDropShadow.cpp:
* platform/graphics/filters/FEGaussianBlur.cpp:
* platform/graphics/filters/FELighting.h:
* platform/graphics/filters/FEMorphology.cpp:
* platform/graphics/filters/FETurbulence.cpp:
* platform/graphics/filters/FilterEffect.cpp:
* platform/graphics/filters/FilterEffect.h:
* platform/graphics/mac/GraphicsContext3DMac.mm:
* platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
* testing/Internals.h:
* xml/XMLHttpRequest.cpp:
* xml/XMLHttpRequest.h:
(WebCore::XMLHttpRequest::optionalResponseArrayBuffer):

Source/WTF:

Remove TypedArray implementation from WTF

* GNUmakefile.list.am:
* WTF.xcodeproj/project.pbxproj:
* wtf/Forward.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@153728 268f45cc-cd09-0410-ab3c-d52691b4dbfc

150 files changed:
Source/JavaScriptCore/CMakeLists.txt
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/GNUmakefile.list.am
Source/JavaScriptCore/JSCTypedArrayStubs.h
Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj
Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters
Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
Source/JavaScriptCore/Target.pri
Source/JavaScriptCore/runtime/ArrayBuffer.cpp [moved from Source/WTF/wtf/ArrayBuffer.cpp with 99% similarity]
Source/JavaScriptCore/runtime/ArrayBuffer.h [moved from Source/WTF/wtf/ArrayBuffer.h with 98% similarity]
Source/JavaScriptCore/runtime/ArrayBufferView.cpp [moved from Source/WTF/wtf/ArrayBufferView.cpp with 89% similarity]
Source/JavaScriptCore/runtime/ArrayBufferView.h [moved from Source/WTF/wtf/ArrayBufferView.h with 89% similarity]
Source/JavaScriptCore/runtime/Float32Array.h [moved from Source/WTF/wtf/Float32Array.h with 94% similarity]
Source/JavaScriptCore/runtime/Float64Array.h [moved from Source/WTF/wtf/Float64Array.h with 94% similarity]
Source/JavaScriptCore/runtime/Int16Array.h [moved from Source/WTF/wtf/Int16Array.h with 74% similarity]
Source/JavaScriptCore/runtime/Int32Array.h [moved from Source/WTF/wtf/Int32Array.h with 93% similarity]
Source/JavaScriptCore/runtime/Int8Array.h [moved from Source/WTF/wtf/Int8Array.h with 73% similarity]
Source/JavaScriptCore/runtime/IntegralTypedArrayBase.h [moved from Source/WTF/wtf/IntegralTypedArrayBase.h with 94% similarity]
Source/JavaScriptCore/runtime/TypedArrayBase.h [moved from Source/WTF/wtf/TypedArrayBase.h with 95% similarity]
Source/JavaScriptCore/runtime/Uint16Array.h [moved from Source/WTF/wtf/Uint16Array.h with 72% similarity]
Source/JavaScriptCore/runtime/Uint32Array.h [moved from Source/WTF/wtf/Uint32Array.h with 73% similarity]
Source/JavaScriptCore/runtime/Uint8Array.h [moved from Source/WTF/wtf/Uint8Array.h with 73% similarity]
Source/JavaScriptCore/runtime/Uint8ClampedArray.h [moved from Source/WTF/wtf/Uint8ClampedArray.h with 78% similarity]
Source/JavaScriptCore/runtime/VM.h
Source/WTF/ChangeLog
Source/WTF/GNUmakefile.list.am
Source/WTF/WTF.pro
Source/WTF/WTF.vcxproj/WTF.vcxproj
Source/WTF/WTF.vcxproj/WTF.vcxproj.filters
Source/WTF/WTF.xcodeproj/project.pbxproj
Source/WTF/wtf/CMakeLists.txt
Source/WTF/wtf/Forward.h
Source/WebCore/ChangeLog
Source/WebCore/ForwardingHeaders/runtime/ArrayBuffer.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/ArrayBufferView.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/Float32Array.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/Float64Array.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/Int16Array.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/Int32Array.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/Int8Array.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/IntegralTypedArrayBase.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/TypedArrayBase.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/Uint16Array.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/Uint32Array.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/Uint8Array.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/runtime/Uint8ClampedArray.h [new file with mode: 0644]
Source/WebCore/Modules/encryptedmedia/CDM.h
Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp
Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.cpp
Source/WebCore/Modules/encryptedmedia/MediaKeySession.h
Source/WebCore/Modules/encryptedmedia/MediaKeys.h
Source/WebCore/Modules/mediasource/MediaSource.cpp
Source/WebCore/Modules/mediasource/SourceBuffer.cpp
Source/WebCore/Modules/mediastream/RTCDataChannel.cpp
Source/WebCore/Modules/vibration/NavigatorVibration.cpp
Source/WebCore/Modules/webaudio/AnalyserNode.h
Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp
Source/WebCore/Modules/webaudio/AsyncAudioDecoder.h
Source/WebCore/Modules/webaudio/AudioBuffer.h
Source/WebCore/Modules/webaudio/AudioContext.cpp
Source/WebCore/Modules/webaudio/AudioParam.h
Source/WebCore/Modules/webaudio/AudioParamTimeline.h
Source/WebCore/Modules/webaudio/PeriodicWave.h
Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp
Source/WebCore/Modules/webaudio/RealtimeAnalyser.h
Source/WebCore/Modules/webaudio/ScriptProcessorNode.cpp
Source/WebCore/Modules/webaudio/WaveShaperProcessor.h
Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.h
Source/WebCore/Modules/websockets/WebSocket.cpp
Source/WebCore/Modules/websockets/WebSocket.h
Source/WebCore/Modules/websockets/WebSocketChannel.cpp
Source/WebCore/Modules/websockets/WebSocketChannel.h
Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.cpp
Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.h
Source/WebCore/WebCore.exp.in
Source/WebCore/bindings/js/JSArrayBufferCustom.cpp
Source/WebCore/bindings/js/JSArrayBufferViewHelper.h
Source/WebCore/bindings/js/JSAudioContextCustom.cpp
Source/WebCore/bindings/js/JSCryptoCustom.cpp
Source/WebCore/bindings/js/JSDictionary.h
Source/WebCore/bindings/js/JSFileReaderCustom.cpp
Source/WebCore/bindings/js/JSWebGLRenderingContextCustom.cpp
Source/WebCore/bindings/js/JSXMLHttpRequestCustom.cpp
Source/WebCore/bindings/js/SerializedScriptValue.cpp
Source/WebCore/bindings/js/SerializedScriptValue.h
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
Source/WebCore/bindings/scripts/test/JS/JSFloat64Array.cpp
Source/WebCore/bindings/scripts/test/JS/JSFloat64Array.h
Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
Source/WebCore/bridge/qt/qt_runtime.cpp
Source/WebCore/dom/MessageEvent.h
Source/WebCore/fileapi/FileReader.cpp
Source/WebCore/fileapi/FileReader.h
Source/WebCore/fileapi/FileReaderLoader.cpp
Source/WebCore/fileapi/FileReaderLoader.h
Source/WebCore/fileapi/FileReaderSync.cpp
Source/WebCore/fileapi/FileReaderSync.h
Source/WebCore/fileapi/WebKitBlobBuilder.cpp
Source/WebCore/fileapi/WebKitBlobBuilder.h
Source/WebCore/html/HTMLMediaElement.cpp
Source/WebCore/html/ImageData.h
Source/WebCore/html/MediaKeyError.h
Source/WebCore/html/MediaKeyEvent.cpp
Source/WebCore/html/canvas/ArrayBuffer.idl
Source/WebCore/html/canvas/ArrayBufferView.idl
Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp
Source/WebCore/html/canvas/DataView.h
Source/WebCore/html/canvas/Float32Array.idl
Source/WebCore/html/canvas/Float64Array.idl
Source/WebCore/html/canvas/Int16Array.idl
Source/WebCore/html/canvas/Int32Array.idl
Source/WebCore/html/canvas/Int8Array.idl
Source/WebCore/html/canvas/Uint16Array.idl
Source/WebCore/html/canvas/Uint32Array.idl
Source/WebCore/html/canvas/Uint8Array.idl
Source/WebCore/html/canvas/Uint8ClampedArray.idl
Source/WebCore/html/canvas/WebGLBuffer.h
Source/WebCore/html/canvas/WebGLGetInfo.cpp
Source/WebCore/html/canvas/WebGLGetInfo.h
Source/WebCore/html/canvas/WebGLRenderingContext.cpp
Source/WebCore/html/canvas/WebGLRenderingContext.h
Source/WebCore/inspector/InspectorMemoryAgent.cpp
Source/WebCore/page/Crypto.cpp
Source/WebCore/page/Crypto.h
Source/WebCore/platform/graphics/GraphicsContext3D.cpp
Source/WebCore/platform/graphics/ImageBuffer.h
Source/WebCore/platform/graphics/MediaPlayer.h
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
Source/WebCore/platform/graphics/blackberry/ImageBufferDataBlackBerry.h
Source/WebCore/platform/graphics/cg/ImageBufferDataCG.h
Source/WebCore/platform/graphics/filters/FEBlend.cpp
Source/WebCore/platform/graphics/filters/FEColorMatrix.cpp
Source/WebCore/platform/graphics/filters/FEComponentTransfer.cpp
Source/WebCore/platform/graphics/filters/FEComposite.cpp
Source/WebCore/platform/graphics/filters/FEConvolveMatrix.cpp
Source/WebCore/platform/graphics/filters/FECustomFilter.cpp
Source/WebCore/platform/graphics/filters/FEDisplacementMap.cpp
Source/WebCore/platform/graphics/filters/FEDropShadow.cpp
Source/WebCore/platform/graphics/filters/FEGaussianBlur.cpp
Source/WebCore/platform/graphics/filters/FELighting.h
Source/WebCore/platform/graphics/filters/FEMorphology.cpp
Source/WebCore/platform/graphics/filters/FETurbulence.cpp
Source/WebCore/platform/graphics/filters/FilterEffect.cpp
Source/WebCore/platform/graphics/filters/FilterEffect.h
Source/WebCore/platform/graphics/mac/GraphicsContext3DMac.mm
Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/MockCDM.cpp
Source/WebCore/xml/XMLHttpRequest.cpp
Source/WebCore/xml/XMLHttpRequest.h

index a83bd1b..85d17ed 100644 (file)
@@ -264,6 +264,8 @@ set(JavaScriptCore_SOURCES
     profiler/ProfileNode.cpp
     profiler/LegacyProfiler.cpp
 
+    runtime/ArrayBuffer.cpp
+    runtime/ArrayBufferView.cpp
     runtime/ArgList.cpp
     runtime/Arguments.cpp
     runtime/ArrayConstructor.cpp
index 0a59b22..a810c87 100644 (file)
@@ -1,3 +1,131 @@
+2013-08-05  Oliver Hunt  <oliver@apple.com>
+
+        Move TypedArray implementation into JSC
+        https://bugs.webkit.org/show_bug.cgi?id=119489
+
+        Reviewed by Filip Pizlo.
+
+        Move TypedArray implementation into JSC in advance of re-implementation
+
+        * GNUmakefile.list.am:
+        * JSCTypedArrayStubs.h:
+        * JavaScriptCore.xcodeproj/project.pbxproj:
+        * runtime/ArrayBuffer.cpp: Renamed from Source/WTF/wtf/ArrayBuffer.cpp.
+        (JSC::ArrayBuffer::transfer):
+        (JSC::ArrayBuffer::addView):
+        (JSC::ArrayBuffer::removeView):
+        * runtime/ArrayBuffer.h: Renamed from Source/WTF/wtf/ArrayBuffer.h.
+        (JSC::ArrayBufferContents::ArrayBufferContents):
+        (JSC::ArrayBufferContents::data):
+        (JSC::ArrayBufferContents::sizeInBytes):
+        (JSC::ArrayBufferContents::transfer):
+        (JSC::ArrayBufferContents::copyTo):
+        (JSC::ArrayBuffer::isNeutered):
+        (JSC::ArrayBuffer::~ArrayBuffer):
+        (JSC::ArrayBuffer::clampValue):
+        (JSC::ArrayBuffer::create):
+        (JSC::ArrayBuffer::createUninitialized):
+        (JSC::ArrayBuffer::ArrayBuffer):
+        (JSC::ArrayBuffer::data):
+        (JSC::ArrayBuffer::byteLength):
+        (JSC::ArrayBuffer::slice):
+        (JSC::ArrayBuffer::sliceImpl):
+        (JSC::ArrayBuffer::clampIndex):
+        (JSC::ArrayBufferContents::tryAllocate):
+        (JSC::ArrayBufferContents::~ArrayBufferContents):
+        * runtime/ArrayBufferView.cpp: Renamed from Source/WTF/wtf/ArrayBufferView.cpp.
+        (JSC::ArrayBufferView::ArrayBufferView):
+        (JSC::ArrayBufferView::~ArrayBufferView):
+        (JSC::ArrayBufferView::neuter):
+        * runtime/ArrayBufferView.h: Renamed from Source/WTF/wtf/ArrayBufferView.h.
+        (JSC::ArrayBufferView::buffer):
+        (JSC::ArrayBufferView::baseAddress):
+        (JSC::ArrayBufferView::byteOffset):
+        (JSC::ArrayBufferView::setNeuterable):
+        (JSC::ArrayBufferView::isNeuterable):
+        (JSC::ArrayBufferView::verifySubRange):
+        (JSC::ArrayBufferView::clampOffsetAndNumElements):
+        (JSC::ArrayBufferView::setImpl):
+        (JSC::ArrayBufferView::setRangeImpl):
+        (JSC::ArrayBufferView::zeroRangeImpl):
+        (JSC::ArrayBufferView::calculateOffsetAndLength):
+        * runtime/Float32Array.h: Renamed from Source/WTF/wtf/Float32Array.h.
+        (JSC::Float32Array::set):
+        (JSC::Float32Array::getType):
+        (JSC::Float32Array::create):
+        (JSC::Float32Array::createUninitialized):
+        (JSC::Float32Array::Float32Array):
+        (JSC::Float32Array::subarray):
+        * runtime/Float64Array.h: Renamed from Source/WTF/wtf/Float64Array.h.
+        (JSC::Float64Array::set):
+        (JSC::Float64Array::getType):
+        (JSC::Float64Array::create):
+        (JSC::Float64Array::createUninitialized):
+        (JSC::Float64Array::Float64Array):
+        (JSC::Float64Array::subarray):
+        * runtime/Int16Array.h: Renamed from Source/WTF/wtf/Int16Array.h.
+        (JSC::Int16Array::getType):
+        (JSC::Int16Array::create):
+        (JSC::Int16Array::createUninitialized):
+        (JSC::Int16Array::Int16Array):
+        (JSC::Int16Array::subarray):
+        * runtime/Int32Array.h: Renamed from Source/WTF/wtf/Int32Array.h.
+        (JSC::Int32Array::getType):
+        (JSC::Int32Array::create):
+        (JSC::Int32Array::createUninitialized):
+        (JSC::Int32Array::Int32Array):
+        (JSC::Int32Array::subarray):
+        * runtime/Int8Array.h: Renamed from Source/WTF/wtf/Int8Array.h.
+        (JSC::Int8Array::getType):
+        (JSC::Int8Array::create):
+        (JSC::Int8Array::createUninitialized):
+        (JSC::Int8Array::Int8Array):
+        (JSC::Int8Array::subarray):
+        * runtime/IntegralTypedArrayBase.h: Renamed from Source/WTF/wtf/IntegralTypedArrayBase.h.
+        (JSC::IntegralTypedArrayBase::set):
+        (JSC::IntegralTypedArrayBase::IntegralTypedArrayBase):
+        * runtime/TypedArrayBase.h: Renamed from Source/WTF/wtf/TypedArrayBase.h.
+        (JSC::TypedArrayBase::data):
+        (JSC::TypedArrayBase::set):
+        (JSC::TypedArrayBase::setRange):
+        (JSC::TypedArrayBase::zeroRange):
+        (JSC::TypedArrayBase::length):
+        (JSC::TypedArrayBase::byteLength):
+        (JSC::TypedArrayBase::item):
+        (JSC::TypedArrayBase::checkInboundData):
+        (JSC::TypedArrayBase::TypedArrayBase):
+        (JSC::TypedArrayBase::create):
+        (JSC::TypedArrayBase::createUninitialized):
+        (JSC::TypedArrayBase::subarrayImpl):
+        (JSC::TypedArrayBase::neuter):
+        * runtime/Uint16Array.h: Renamed from Source/WTF/wtf/Uint16Array.h.
+        (JSC::Uint16Array::getType):
+        (JSC::Uint16Array::create):
+        (JSC::Uint16Array::createUninitialized):
+        (JSC::Uint16Array::Uint16Array):
+        (JSC::Uint16Array::subarray):
+        * runtime/Uint32Array.h: Renamed from Source/WTF/wtf/Uint32Array.h.
+        (JSC::Uint32Array::getType):
+        (JSC::Uint32Array::create):
+        (JSC::Uint32Array::createUninitialized):
+        (JSC::Uint32Array::Uint32Array):
+        (JSC::Uint32Array::subarray):
+        * runtime/Uint8Array.h: Renamed from Source/WTF/wtf/Uint8Array.h.
+        (JSC::Uint8Array::getType):
+        (JSC::Uint8Array::create):
+        (JSC::Uint8Array::createUninitialized):
+        (JSC::Uint8Array::Uint8Array):
+        (JSC::Uint8Array::subarray):
+        * runtime/Uint8ClampedArray.h: Renamed from Source/WTF/wtf/Uint8ClampedArray.h.
+        (JSC::Uint8ClampedArray::getType):
+        (JSC::Uint8ClampedArray::create):
+        (JSC::Uint8ClampedArray::createUninitialized):
+        (JSC::Uint8ClampedArray::zeroFill):
+        (JSC::Uint8ClampedArray::set):
+        (JSC::Uint8ClampedArray::Uint8ClampedArray):
+        (JSC::Uint8ClampedArray::subarray):
+        * runtime/VM.h:
+
 2013-08-03  Filip Pizlo  <fpizlo@apple.com>
 
         Copied space should be able to handle more than one copied backing store per JSCell
index 81137aa..d0bb7d6 100644 (file)
@@ -32,7 +32,7 @@ javascriptcore_built_nosources += \
        DerivedSources/JavaScriptCore/LLIntAssembly.h
 
 javascriptcore_sources += \
-    Source/JavaScriptCore/API/APICallbackFunction.h \
+       Source/JavaScriptCore/API/APICallbackFunction.h \
        Source/JavaScriptCore/API/APICast.h \
        Source/JavaScriptCore/API/APIShims.h \
        Source/JavaScriptCore/API/JSAPIWrapperObject.h \
@@ -644,6 +644,10 @@ javascriptcore_sources += \
        Source/JavaScriptCore/runtime/ArgList.h \
        Source/JavaScriptCore/runtime/Arguments.cpp \
        Source/JavaScriptCore/runtime/Arguments.h \
+       Source/JavaScriptCore/runtime/ArrayBuffer.cpp \
+       Source/JavaScriptCore/runtime/ArrayBuffer.h \
+       Source/JavaScriptCore/runtime/ArrayBufferView.cpp \
+       Source/JavaScriptCore/runtime/ArrayBufferView.h \
        Source/JavaScriptCore/runtime/ArrayConstructor.cpp \
        Source/JavaScriptCore/runtime/ArrayConstructor.h \
        Source/JavaScriptCore/runtime/ArrayConventions.h \
@@ -705,6 +709,8 @@ javascriptcore_sources += \
        Source/JavaScriptCore/runtime/Executable.cpp \
        Source/JavaScriptCore/runtime/Executable.h \
        Source/JavaScriptCore/runtime/ExecutionHarness.h \
+       Source/JavaScriptCore/runtime/Float32Array.h \
+       Source/JavaScriptCore/runtime/Float64Array.h \
        Source/JavaScriptCore/runtime/FunctionConstructor.cpp \
        Source/JavaScriptCore/runtime/FunctionConstructor.h \
        Source/JavaScriptCore/runtime/FunctionExecutableDump.cpp \
@@ -723,6 +729,10 @@ javascriptcore_sources += \
        Source/JavaScriptCore/runtime/IndexingType.h \
        Source/JavaScriptCore/runtime/InitializeThreading.cpp \
        Source/JavaScriptCore/runtime/InitializeThreading.h \
+       Source/JavaScriptCore/runtime/Int16Array.h \
+       Source/JavaScriptCore/runtime/Int32Array.h \
+       Source/JavaScriptCore/runtime/Int8Array.h \
+       Source/JavaScriptCore/runtime/IntegralTypedArrayBase.h \
        Source/JavaScriptCore/runtime/IntendedStructureChain.cpp \
        Source/JavaScriptCore/runtime/IntendedStructureChain.h \
        Source/JavaScriptCore/runtime/InternalFunction.cpp \
@@ -882,8 +892,13 @@ javascriptcore_sources += \
        Source/JavaScriptCore/runtime/SymbolTable.cpp \
        Source/JavaScriptCore/runtime/SymbolTable.h \
        Source/JavaScriptCore/runtime/Tracing.h \
+       Source/JavaScriptCore/runtime/TypedArrayBase.h \
        Source/JavaScriptCore/runtime/TypedArrayDescriptor.h \
+       Source/JavaScriptCore/runtime/Uint16Array.h \
        Source/JavaScriptCore/runtime/Uint16WithFraction.h \
+       Source/JavaScriptCore/runtime/Uint32Array.h \
+       Source/JavaScriptCore/runtime/Uint8Array.h \
+       Source/JavaScriptCore/runtime/Uint8ClampedArray.h \
        Source/JavaScriptCore/runtime/VMStackBounds.h \
        Source/JavaScriptCore/runtime/Watchdog.cpp \
        Source/JavaScriptCore/runtime/Watchdog.h \
index d7ac1ef..393e121 100644 (file)
 #ifndef JSCTypedArrayStubs_h
 #define JSCTypedArrayStubs_h
 
+#include "Float32Array.h"
+#include "Float64Array.h"
+#include "Int16Array.h"
+#include "Int32Array.h"
+#include "Int8Array.h"
 #include "JSDestructibleObject.h"
 #include "ObjectPrototype.h"
 #include "Operations.h"
-#include <wtf/Float32Array.h>
-#include <wtf/Float64Array.h>
+#include "Uint16Array.h"
+#include "Uint32Array.h"
+#include "Uint8Array.h"
+#include "Uint8ClampedArray.h"
+
 #include <wtf/Forward.h>
-#include <wtf/Int16Array.h>
-#include <wtf/Int32Array.h>
-#include <wtf/Int8Array.h>
-#include <wtf/Uint16Array.h>
-#include <wtf/Uint32Array.h>
-#include <wtf/Uint8Array.h>
-#include <wtf/Uint8ClampedArray.h>
 
 namespace JSC {
     
index e8ec8ea..5af8133 100644 (file)
     <ClCompile Include="..\profiler\ProfilerOSRExit.cpp" />\r
     <ClCompile Include="..\profiler\ProfilerOSRExitSite.cpp" />\r
     <ClCompile Include="..\profiler\ProfilerProfiledBytecodes.cpp" />\r
+    <ClCompile Include="..\runtime\ArrayBuffer.cpp" />\r
+    <ClCompile Include="..\runtime\ArrayBufferView.cpp" />\r
     <ClCompile Include="..\runtime\ArgList.cpp" />\r
     <ClCompile Include="..\runtime\Arguments.cpp" />\r
     <ClCompile Include="..\runtime\ArrayConstructor.cpp" />\r
     <ClInclude Include="..\profiler\ProfilerOSRExit.h" />\r
     <ClInclude Include="..\profiler\ProfilerOSRExitSite.h" />\r
     <ClInclude Include="..\profiler\ProfilerProfiledBytecodes.h" />\r
+    <ClInclude Include="..\runtime\ArrayBuffer.h" />\r
+    <ClInclude Include="..\runtime\ArrayBufferView.h" />\r
     <ClInclude Include="..\runtime\ArgList.h" />\r
     <ClInclude Include="..\runtime\Arguments.h" />\r
     <ClInclude Include="..\runtime\ArrayConstructor.h" />\r
     <ClInclude Include="..\runtime\ExceptionHelpers.h" />\r
     <ClInclude Include="..\runtime\Executable.h" />\r
     <ClInclude Include="..\runtime\ExecutionHarness.h" />\r
+    <ClInclude Include="..\runtime\Float32Array.h" />\r
+    <ClInclude Include="..\runtime\Float64Array.h" />\r
     <ClInclude Include="..\runtime\FunctionConstructor.h" />\r
     <ClInclude Include="..\runtime\FunctionPrototype.h" />\r
     <ClInclude Include="..\runtime\GCActivityCallback.h" />\r
     <ClInclude Include="..\runtime\IndexingHeaderInlines.h" />\r
     <ClInclude Include="..\runtime\IndexingType.h" />\r
     <ClInclude Include="..\runtime\InitializeThreading.h" />\r
+    <ClInclude Include="..\runtime\Int16Array.h" />\r
+    <ClInclude Include="..\runtime\Int32Array.h" />\r
+    <ClInclude Include="..\runtime\Int8Array.h" />\r
     <ClInclude Include="..\runtime\IntendedStructureChain.h" />\r
     <ClInclude Include="..\runtime\InternalFunction.h" />\r
     <ClInclude Include="..\runtime\Intrinsic.h" />\r
     <ClInclude Include="..\runtime\SymbolTable.h" />\r
     <ClInclude Include="..\runtime\Tracing.h" />\r
     <ClInclude Include="..\runtime\TypedArrayDescriptor.h" />\r
+    <ClInclude Include="..\runtime\Uint16Array.h" />\r
     <ClInclude Include="..\runtime\Uint16WithFraction.h" />\r
+    <ClInclude Include="..\runtime\Uint32Array.h" />\r
+    <ClInclude Include="..\runtime\Uint8Array.h" />\r
     <ClInclude Include="..\runtime\VM.h" />\r
     <ClInclude Include="..\runtime\Watchdog.h" />\r
     <ClInclude Include="..\runtime\WeakGCMap.h" />\r
index f86d2e7..a7cbfb2 100644 (file)
     <ClCompile Include="..\profiler\ProfilerProfiledBytecodes.cpp">\r
       <Filter>profiler</Filter>\r
     </ClCompile>\r
+    <ClCompile Include="..\runtime\ArrayBuffer.cpp">\r
+      <Filter>runtime</Filter>\r
+    </ClCompile>\r
+    <ClCompile Include="..\runtime\ArrayBufferView.cpp">\r
+      <Filter>runtime</Filter>\r
+    </ClCompile>\r
     <ClCompile Include="..\runtime\ArgList.cpp">\r
       <Filter>runtime</Filter>\r
     </ClCompile>\r
     <ClInclude Include="..\profiler\ProfilerProfiledBytecodes.h">\r
       <Filter>profiler</Filter>\r
     </ClInclude>\r
+    <ClInclude Include="..\runtime\ArrayBuffer.h">\r
+      <Filter>wtf</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\runtime\ArrayBufferView.h">\r
+      <Filter>wtf</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\runtime\Float32Array.h">\r
+      <Filter>wtf</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\runtime\Float64Array.h">\r
+      <Filter>wtf</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\runtime\Int16Array.h">\r
+      <Filter>wtf</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\runtime\Int32Array.h">\r
+      <Filter>wtf</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\runtime\Int8Array.h">\r
+      <Filter>wtf</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\runtime\Uint16Array.h">\r
+      <Filter>wtf</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\runtime\Uint32Array.h">\r
+      <Filter>wtf</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\runtime\Uint8Array.h">\r
+      <Filter>wtf</Filter>\r
+    </ClInclude>\r
     <ClInclude Include="..\runtime\ArgList.h">\r
       <Filter>runtime</Filter>\r
     </ClInclude>\r
index e01ba07..a754984 100644 (file)
                A7A4AE0D17973B4D005612B1 /* JITStubsMIPS.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A4AE0917973B4D005612B1 /* JITStubsMIPS.h */; };
                A7A4AE0F17973B4D005612B1 /* JITStubsSH4.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A4AE0B17973B4D005612B1 /* JITStubsSH4.h */; };
                A7A4AE1017973B4D005612B1 /* JITStubsX86Common.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A4AE0C17973B4D005612B1 /* JITStubsX86Common.h */; };
+               A7A8AF3417ADB5F3005AB174 /* ArrayBuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7A8AF2517ADB5F2005AB174 /* ArrayBuffer.cpp */; };
+               A7A8AF3517ADB5F3005AB174 /* ArrayBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF2617ADB5F3005AB174 /* ArrayBuffer.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF3617ADB5F3005AB174 /* ArrayBufferView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7A8AF2717ADB5F3005AB174 /* ArrayBufferView.cpp */; };
+               A7A8AF3717ADB5F3005AB174 /* ArrayBufferView.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF2817ADB5F3005AB174 /* ArrayBufferView.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF3817ADB5F3005AB174 /* Float32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF2917ADB5F3005AB174 /* Float32Array.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF3917ADB5F3005AB174 /* Float64Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF2A17ADB5F3005AB174 /* Float64Array.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF3A17ADB5F3005AB174 /* Int8Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF2B17ADB5F3005AB174 /* Int8Array.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF3B17ADB5F3005AB174 /* Int16Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF2C17ADB5F3005AB174 /* Int16Array.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF3C17ADB5F3005AB174 /* Int32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF2D17ADB5F3005AB174 /* Int32Array.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF3D17ADB5F3005AB174 /* IntegralTypedArrayBase.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF2E17ADB5F3005AB174 /* IntegralTypedArrayBase.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF3E17ADB5F3005AB174 /* TypedArrayBase.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF2F17ADB5F3005AB174 /* TypedArrayBase.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF3F17ADB5F3005AB174 /* Uint8Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF3017ADB5F3005AB174 /* Uint8Array.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF4017ADB5F3005AB174 /* Uint8ClampedArray.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF3117ADB5F3005AB174 /* Uint8ClampedArray.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF4117ADB5F3005AB174 /* Uint16Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF3217ADB5F3005AB174 /* Uint16Array.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A7A8AF4217ADB5F3005AB174 /* Uint32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A8AF3317ADB5F3005AB174 /* Uint32Array.h */; settings = {ATTRIBUTES = (Private, ); }; };
                A7B48F490EE8936F00DCBDB6 /* ExecutableAllocator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7B48DB60EE74CFC00DCBDB6 /* ExecutableAllocator.cpp */; };
                A7B4ACAF1484C9CE00B38A36 /* JSExportMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = A7B4ACAE1484C9CE00B38A36 /* JSExportMacros.h */; settings = {ATTRIBUTES = (Private, ); }; };
                A7B601821639FD2A00372BA3 /* UnlinkedCodeBlock.h in Headers */ = {isa = PBXBuildFile; fileRef = A79E781F15EECBA80047C855 /* UnlinkedCodeBlock.h */; settings = {ATTRIBUTES = (Private, ); }; };
                A7A4AE0C17973B4D005612B1 /* JITStubsX86Common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JITStubsX86Common.h; sourceTree = "<group>"; };
                A7A7EE7411B98B8D0065A14F /* ASTBuilder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASTBuilder.h; sourceTree = "<group>"; };
                A7A7EE7711B98B8D0065A14F /* SyntaxChecker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SyntaxChecker.h; sourceTree = "<group>"; };
+               A7A8AF2517ADB5F2005AB174 /* ArrayBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ArrayBuffer.cpp; sourceTree = "<group>"; };
+               A7A8AF2617ADB5F3005AB174 /* ArrayBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArrayBuffer.h; sourceTree = "<group>"; };
+               A7A8AF2717ADB5F3005AB174 /* ArrayBufferView.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ArrayBufferView.cpp; sourceTree = "<group>"; };
+               A7A8AF2817ADB5F3005AB174 /* ArrayBufferView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArrayBufferView.h; sourceTree = "<group>"; };
+               A7A8AF2917ADB5F3005AB174 /* Float32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Float32Array.h; sourceTree = "<group>"; };
+               A7A8AF2A17ADB5F3005AB174 /* Float64Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Float64Array.h; sourceTree = "<group>"; };
+               A7A8AF2B17ADB5F3005AB174 /* Int8Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int8Array.h; sourceTree = "<group>"; };
+               A7A8AF2C17ADB5F3005AB174 /* Int16Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int16Array.h; sourceTree = "<group>"; };
+               A7A8AF2D17ADB5F3005AB174 /* Int32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int32Array.h; sourceTree = "<group>"; };
+               A7A8AF2E17ADB5F3005AB174 /* IntegralTypedArrayBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IntegralTypedArrayBase.h; sourceTree = "<group>"; };
+               A7A8AF2F17ADB5F3005AB174 /* TypedArrayBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TypedArrayBase.h; sourceTree = "<group>"; };
+               A7A8AF3017ADB5F3005AB174 /* Uint8Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint8Array.h; sourceTree = "<group>"; };
+               A7A8AF3117ADB5F3005AB174 /* Uint8ClampedArray.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint8ClampedArray.h; sourceTree = "<group>"; };
+               A7A8AF3217ADB5F3005AB174 /* Uint16Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint16Array.h; sourceTree = "<group>"; };
+               A7A8AF3317ADB5F3005AB174 /* Uint32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint32Array.h; sourceTree = "<group>"; };
                A7B48DB50EE74CFC00DCBDB6 /* ExecutableAllocator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExecutableAllocator.h; sourceTree = "<group>"; };
                A7B48DB60EE74CFC00DCBDB6 /* ExecutableAllocator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ExecutableAllocator.cpp; sourceTree = "<group>"; };
                A7B4ACAE1484C9CE00B38A36 /* JSExportMacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSExportMacros.h; sourceTree = "<group>"; };
                034768DFFF38A50411DB9C8B /* Products */ = {
                        isa = PBXGroup;
                        children = (
+                               0FF922CF14F46B130041A24E /* JSCLLIntOffsetsExtractor */,
                                932F5BD90822A1C700736975 /* JavaScriptCore.framework */,
                                932F5BE10822A1C700736975 /* jsc */,
-                               0FF922CF14F46B130041A24E /* JSCLLIntOffsetsExtractor */,
                                141211200A48793C00480255 /* minidom */,
                                14BD59BF0A3E8F9000BAF59C /* testapi */,
                                6511230514046A4C002B101D /* testRegExp */,
                7EF6E0BB0EB7A1EC0079AFAF /* runtime */ = {
                        isa = PBXGroup;
                        children = (
-                               6553A32F17A1F1EE008CF6F3 /* CommonSlowPathsExceptions.cpp */,
-                               6553A33017A1F1EE008CF6F3 /* CommonSlowPathsExceptions.h */,
                                BCF605110E203EF800B9A64D /* ArgList.cpp */,
                                BCF605120E203EF800B9A64D /* ArgList.h */,
                                BC257DE50E1F51C50016B6C9 /* Arguments.cpp */,
                                BC257DE60E1F51C50016B6C9 /* Arguments.h */,
+                               A7A8AF2517ADB5F2005AB174 /* ArrayBuffer.cpp */,
+                               A7A8AF2617ADB5F3005AB174 /* ArrayBuffer.h */,
+                               A7A8AF2717ADB5F3005AB174 /* ArrayBufferView.cpp */,
+                               A7A8AF2817ADB5F3005AB174 /* ArrayBufferView.h */,
                                BC7952060E15E8A800A898AB /* ArrayConstructor.cpp */,
                                BC7952070E15E8A800A898AB /* ArrayConstructor.h */,
                                0FB7F38915ED8E3800F167B2 /* ArrayConventions.h */,
                                65EA73630BAE35D1001BB560 /* CommonIdentifiers.h */,
                                A709F2F117A0AC2A00512E98 /* CommonSlowPaths.cpp */,
                                0F15F15D14B7A73A005DE37D /* CommonSlowPaths.h */,
+                               6553A32F17A1F1EE008CF6F3 /* CommonSlowPathsExceptions.cpp */,
+                               6553A33017A1F1EE008CF6F3 /* CommonSlowPathsExceptions.h */,
                                A7E5A3A51797432D00E893C0 /* CompilationResult.cpp */,
                                A7E5A3A61797432D00E893C0 /* CompilationResult.h */,
                                969A09220ED1E09C00F1F681 /* Completion.cpp */,
                                86CA032D1038E8440028A609 /* Executable.cpp */,
                                86CAFEE21035DDE60028A609 /* Executable.h */,
                                0F21C27A14BE727300ADC64B /* ExecutionHarness.h */,
+                               A7A8AF2917ADB5F3005AB174 /* Float32Array.h */,
+                               A7A8AF2A17ADB5F3005AB174 /* Float64Array.h */,
                                BC2680C00E16D4E900A06E92 /* FunctionConstructor.cpp */,
                                BC2680C10E16D4E900A06E92 /* FunctionConstructor.h */,
                                0FB4B52116B6278D003F696B /* FunctionExecutableDump.cpp */,
                                0FB7F38F15ED8E3800F167B2 /* IndexingType.h */,
                                E178636C0D9BEEC300D74E75 /* InitializeThreading.cpp */,
                                E178633F0D9BEC0000D74E75 /* InitializeThreading.h */,
+                               A7A8AF2C17ADB5F3005AB174 /* Int16Array.h */,
+                               A7A8AF2D17ADB5F3005AB174 /* Int32Array.h */,
+                               A7A8AF2B17ADB5F3005AB174 /* Int8Array.h */,
+                               A7A8AF2E17ADB5F3005AB174 /* IntegralTypedArrayBase.h */,
                                A78853F717972629001440E4 /* IntendedStructureChain.cpp */,
                                A78853F817972629001440E4 /* IntendedStructureChain.h */,
                                BC9BB95B0E19680600DF8855 /* InternalFunction.cpp */,
                                14A396A60CD2933100B5B4FF /* SymbolTable.h */,
                                5D53726D0E1C546B0021E549 /* Tracing.d */,
                                5D53726E0E1C54880021E549 /* Tracing.h */,
+                               A7A8AF2F17ADB5F3005AB174 /* TypedArrayBase.h */,
                                0FEB3ECB16237F4700AB67AD /* TypedArrayDescriptor.h */,
+                               A7A8AF3217ADB5F3005AB174 /* Uint16Array.h */,
                                866739D113BFDE710023D87C /* Uint16WithFraction.h */,
+                               A7A8AF3317ADB5F3005AB174 /* Uint32Array.h */,
+                               A7A8AF3017ADB5F3005AB174 /* Uint8Array.h */,
+                               A7A8AF3117ADB5F3005AB174 /* Uint8ClampedArray.h */,
                                E18E3A570DF9278C00D90B34 /* VM.cpp */,
                                E18E3A560DF9278C00D90B34 /* VM.h */,
                                FE6617271774E03500495B00 /* VMStackBounds.h */,
                                86ADD1450FDDEA980006EEC2 /* ARMv7Assembler.h in Headers */,
                                65C0285D1717966800351E35 /* ARMv7DOpcode.h in Headers */,
                                0F8335B81639C1EA001443B5 /* ArrayAllocationProfile.h in Headers */,
+                               A7A8AF3517ADB5F3005AB174 /* ArrayBuffer.h in Headers */,
+                               A7A8AF3717ADB5F3005AB174 /* ArrayBufferView.h in Headers */,
                                BC18C3E60E16F5CD00B34460 /* ArrayConstructor.h in Headers */,
                                0FB7F39515ED8E4600F167B2 /* ArrayConventions.h in Headers */,
                                0F63945515D07057006A597C /* ArrayProfile.h in Headers */,
                                0F0B83A714BCF50700885B4F /* CodeType.h in Headers */,
                                BC18C3F30E16F5CD00B34460 /* CommonIdentifiers.h in Headers */,
                                0F15F15F14B7A73E005DE37D /* CommonSlowPaths.h in Headers */,
+                               6553A33217A1F1EE008CF6F3 /* CommonSlowPathsExceptions.h in Headers */,
                                0FD82E39141AB14D00179C94 /* CompactJITCodeMap.h in Headers */,
                                A7E5A3A81797432D00E893C0 /* CompilationResult.h in Headers */,
                                BC18C3F40E16F5CD00B34460 /* Completion.h in Headers */,
                                0F21C27C14BE727600ADC64B /* ExecutionHarness.h in Headers */,
                                0FB105861675481200F8AB6E /* ExitKind.h in Headers */,
                                0F0B83AB14BCF5BB00885B4F /* ExpressionRangeInfo.h in Headers */,
+                               A7A8AF3817ADB5F3005AB174 /* Float32Array.h in Headers */,
+                               A7A8AF3917ADB5F3005AB174 /* Float64Array.h in Headers */,
                                0FDB2CC9173DA520007B3C1B /* FTLAbbreviatedTypes.h in Headers */,
                                0FEA0A08170513DB00BB722C /* FTLAbbreviations.h in Headers */,
                                0FEA0A1D1708B00700BB722C /* FTLAbstractHeap.h in Headers */,
                                0FB7F39B15ED8E4600F167B2 /* IndexingType.h in Headers */,
                                BC18C4100E16F5CD00B34460 /* InitializeThreading.h in Headers */,
                                969A07990ED1D3AE00F1F681 /* Instruction.h in Headers */,
+                               A7A8AF3B17ADB5F3005AB174 /* Int16Array.h in Headers */,
+                               A7A8AF3C17ADB5F3005AB174 /* Int32Array.h in Headers */,
+                               A7A8AF3A17ADB5F3005AB174 /* Int8Array.h in Headers */,
+                               A7A8AF3D17ADB5F3005AB174 /* IntegralTypedArrayBase.h in Headers */,
                                A78853FA17972629001440E4 /* IntendedStructureChain.h in Headers */,
                                BC11667B0E199C05008066DD /* InternalFunction.h in Headers */,
                                1429D77C0ED20D7300B89619 /* Interpreter.h in Headers */,
                                E49DC16D12EF295300184A1F /* SourceProviderCacheItem.h in Headers */,
                                0FB7F39E15ED8E4600F167B2 /* SparseArrayValueMap.h in Headers */,
                                A7386554118697B400540279 /* SpecializedThunkJIT.h in Headers */,
-                               6553A33217A1F1EE008CF6F3 /* CommonSlowPathsExceptions.h in Headers */,
                                0F5541B21613C1FB00CE3E25 /* SpecialPointer.h in Headers */,
                                0FD82E54141DAEEE00179C94 /* SpeculatedType.h in Headers */,
                                A7C1EAF217987AB600299DB2 /* StackIterator.h in Headers */,
                                A7386556118697B400540279 /* ThunkGenerators.h in Headers */,
                                141448CD13A1783700F5BA1A /* TinyBloomFilter.h in Headers */,
                                5D53726F0E1C54880021E549 /* Tracing.h in Headers */,
+                               A7A8AF3E17ADB5F3005AB174 /* TypedArrayBase.h in Headers */,
                                0FEB3ECD16237F4D00AB67AD /* TypedArrayDescriptor.h in Headers */,
                                0FF4274B158EBE91004CB9FF /* udis86.h in Headers */,
                                0FF42741158EBE8D004CB9FF /* udis86_decode.h in Headers */,
                                0FF42748158EBE91004CB9FF /* udis86_syn.h in Headers */,
                                0FF42749158EBE91004CB9FF /* udis86_types.h in Headers */,
                                A7E5AB391799E4B200D2833D /* UDis86Disassembler.h in Headers */,
+                               A7A8AF4117ADB5F3005AB174 /* Uint16Array.h in Headers */,
                                866739D313BFDE710023D87C /* Uint16WithFraction.h in Headers */,
+                               A7A8AF4217ADB5F3005AB174 /* Uint32Array.h in Headers */,
+                               A7A8AF3F17ADB5F3005AB174 /* Uint8Array.h in Headers */,
+                               A7A8AF4017ADB5F3005AB174 /* Uint8ClampedArray.h in Headers */,
                                0F5F08CF146C7633000472A9 /* UnconditionalFinalizer.h in Headers */,
                                A7B601821639FD2A00372BA3 /* UnlinkedCodeBlock.h in Headers */,
                                0F2E892C16D028AD009E4FD2 /* UnusedPointer.h in Headers */,
                                65C02850171795E200351E35 /* ARMv7Disassembler.cpp in Sources */,
                                65C0285C1717966800351E35 /* ARMv7DOpcode.cpp in Sources */,
                                0F8335B71639C1E6001443B5 /* ArrayAllocationProfile.cpp in Sources */,
+                               A7A8AF3417ADB5F3005AB174 /* ArrayBuffer.cpp in Sources */,
+                               A7A8AF3617ADB5F3005AB174 /* ArrayBufferView.cpp in Sources */,
                                147F39BF107EC37600427A48 /* ArrayConstructor.cpp in Sources */,
                                0F63945415D07055006A597C /* ArrayProfile.cpp in Sources */,
                                147F39C0107EC37600427A48 /* ArrayPrototype.cpp in Sources */,
                                0F8F94421667633500D61971 /* CodeType.cpp in Sources */,
                                147F39C1107EC37600427A48 /* CommonIdentifiers.cpp in Sources */,
                                A709F2F217A0AC2A00512E98 /* CommonSlowPaths.cpp in Sources */,
+                               6553A33117A1F1EE008CF6F3 /* CommonSlowPathsExceptions.cpp in Sources */,
                                A7E5A3A71797432D00E893C0 /* CompilationResult.cpp in Sources */,
                                147F39C2107EC37600427A48 /* Completion.cpp in Sources */,
                                146B16D812EB5B59001BEC1B /* ConservativeRoots.cpp in Sources */,
                                0FF729AF166AD35C000F5BA3 /* ProfilerCompilation.cpp in Sources */,
                                0FF729B0166AD35C000F5BA3 /* ProfilerCompilationKind.cpp in Sources */,
                                0FF729B1166AD35C000F5BA3 /* ProfilerCompiledBytecode.cpp in Sources */,
-                               6553A33117A1F1EE008CF6F3 /* CommonSlowPathsExceptions.cpp in Sources */,
                                0FF729B2166AD35C000F5BA3 /* ProfilerDatabase.cpp in Sources */,
                                0FF729B3166AD35C000F5BA3 /* ProfilerOrigin.cpp in Sources */,
                                0FF729B4166AD35C000F5BA3 /* ProfilerOriginStack.cpp in Sources */,
index 361b2be..69e644f 100644 (file)
@@ -259,6 +259,8 @@ SOURCES += \
     profiler/ProfileGenerator.cpp \
     profiler/ProfileNode.cpp \
     profiler/LegacyProfiler.cpp \
+    runtime/ArrayBuffer.cpp \
+    runtime/ArrayBufferView.cpp \
     runtime/ArgList.cpp \
     runtime/Arguments.cpp \
     runtime/ArrayConstructor.cpp \
similarity index 99%
rename from Source/WTF/wtf/ArrayBuffer.cpp
rename to Source/JavaScriptCore/runtime/ArrayBuffer.cpp
index 45b57fe..6beb6be 100644 (file)
@@ -31,7 +31,7 @@
 #include <wtf/RefPtr.h>
 #include <wtf/Vector.h>
 
-namespace WTF {
+namespace JSC {
 
 bool ArrayBuffer::transfer(ArrayBufferContents& result, Vector<RefPtr<ArrayBufferView> >& neuteredViews)
 {
similarity index 98%
rename from Source/WTF/wtf/ArrayBuffer.h
rename to Source/JavaScriptCore/runtime/ArrayBuffer.h
index 3e0a1b3..b7c734c 100644 (file)
@@ -31,7 +31,7 @@
 #include <wtf/RefCounted.h>
 #include <wtf/Vector.h>
 
-namespace WTF {
+namespace JSC {
 
 class ArrayBuffer;
 class ArrayBufferView;
@@ -251,8 +251,9 @@ ArrayBufferContents::~ArrayBufferContents()
     WTF::fastFree(m_data);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::ArrayBuffer;
+using JSC::ArrayBuffer;
+using JSC::ArrayBufferContents;
 
 #endif // ArrayBuffer_h
similarity index 89%
rename from Source/WTF/wtf/ArrayBufferView.cpp
rename to Source/JavaScriptCore/runtime/ArrayBufferView.cpp
index 202b3a2..5d86af9 100644 (file)
 
 #include "ArrayBuffer.h"
 
-namespace WTF {
+namespace JSC {
 
-ArrayBufferView::ArrayBufferView(PassRefPtr<ArrayBuffer> buffer,
-                       unsigned byteOffset)
-        : m_byteOffset(byteOffset)
-        , m_isNeuterable(true)
-        , m_buffer(buffer)
-        , m_prevView(0)
-        , m_nextView(0)
+ArrayBufferView::ArrayBufferView(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset)
+    : m_byteOffset(byteOffset)
+    , m_isNeuterable(true)
+    , m_buffer(buffer)
+    , m_prevView(0)
+    , m_nextView(0)
 {
     m_baseAddress = m_buffer ? (static_cast<char*>(m_buffer->data()) + m_byteOffset) : 0;
     if (m_buffer) 
similarity index 89%
rename from Source/WTF/wtf/ArrayBufferView.h
rename to Source/JavaScriptCore/runtime/ArrayBufferView.h
index 3b708fb..2e1ac3a 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef ArrayBufferView_h
 #define ArrayBufferView_h
 
-#include <wtf/ArrayBuffer.h>
+#include "ArrayBuffer.h"
 
 #include <algorithm>
 #include <limits.h>
 #include <wtf/RefCounted.h>
 #include <wtf/RefPtr.h>
 
-namespace WTF {
+namespace JSC {
 
 class ArrayBufferView : public RefCounted<ArrayBufferView> {
-  public:
+public:
     enum ViewType {
         TypeInt8,
         TypeUint8,
@@ -74,7 +74,7 @@ class ArrayBufferView : public RefCounted<ArrayBufferView> {
 
     WTF_EXPORT_PRIVATE virtual ~ArrayBufferView();
 
-  protected:
+protected:
     WTF_EXPORT_PRIVATE ArrayBufferView(PassRefPtr<ArrayBuffer>, unsigned byteOffset);
 
     inline bool setImpl(ArrayBufferView*, unsigned byteOffset);
@@ -83,15 +83,12 @@ class ArrayBufferView : public RefCounted<ArrayBufferView> {
 
     inline bool zeroRangeImpl(unsigned byteOffset, size_t rangeByteLength);
 
-    static inline void calculateOffsetAndLength(int start, int end, unsigned arraySize,
-                                         unsigned* offset, unsigned* length);
+    static inline void calculateOffsetAndLength(int start, int end, unsigned arraySize, unsigned* offset, unsigned* length);
 
     // Helper to verify that a given sub-range of an ArrayBuffer is
     // within range.
     template <typename T>
-    static bool verifySubRange(PassRefPtr<ArrayBuffer> buffer,
-                               unsigned byteOffset,
-                               unsigned numElements)
+    static bool verifySubRange(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned numElements)
     {
         if (!buffer)
             return false;
@@ -108,10 +105,7 @@ class ArrayBufferView : public RefCounted<ArrayBufferView> {
     // Input offset is in number of elements from this array's view;
     // output offset is in number of bytes from the underlying buffer's view.
     template <typename T>
-    static void clampOffsetAndNumElements(PassRefPtr<ArrayBuffer> buffer,
-                                          unsigned arrayByteOffset,
-                                          unsigned *offset,
-                                          unsigned *numElements)
+    static void clampOffsetAndNumElements(PassRefPtr<ArrayBuffer> buffer, unsigned arrayByteOffset, unsigned *offset, unsigned *numElements)
     {
         unsigned maxOffset = (UINT_MAX - arrayByteOffset) / sizeof(T);
         if (*offset > maxOffset) {
@@ -133,7 +127,7 @@ class ArrayBufferView : public RefCounted<ArrayBufferView> {
     unsigned m_byteOffset : 31;
     bool m_isNeuterable : 1;
 
-  private:
+private:
     friend class ArrayBuffer;
     RefPtr<ArrayBuffer> m_buffer;
     ArrayBufferView* m_prevView;
@@ -182,8 +176,7 @@ bool ArrayBufferView::zeroRangeImpl(unsigned byteOffset, size_t rangeByteLength)
     return true;
 }
 
-void ArrayBufferView::calculateOffsetAndLength(int start, int end, unsigned arraySize,
-                                               unsigned* offset, unsigned* length)
+void ArrayBufferView::calculateOffsetAndLength(int start, int end, unsigned arraySize, unsigned* offset, unsigned* length)
 {
     if (start < 0)
         start += arraySize;
@@ -201,8 +194,8 @@ void ArrayBufferView::calculateOffsetAndLength(int start, int end, unsigned arra
     *length = static_cast<unsigned>(end - start);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::ArrayBufferView;
+using JSC::ArrayBufferView;
 
 #endif // ArrayBufferView_h
similarity index 94%
rename from Source/WTF/wtf/Float32Array.h
rename to Source/JavaScriptCore/runtime/Float32Array.h
index 6672a0a..6c52574 100644 (file)
 #ifndef Float32Array_h
 #define Float32Array_h
 
-#include <wtf/TypedArrayBase.h>
+#include "TypedArrayBase.h"
 #include <wtf/MathExtras.h>
 
-namespace WTF {
+namespace JSC {
 
 class Float32Array : public TypedArrayBase<float> {
 public:
@@ -60,9 +60,7 @@ public:
     }
 
 private:
-    inline Float32Array(PassRefPtr<ArrayBuffer>,
-                    unsigned byteOffset,
-                    unsigned length);
+    inline Float32Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
     // Make constructor visible to superclass.
     friend class TypedArrayBase<float>;
 };
@@ -102,8 +100,8 @@ PassRefPtr<Float32Array> Float32Array::subarray(int start, int end) const
     return subarrayImpl<Float32Array>(start, end);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::Float32Array;
+using JSC::Float32Array;
 
 #endif // Float32Array_h
similarity index 94%
rename from Source/WTF/wtf/Float64Array.h
rename to Source/JavaScriptCore/runtime/Float64Array.h
index 3a930ce..f77edbd 100644 (file)
 #ifndef Float64Array_h
 #define Float64Array_h
 
-#include <wtf/TypedArrayBase.h>
+#include "TypedArrayBase.h"
 #include <wtf/MathExtras.h>
 
-namespace WTF {
+namespace JSC {
 
 class Float64Array : public TypedArrayBase<double> {
 public:
@@ -60,9 +60,8 @@ public:
     }
 
 private:
-    inline Float64Array(PassRefPtr<ArrayBuffer>,
-                 unsigned byteOffset,
-                 unsigned length);
+    inline Float64Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
+    
     // Make constructor visible to superclass.
     friend class TypedArrayBase<double>;
 };
@@ -102,8 +101,8 @@ PassRefPtr<Float64Array> Float64Array::subarray(int start, int end) const
     return subarrayImpl<Float64Array>(start, end);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::Float64Array;
+using JSC::Float64Array;
 
 #endif // Float64Array_h
similarity index 74%
rename from Source/WTF/wtf/Int16Array.h
rename to Source/JavaScriptCore/runtime/Int16Array.h
index 7d5a579..c466ae4 100644 (file)
 #ifndef Int16Array_h
 #define Int16Array_h
 
-#include <wtf/IntegralTypedArrayBase.h>
+#include "IntegralTypedArrayBase.h"
 
-namespace WTF {
+namespace JSC {
 
 class ArrayBuffer;
 
-class Int16Array : public IntegralTypedArrayBase<short> {
+class Int16Array : public IntegralTypedArrayBase<int16_t> {
 public:
     static inline PassRefPtr<Int16Array> create(unsigned length);
-    static inline PassRefPtr<Int16Array> create(const short* array, unsigned length);
+    static inline PassRefPtr<Int16Array> create(const int16_t* array, unsigned length);
     static inline PassRefPtr<Int16Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
 
     // Should only be used when it is known the entire array will be filled. Do
     // not return these results directly to JavaScript without filling first.
     static inline PassRefPtr<Int16Array> createUninitialized(unsigned length);
 
-    using TypedArrayBase<short>::set;
-    using IntegralTypedArrayBase<short>::set;
+    using TypedArrayBase<int16_t>::set;
+    using IntegralTypedArrayBase<int16_t>::set;
 
     inline PassRefPtr<Int16Array> subarray(int start) const;
     inline PassRefPtr<Int16Array> subarray(int start, int end) const;
@@ -54,35 +54,34 @@ public:
     }
 
 private:
-    inline Int16Array(PassRefPtr<ArrayBuffer>,
-                    unsigned byteOffset,
-                    unsigned length);
+    inline Int16Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
+
     // Make constructor visible to superclass.
-    friend class TypedArrayBase<short>;
+    friend class TypedArrayBase<int16_t>;
 };
 
 PassRefPtr<Int16Array> Int16Array::create(unsigned length)
 {
-    return TypedArrayBase<short>::create<Int16Array>(length);
+    return TypedArrayBase<int16_t>::create<Int16Array>(length);
 }
 
-PassRefPtr<Int16Array> Int16Array::create(const short* array, unsigned length)
+PassRefPtr<Int16Array> Int16Array::create(const int16_t* array, unsigned length)
 {
-    return TypedArrayBase<short>::create<Int16Array>(array, length);
+    return TypedArrayBase<int16_t>::create<Int16Array>(array, length);
 }
 
 PassRefPtr<Int16Array> Int16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
 {
-    return TypedArrayBase<short>::create<Int16Array>(buffer, byteOffset, length);
+    return TypedArrayBase<int16_t>::create<Int16Array>(buffer, byteOffset, length);
 }
 
 PassRefPtr<Int16Array> Int16Array::createUninitialized(unsigned length)
 {
-    return TypedArrayBase<short>::createUninitialized<Int16Array>(length);
+    return TypedArrayBase<int16_t>::createUninitialized<Int16Array>(length);
 }
 
 Int16Array::Int16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-    : IntegralTypedArrayBase<short>(buffer, byteOffset, length)
+    : IntegralTypedArrayBase<int16_t>(buffer, byteOffset, length)
 {
 }
 
@@ -96,8 +95,8 @@ PassRefPtr<Int16Array> Int16Array::subarray(int start, int end) const
     return subarrayImpl<Int16Array>(start, end);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::Int16Array;
+using JSC::Int16Array;
 
 #endif // Int16Array_h
similarity index 93%
rename from Source/WTF/wtf/Int32Array.h
rename to Source/JavaScriptCore/runtime/Int32Array.h
index 45a9978..2f65927 100644 (file)
@@ -27,9 +27,9 @@
 #ifndef Int32Array_h
 #define Int32Array_h
 
-#include <wtf/IntegralTypedArrayBase.h>
+#include "IntegralTypedArrayBase.h"
 
-namespace WTF {
+namespace JSC {
 
 class Int32Array : public IntegralTypedArrayBase<int> {
 public:
@@ -53,9 +53,7 @@ public:
     }
 
 private:
-    inline Int32Array(PassRefPtr<ArrayBuffer>,
-                  unsigned byteOffset,
-                  unsigned length);
+    inline Int32Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
     // Make constructor visible to superclass.
     friend class TypedArrayBase<int>;
 };
@@ -95,8 +93,8 @@ PassRefPtr<Int32Array> Int32Array::subarray(int start, int end) const
     return subarrayImpl<Int32Array>(start, end);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::Int32Array;
+using JSC::Int32Array;
 
 #endif // Int32Array_h
similarity index 73%
rename from Source/WTF/wtf/Int8Array.h
rename to Source/JavaScriptCore/runtime/Int8Array.h
index b29d2d9..90f2286 100644 (file)
 #ifndef Int8Array_h
 #define Int8Array_h
 
-#include <wtf/IntegralTypedArrayBase.h>
+#include "IntegralTypedArrayBase.h"
 
-namespace WTF {
+namespace JSC {
 
 class ArrayBuffer;
 
-class Int8Array : public IntegralTypedArrayBase<signed char> {
+class Int8Array : public IntegralTypedArrayBase<int8_t> {
 public:
     static inline PassRefPtr<Int8Array> create(unsigned length);
-    static inline PassRefPtr<Int8Array> create(const signed char* array, unsigned length);
+    static inline PassRefPtr<Int8Array> create(const int8_t* array, unsigned length);
     static inline PassRefPtr<Int8Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
 
     // Should only be used when it is known the entire array will be filled. Do
     // not return these results directly to JavaScript without filling first.
     static inline PassRefPtr<Int8Array> createUninitialized(unsigned length);
 
-    using TypedArrayBase<signed char>::set;
-    using IntegralTypedArrayBase<signed char>::set;
+    using TypedArrayBase<int8_t>::set;
+    using IntegralTypedArrayBase<int8_t>::set;
 
     inline PassRefPtr<Int8Array> subarray(int start) const;
     inline PassRefPtr<Int8Array> subarray(int start, int end) const;
@@ -55,35 +55,34 @@ public:
     }
 
 private:
-    inline Int8Array(PassRefPtr<ArrayBuffer>,
-                   unsigned byteOffset,
-                   unsigned length);
+    inline Int8Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
+
     // Make constructor visible to superclass.
-    friend class TypedArrayBase<signed char>;
+    friend class TypedArrayBase<int8_t>;
 };
 
 PassRefPtr<Int8Array> Int8Array::create(unsigned length)
 {
-    return TypedArrayBase<signed char>::create<Int8Array>(length);
+    return TypedArrayBase<int8_t>::create<Int8Array>(length);
 }
 
-PassRefPtr<Int8Array> Int8Array::create(const signed char* array, unsigned length)
+PassRefPtr<Int8Array> Int8Array::create(const int8_t* array, unsigned length)
 {
-    return TypedArrayBase<signed char>::create<Int8Array>(array, length);
+    return TypedArrayBase<int8_t>::create<Int8Array>(array, length);
 }
 
 PassRefPtr<Int8Array> Int8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
 {
-    return TypedArrayBase<signed char>::create<Int8Array>(buffer, byteOffset, length);
+    return TypedArrayBase<int8_t>::create<Int8Array>(buffer, byteOffset, length);
 }
 
 PassRefPtr<Int8Array> Int8Array::createUninitialized(unsigned length)
 {
-    return TypedArrayBase<signed char>::createUninitialized<Int8Array>(length);
+    return TypedArrayBase<int8_t>::createUninitialized<Int8Array>(length);
 }
 
 Int8Array::Int8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-    : IntegralTypedArrayBase<signed char>(buffer, byteOffset, length)
+    : IntegralTypedArrayBase<int8_t>(buffer, byteOffset, length)
 {
 }
 
@@ -97,8 +96,8 @@ PassRefPtr<Int8Array> Int8Array::subarray(int start, int end) const
     return subarrayImpl<Int8Array>(start, end);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::Int8Array;
+using JSC::Int8Array;
 
 #endif // Int8Array_h
 #ifndef IntegralTypedArrayBase_h
 #define IntegralTypedArrayBase_h
 
-#include <wtf/TypedArrayBase.h>
+#include "TypedArrayBase.h"
 #include <limits>
 #include <wtf/MathExtras.h>
 
 // Base class for all WebGL<T>Array types holding integral
 // (non-floating-point) values.
 
-namespace WTF {
+namespace JSC {
 
 template <typename T>
 class IntegralTypedArrayBase : public TypedArrayBase<T> {
-  public:
+public:
     void set(unsigned index, double value)
     {
         if (index >= TypedArrayBase<T>::m_length)
@@ -50,15 +50,14 @@ class IntegralTypedArrayBase : public TypedArrayBase<T> {
         TypedArrayBase<T>::data()[index] = static_cast<T>(static_cast<int64_t>(value));
     }
 
-  protected:
+protected:
     IntegralTypedArrayBase(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
         : TypedArrayBase<T>(buffer, byteOffset, length)
     {
     }
-};
 
-} // namespace WTF
+};
 
-using WTF::IntegralTypedArrayBase;
+} // namespace JSC
 
 #endif // IntegralTypedArrayBase_h
similarity index 95%
rename from Source/WTF/wtf/TypedArrayBase.h
rename to Source/JavaScriptCore/runtime/TypedArrayBase.h
index ade824f..4fe7a6c 100644 (file)
 #ifndef TypedArrayBase_h
 #define TypedArrayBase_h
 
-#include <wtf/ArrayBuffer.h>
-#include <wtf/ArrayBufferView.h>
+#include "ArrayBuffer.h"
+#include "ArrayBufferView.h"
 
-namespace WTF {
+namespace JSC {
 
 template <typename T>
 class TypedArrayBase : public ArrayBufferView {
-  public:
+public:
     T* data() const { return static_cast<T*>(baseAddress()); }
 
     bool set(TypedArrayBase<T>* array, unsigned offset)
@@ -108,9 +108,7 @@ protected:
     }
 
     template <class Subclass>
-    static PassRefPtr<Subclass> create(PassRefPtr<ArrayBuffer> buffer,
-                                       unsigned byteOffset,
-                                       unsigned length)
+    static PassRefPtr<Subclass> create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
     {
         RefPtr<ArrayBuffer> buf(buffer);
         if (!verifySubRange<T>(buf, byteOffset, length))
@@ -148,8 +146,8 @@ protected:
     unsigned m_length;
 };
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::TypedArrayBase;
+using JSC::TypedArrayBase;
 
 #endif // TypedArrayBase_h
similarity index 72%
rename from Source/WTF/wtf/Uint16Array.h
rename to Source/JavaScriptCore/runtime/Uint16Array.h
index ecf5f9c..6f2fab1 100644 (file)
 #ifndef Uint16Array_h
 #define Uint16Array_h
 
-#include <wtf/IntegralTypedArrayBase.h>
+#include "IntegralTypedArrayBase.h"
 
-namespace WTF {
+namespace JSC {
 
 class ArrayBuffer;
 
-class Uint16Array : public IntegralTypedArrayBase<unsigned short> {
+class Uint16Array : public IntegralTypedArrayBase<uint16_t> {
 public:
     static inline PassRefPtr<Uint16Array> create(unsigned length);
-    static inline PassRefPtr<Uint16Array> create(const unsigned short* array, unsigned length);
+    static inline PassRefPtr<Uint16Array> create(const uint16_t* array, unsigned length);
     static inline PassRefPtr<Uint16Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
 
     // Should only be used when it is known the entire array will be filled. Do
     // not return these results directly to JavaScript without filling first.
     static inline PassRefPtr<Uint16Array> createUninitialized(unsigned length);
 
-    using TypedArrayBase<unsigned short>::set;
-    using IntegralTypedArrayBase<unsigned short>::set;
+    using TypedArrayBase<uint16_t>::set;
+    using IntegralTypedArrayBase<uint16_t>::set;
 
     inline PassRefPtr<Uint16Array> subarray(int start) const;
     inline PassRefPtr<Uint16Array> subarray(int start, int end) const;
@@ -55,35 +55,33 @@ public:
     }
 
 private:
-    inline Uint16Array(PassRefPtr<ArrayBuffer>,
-                            unsigned byteOffset,
-                            unsigned length);
+    inline Uint16Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
     // Make constructor visible to superclass.
-    friend class TypedArrayBase<unsigned short>;
+    friend class TypedArrayBase<uint16_t>;
 };
 
 PassRefPtr<Uint16Array> Uint16Array::create(unsigned length)
 {
-    return TypedArrayBase<unsigned short>::create<Uint16Array>(length);
+    return TypedArrayBase<uint16_t>::create<Uint16Array>(length);
 }
 
-PassRefPtr<Uint16Array> Uint16Array::create(const unsigned short* array, unsigned length)
+PassRefPtr<Uint16Array> Uint16Array::create(const uint16_t* array, unsigned length)
 {
-    return TypedArrayBase<unsigned short>::create<Uint16Array>(array, length);
+    return TypedArrayBase<uint16_t>::create<Uint16Array>(array, length);
 }
 
 PassRefPtr<Uint16Array> Uint16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
 {
-    return TypedArrayBase<unsigned short>::create<Uint16Array>(buffer, byteOffset, length);
+    return TypedArrayBase<uint16_t>::create<Uint16Array>(buffer, byteOffset, length);
 }
 
 PassRefPtr<Uint16Array> Uint16Array::createUninitialized(unsigned length)
 {
-    return TypedArrayBase<unsigned short>::createUninitialized<Uint16Array>(length);
+    return TypedArrayBase<uint16_t>::createUninitialized<Uint16Array>(length);
 }
 
 Uint16Array::Uint16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-    : IntegralTypedArrayBase<unsigned short>(buffer, byteOffset, length)
+    : IntegralTypedArrayBase<uint16_t>(buffer, byteOffset, length)
 {
 }
 
@@ -97,8 +95,8 @@ PassRefPtr<Uint16Array> Uint16Array::subarray(int start, int end) const
     return subarrayImpl<Uint16Array>(start, end);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::Uint16Array;
+using JSC::Uint16Array;
 
 #endif // Uint16Array_h
similarity index 73%
rename from Source/WTF/wtf/Uint32Array.h
rename to Source/JavaScriptCore/runtime/Uint32Array.h
index 1badf6b..aeb01e0 100644 (file)
 #ifndef Uint32Array_h
 #define Uint32Array_h
 
-#include <wtf/IntegralTypedArrayBase.h>
+#include "IntegralTypedArrayBase.h"
 
-namespace WTF {
+namespace JSC {
 
 class ArrayBuffer;
 
-class Uint32Array : public IntegralTypedArrayBase<unsigned int> {
+class Uint32Array : public IntegralTypedArrayBase<uint32_t> {
 public:
     static inline PassRefPtr<Uint32Array> create(unsigned length);
-    static inline PassRefPtr<Uint32Array> create(const unsigned int* array, unsigned length);
+    static inline PassRefPtr<Uint32Array> create(const uint32_t* array, unsigned length);
     static inline PassRefPtr<Uint32Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
 
     // Should only be used when it is known the entire array will be filled. Do
     // not return these results directly to JavaScript without filling first.
     static inline PassRefPtr<Uint32Array> createUninitialized(unsigned length);
 
-    using TypedArrayBase<unsigned>::set;
-    using IntegralTypedArrayBase<unsigned>::set;
+    using TypedArrayBase<uint32_t>::set;
+    using IntegralTypedArrayBase<uint32_t>::set;
 
     inline PassRefPtr<Uint32Array> subarray(int start) const;
     inline PassRefPtr<Uint32Array> subarray(int start, int end) const;
@@ -55,35 +55,33 @@ public:
     }
 
 private:
-    inline Uint32Array(PassRefPtr<ArrayBuffer>,
-                          unsigned byteOffset,
-                          unsigned length);
+    inline Uint32Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
     // Make constructor visible to superclass.
-    friend class TypedArrayBase<unsigned int>;
+    friend class TypedArrayBase<uint32_t>;
 };
 
 PassRefPtr<Uint32Array> Uint32Array::create(unsigned length)
 {
-    return TypedArrayBase<unsigned int>::create<Uint32Array>(length);
+    return TypedArrayBase<uint32_t>::create<Uint32Array>(length);
 }
 
-PassRefPtr<Uint32Array> Uint32Array::create(const unsigned int* array, unsigned length)
+PassRefPtr<Uint32Array> Uint32Array::create(const uint32_t* array, unsigned length)
 {
-    return TypedArrayBase<unsigned int>::create<Uint32Array>(array, length);
+    return TypedArrayBase<uint32_t>::create<Uint32Array>(array, length);
 }
 
 PassRefPtr<Uint32Array> Uint32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
 {
-    return TypedArrayBase<unsigned int>::create<Uint32Array>(buffer, byteOffset, length);
+    return TypedArrayBase<uint32_t>::create<Uint32Array>(buffer, byteOffset, length);
 }
 
 PassRefPtr<Uint32Array> Uint32Array::createUninitialized(unsigned length)
 {
-    return TypedArrayBase<unsigned int>::createUninitialized<Uint32Array>(length);
+    return TypedArrayBase<uint32_t>::createUninitialized<Uint32Array>(length);
 }
 
 Uint32Array::Uint32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-    : IntegralTypedArrayBase<unsigned int>(buffer, byteOffset, length)
+    : IntegralTypedArrayBase<uint32_t>(buffer, byteOffset, length)
 {
 }
 
@@ -97,8 +95,8 @@ PassRefPtr<Uint32Array> Uint32Array::subarray(int start, int end) const
     return subarrayImpl<Uint32Array>(start, end);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::Uint32Array;
+using JSC::Uint32Array;
 
 #endif // Uint32Array_h
similarity index 73%
rename from Source/WTF/wtf/Uint8Array.h
rename to Source/JavaScriptCore/runtime/Uint8Array.h
index 8caf054..e65f9e1 100644 (file)
 #ifndef Uint8Array_h
 #define Uint8Array_h
 
-#include <wtf/IntegralTypedArrayBase.h>
+#include "IntegralTypedArrayBase.h"
 
-namespace WTF {
+namespace JSC {
 
 class ArrayBuffer;
 
-class Uint8Array : public IntegralTypedArrayBase<unsigned char> {
+class Uint8Array : public IntegralTypedArrayBase<uint8_t> {
 public:
     static inline PassRefPtr<Uint8Array> create(unsigned length);
-    static inline PassRefPtr<Uint8Array> create(const unsigned char* array, unsigned length);
+    static inline PassRefPtr<Uint8Array> create(const uint8_t* array, unsigned length);
     static inline PassRefPtr<Uint8Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
 
     // Should only be used when it is known the entire array will be filled. Do
     // not return these results directly to JavaScript without filling first.
     static inline PassRefPtr<Uint8Array> createUninitialized(unsigned length);
 
-    using TypedArrayBase<unsigned char>::set;
-    using IntegralTypedArrayBase<unsigned char>::set;
+    using TypedArrayBase<uint8_t>::set;
+    using IntegralTypedArrayBase<uint8_t>::set;
 
     inline PassRefPtr<Uint8Array> subarray(int start) const;
     inline PassRefPtr<Uint8Array> subarray(int start, int end) const;
@@ -55,35 +55,33 @@ public:
     }
 
 protected:
-    inline Uint8Array(PassRefPtr<ArrayBuffer>,
-                           unsigned byteOffset,
-                           unsigned length);
+    inline Uint8Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
     // Make constructor visible to superclass.
-    friend class TypedArrayBase<unsigned char>;
+    friend class TypedArrayBase<uint8_t>;
 };
 
 PassRefPtr<Uint8Array> Uint8Array::create(unsigned length)
 {
-    return TypedArrayBase<unsigned char>::create<Uint8Array>(length);
+    return TypedArrayBase<uint8_t>::create<Uint8Array>(length);
 }
 
-PassRefPtr<Uint8Array> Uint8Array::create(const unsigned char* array, unsigned length)
+PassRefPtr<Uint8Array> Uint8Array::create(const uint8_t* array, unsigned length)
 {
-    return TypedArrayBase<unsigned char>::create<Uint8Array>(array, length);
+    return TypedArrayBase<uint8_t>::create<Uint8Array>(array, length);
 }
 
 PassRefPtr<Uint8Array> Uint8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
 {
-    return TypedArrayBase<unsigned char>::create<Uint8Array>(buffer, byteOffset, length);
+    return TypedArrayBase<uint8_t>::create<Uint8Array>(buffer, byteOffset, length);
 }
 
 PassRefPtr<Uint8Array> Uint8Array::createUninitialized(unsigned length)
 {
-    return TypedArrayBase<unsigned char>::createUninitialized<Uint8Array>(length);
+    return TypedArrayBase<uint8_t>::createUninitialized<Uint8Array>(length);
 }
 
 Uint8Array::Uint8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-: IntegralTypedArrayBase<unsigned char>(buffer, byteOffset, length)
+: IntegralTypedArrayBase<uint8_t>(buffer, byteOffset, length)
 {
 }
 
@@ -97,8 +95,8 @@ PassRefPtr<Uint8Array> Uint8Array::subarray(int start, int end) const
     return subarrayImpl<Uint8Array>(start, end);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::Uint8Array;
+using JSC::Uint8Array;
 
 #endif // Uint8Array_h
similarity index 78%
rename from Source/WTF/wtf/Uint8ClampedArray.h
rename to Source/JavaScriptCore/runtime/Uint8ClampedArray.h
index 75cc2d8..6fffae7 100644 (file)
 #ifndef Uint8ClampedArray_h
 #define Uint8ClampedArray_h
 
-#include <wtf/Platform.h>
-
-#include <wtf/Uint8Array.h>
+#include "Uint8Array.h"
 #include <wtf/MathExtras.h>
 
-namespace WTF {
+namespace JSC {
 
 class Uint8ClampedArray : public Uint8Array {
 public:
     static inline PassRefPtr<Uint8ClampedArray> create(unsigned length);
-    static inline PassRefPtr<Uint8ClampedArray> create(const unsigned char* array, unsigned length);
+    static inline PassRefPtr<Uint8ClampedArray> create(const uint8_t* array, unsigned length);
     static inline PassRefPtr<Uint8ClampedArray> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
 
     // Should only be used when it is known the entire array will be filled. Do
@@ -50,7 +48,7 @@ public:
     // zero the allocated memory.
     inline void zeroFill();
 
-    using TypedArrayBase<unsigned char>::set;
+    using TypedArrayBase<uint8_t>::set;
     inline void set(unsigned index, double value);
 
     inline PassRefPtr<Uint8ClampedArray> subarray(int start) const;
@@ -62,31 +60,29 @@ public:
     }
 
 private:
-    inline Uint8ClampedArray(PassRefPtr<ArrayBuffer>,
-                             unsigned byteOffset,
-                             unsigned length);
+    inline Uint8ClampedArray(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
     // Make constructor visible to superclass.
-    friend class TypedArrayBase<unsigned char>;
+    friend class TypedArrayBase<uint8_t>;
 };
 
 PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(unsigned length)
 {
-    return TypedArrayBase<unsigned char>::create<Uint8ClampedArray>(length);
+    return TypedArrayBase<uint8_t>::create<Uint8ClampedArray>(length);
 }
 
-PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(const unsigned char* array, unsigned length)
+PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(const uint8_t* array, unsigned length)
 {
-    return TypedArrayBase<unsigned char>::create<Uint8ClampedArray>(array, length);
+    return TypedArrayBase<uint8_t>::create<Uint8ClampedArray>(array, length);
 }
 
 PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
 {
-    return TypedArrayBase<unsigned char>::create<Uint8ClampedArray>(buffer, byteOffset, length);
+    return TypedArrayBase<uint8_t>::create<Uint8ClampedArray>(buffer, byteOffset, length);
 }
 
 PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::createUninitialized(unsigned length)
 {
-    return TypedArrayBase<unsigned char>::createUninitialized<Uint8ClampedArray>(length);
+    return TypedArrayBase<uint8_t>::createUninitialized<Uint8ClampedArray>(length);
 }
 
 void Uint8ClampedArray::zeroFill()
@@ -102,7 +98,7 @@ void Uint8ClampedArray::set(unsigned index, double value)
         value = 0;
     else if (value > 255)
         value = 255;
-    data()[index] = static_cast<unsigned char>(lrint(value));
+    data()[index] = static_cast<uint8_t>(lrint(value));
 }
 
 Uint8ClampedArray::Uint8ClampedArray(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
@@ -120,8 +116,8 @@ PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::subarray(int start, int end) co
     return subarrayImpl<Uint8ClampedArray>(start, end);
 }
 
-} // namespace WTF
+} // namespace JSC
 
-using WTF::Uint8ClampedArray;
+using JSC::Uint8ClampedArray;
 
 #endif // Uint8ClampedArray_h
index e4843b1..e227e24 100644 (file)
@@ -69,8 +69,13 @@ namespace JSC {
     class CodeCache;
     class CommonIdentifiers;
     class ExecState;
+    class Float32Array;
+    class Float64Array;
     class HandleStack;
     class IdentifierTable;
+    class Int8Array;
+    class Int16Array;
+    class Int32Array;
     class Interpreter;
     class JSGlobalObject;
     class JSObject;
@@ -88,6 +93,10 @@ namespace JSC {
 #if ENABLE(REGEXP_TRACING)
     class RegExp;
 #endif
+    class Uint8Array;
+    class Uint8ClampedArray;
+    class Uint16Array;
+    class Uint32Array;
     class UnlinkedCodeBlock;
     class UnlinkedEvalCodeBlock;
     class UnlinkedFunctionExecutable;
index bf83203..68c95b1 100644 (file)
@@ -1,3 +1,16 @@
+2013-08-05  Oliver Hunt  <oliver@apple.com>
+
+        Move TypedArray implementation into JSC
+        https://bugs.webkit.org/show_bug.cgi?id=119489
+
+        Reviewed by Filip Pizlo.
+
+        Remove TypedArray implementation from WTF
+
+        * GNUmakefile.list.am:
+        * WTF.xcodeproj/project.pbxproj:
+        * wtf/Forward.h:
+
 2013-08-02  Benjamin Poulain  <benjamin@webkit.org>
 
         Remove a bunch of redundant checks for empty string in StringImpl
index 6749c6a..f6a380b 100644 (file)
@@ -4,10 +4,6 @@ wtf_sources += \
     Source/WTF/wtf/ASCIICType.h \
     Source/WTF/wtf/AVLTree.h \
     Source/WTF/wtf/Alignment.h \
-    Source/WTF/wtf/ArrayBuffer.cpp \
-    Source/WTF/wtf/ArrayBuffer.h \
-    Source/WTF/wtf/ArrayBufferView.cpp \
-    Source/WTF/wtf/ArrayBufferView.h \
     Source/WTF/wtf/Assertions.cpp \
     Source/WTF/wtf/Assertions.h \
     Source/WTF/wtf/Atomics.cpp \
@@ -56,8 +52,6 @@ wtf_sources += \
     Source/WTF/wtf/FilePrintStream.cpp \
     Source/WTF/wtf/FilePrintStream.h \
     Source/WTF/wtf/FixedArray.h \
-    Source/WTF/wtf/Float32Array.h \
-    Source/WTF/wtf/Float64Array.h \
     Source/WTF/wtf/Forward.h \
     Source/WTF/wtf/FunctionDispatcher.cpp \
     Source/WTF/wtf/FunctionDispatcher.h \
@@ -76,10 +70,6 @@ wtf_sources += \
     Source/WTF/wtf/HexNumber.h \
     Source/WTF/wtf/InlineASM.h \
     Source/WTF/wtf/Insertion.h \
-    Source/WTF/wtf/Int16Array.h \
-    Source/WTF/wtf/Int32Array.h \
-    Source/WTF/wtf/Int8Array.h \
-    Source/WTF/wtf/IntegralTypedArrayBase.h \
     Source/WTF/wtf/ListDump.h \
     Source/WTF/wtf/ListHashSet.h \
     Source/WTF/wtf/LLVMHeaders.h \
@@ -189,11 +179,6 @@ wtf_sources += \
     Source/WTF/wtf/TriState.h \
     Source/WTF/wtf/TypeTraits.cpp \
     Source/WTF/wtf/TypeTraits.h \
-    Source/WTF/wtf/TypedArrayBase.h \
-    Source/WTF/wtf/Uint16Array.h \
-    Source/WTF/wtf/Uint32Array.h \
-    Source/WTF/wtf/Uint8Array.h \
-    Source/WTF/wtf/Uint8ClampedArray.h \
     Source/WTF/wtf/UnionFind.h \
     Source/WTF/wtf/UniStdExtras.h \
     Source/WTF/wtf/VMTags.h \
index 16a9c8b..4a0a682 100644 (file)
@@ -21,8 +21,6 @@ wince* {
 
 HEADERS += \
     Alignment.h \
-    ArrayBuffer.h \
-    ArrayBufferView.h \
     ASCIICType.h \
     Assertions.h \
     Atomics.h \
@@ -64,8 +62,6 @@ HEADERS += \
     FeatureDefines.h \
     FilePrintStream.h \
     FixedArray.h \
-    Float32Array.h \
-    Float64Array.h \
     Forward.h \
     FunctionDispatcher.h \
     Functional.h \
@@ -79,9 +75,6 @@ HEADERS += \
     HashTable.h \
     HashTraits.h \
     HexNumber.h \
-    Int16Array.h \
-    Int32Array.h \
-    Int8Array.h \
     ListHashSet.h \
     Locker.h \
     MainThread.h \
@@ -163,10 +156,6 @@ HEADERS += \
     ThreadSafeRefCounted.h \
     ThreadSpecific.h \
     TypeTraits.h \
-    Uint16Array.h \
-    Uint32Array.h \
-    Uint8Array.h \
-    Uint8ClampedArray.h \
     unicode/CharacterNames.h \
     unicode/Collator.h \
     unicode/icu/UnicodeIcu.h \
@@ -184,8 +173,6 @@ HEADERS += \
 unix: HEADERS += ThreadIdentifierDataPthreads.h
 
 SOURCES += \
-    ArrayBuffer.cpp \
-    ArrayBufferView.cpp \
     Assertions.cpp \
     Atomics.cpp \
     BitVector.cpp \
index 3f05019..e4f5c55 100644 (file)
@@ -51,8 +51,6 @@
     </ProjectConfiguration>\r
   </ItemGroup>\r
   <ItemGroup>\r
-    <ClCompile Include="..\wtf\ArrayBuffer.cpp" />\r
-    <ClCompile Include="..\wtf\ArrayBufferView.cpp" />\r
     <ClCompile Include="..\wtf\Assertions.cpp" />\r
     <ClCompile Include="..\wtf\BitVector.cpp" />\r
     <ClCompile Include="..\wtf\CompilationThread.cpp" />\r
     <ClInclude Include="..\wtf\CompilationThread.h" />\r
     <ClInclude Include="..\WTF\config.h" />\r
     <ClInclude Include="..\wtf\Alignment.h" />\r
-    <ClInclude Include="..\wtf\ArrayBuffer.h" />\r
-    <ClInclude Include="..\wtf\ArrayBufferView.h" />\r
     <ClInclude Include="..\wtf\ASCIICType.h" />\r
     <ClInclude Include="..\wtf\Assertions.h" />\r
     <ClInclude Include="..\wtf\Atomics.h" />\r
     <ClInclude Include="..\wtf\FeatureDefines.h" />\r
     <ClInclude Include="..\wtf\FilePrintStream.h" />\r
     <ClInclude Include="..\wtf\FixedArray.h" />\r
-    <ClInclude Include="..\wtf\Float32Array.h" />\r
-    <ClInclude Include="..\wtf\Float64Array.h" />\r
     <ClInclude Include="..\wtf\Forward.h" />\r
     <ClInclude Include="..\wtf\FunctionDispatcher.h" />\r
     <ClInclude Include="..\wtf\Functional.h" />\r
     <ClInclude Include="..\wtf\HashTable.h" />\r
     <ClInclude Include="..\wtf\HashTraits.h" />\r
     <ClInclude Include="..\wtf\HexNumber.h" />\r
-    <ClInclude Include="..\wtf\Int16Array.h" />\r
-    <ClInclude Include="..\wtf\Int32Array.h" />\r
-    <ClInclude Include="..\wtf\Int8Array.h" />\r
     <ClInclude Include="..\wtf\ListHashSet.h" />\r
     <ClInclude Include="..\wtf\Locker.h" />\r
     <ClInclude Include="..\wtf\MainThread.h" />\r
     <ClInclude Include="..\wtf\threadspecific.h" />\r
     <ClInclude Include="..\wtf\threads\BinarySemaphore.h" />\r
     <ClInclude Include="..\wtf\TypeTraits.h" />\r
-    <ClInclude Include="..\wtf\Uint16Array.h" />\r
-    <ClInclude Include="..\wtf\Uint32Array.h" />\r
-    <ClInclude Include="..\wtf\Uint8Array.h" />\r
     <ClInclude Include="..\wtf\unicode\CharacterNames.h" />\r
     <ClInclude Include="..\wtf\unicode\Collator.h" />\r
     <ClInclude Include="..\wtf\unicode\icu\UnicodeIcu.h" />\r
index a971035..83cf081 100644 (file)
     <ClCompile Include="..\wtf\unicode\UTF8.cpp">\r
       <Filter>wtf\unicode</Filter>\r
     </ClCompile>\r
-    <ClCompile Include="..\wtf\ArrayBuffer.cpp">\r
-      <Filter>wtf</Filter>\r
-    </ClCompile>\r
-    <ClCompile Include="..\wtf\ArrayBufferView.cpp">\r
-      <Filter>wtf</Filter>\r
-    </ClCompile>\r
     <ClCompile Include="..\wtf\Assertions.cpp">\r
       <Filter>wtf</Filter>\r
     </ClCompile>\r
     <ClInclude Include="..\wtf\WTFThreadData.h">\r
       <Filter>wtf</Filter>\r
     </ClInclude>\r
-    <ClInclude Include="..\wtf\ArrayBuffer.h">\r
-      <Filter>wtf</Filter>\r
-    </ClInclude>\r
-    <ClInclude Include="..\wtf\ArrayBufferView.h">\r
-      <Filter>wtf</Filter>\r
-    </ClInclude>\r
     <ClInclude Include="..\wtf\ASCIICType.h">\r
       <Filter>wtf</Filter>\r
     </ClInclude>\r
     <ClInclude Include="..\wtf\FixedArray.h">\r
       <Filter>wtf</Filter>\r
     </ClInclude>\r
-    <ClInclude Include="..\wtf\Float32Array.h">\r
-      <Filter>wtf</Filter>\r
-    </ClInclude>\r
-    <ClInclude Include="..\wtf\Float64Array.h">\r
-      <Filter>wtf</Filter>\r
-    </ClInclude>\r
     <ClInclude Include="..\wtf\Forward.h">\r
       <Filter>wtf</Filter>\r
     </ClInclude>\r
     <ClInclude Include="..\wtf\HexNumber.h">\r
       <Filter>wtf</Filter>\r
     </ClInclude>\r
-    <ClInclude Include="..\wtf\Int16Array.h">\r
-      <Filter>wtf</Filter>\r
-    </ClInclude>\r
-    <ClInclude Include="..\wtf\Int32Array.h">\r
-      <Filter>wtf</Filter>\r
-    </ClInclude>\r
-    <ClInclude Include="..\wtf\Int8Array.h">\r
-      <Filter>wtf</Filter>\r
-    </ClInclude>\r
     <ClInclude Include="..\wtf\ListHashSet.h">\r
       <Filter>wtf</Filter>\r
     </ClInclude>\r
     <ClInclude Include="..\wtf\TypeTraits.h">\r
       <Filter>wtf</Filter>\r
     </ClInclude>\r
-    <ClInclude Include="..\wtf\Uint16Array.h">\r
-      <Filter>wtf</Filter>\r
-    </ClInclude>\r
-    <ClInclude Include="..\wtf\Uint32Array.h">\r
-      <Filter>wtf</Filter>\r
-    </ClInclude>\r
-    <ClInclude Include="..\wtf\Uint8Array.h">\r
-      <Filter>wtf</Filter>\r
-    </ClInclude>\r
     <ClInclude Include="..\wtf\ValueCheck.h">\r
       <Filter>wtf</Filter>\r
     </ClInclude>\r
index a2af68f..7491ffa 100644 (file)
                A748745417A0BDAE00FA04CB /* StringHashDumpContext.h in Headers */ = {isa = PBXBuildFile; fileRef = A748745117A0BDAE00FA04CB /* StringHashDumpContext.h */; };
                A876DBD8151816E500DADB95 /* Platform.h in Headers */ = {isa = PBXBuildFile; fileRef = A876DBD7151816E500DADB95 /* Platform.h */; };
                A8A4737F151A825B004123FF /* Alignment.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47254151A825A004123FF /* Alignment.h */; };
-               A8A47381151A825B004123FF /* ArrayBuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A47256151A825A004123FF /* ArrayBuffer.cpp */; };
-               A8A47382151A825B004123FF /* ArrayBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47257151A825A004123FF /* ArrayBuffer.h */; };
-               A8A47383151A825B004123FF /* ArrayBufferView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A47258151A825A004123FF /* ArrayBufferView.cpp */; };
-               A8A47384151A825B004123FF /* ArrayBufferView.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47259151A825A004123FF /* ArrayBufferView.h */; };
                A8A47385151A825B004123FF /* ASCIICType.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A4725A151A825A004123FF /* ASCIICType.h */; };
                A8A47386151A825B004123FF /* Assertions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A4725B151A825A004123FF /* Assertions.cpp */; };
                A8A47387151A825B004123FF /* Assertions.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A4725C151A825A004123FF /* Assertions.h */; };
                A8A473C3151A825B004123FF /* FastMalloc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A472A1151A825A004123FF /* FastMalloc.cpp */; };
                A8A473C4151A825B004123FF /* FastMalloc.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A2151A825A004123FF /* FastMalloc.h */; };
                A8A473C5151A825B004123FF /* FixedArray.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A3151A825A004123FF /* FixedArray.h */; };
-               A8A473C6151A825B004123FF /* Float32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A4151A825A004123FF /* Float32Array.h */; };
-               A8A473C7151A825B004123FF /* Float64Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A5151A825A004123FF /* Float64Array.h */; };
                A8A473C8151A825B004123FF /* Forward.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A6151A825A004123FF /* Forward.h */; };
                A8A473C9151A825B004123FF /* Functional.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A7151A825A004123FF /* Functional.h */; };
                A8A473CA151A825B004123FF /* GetPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A8151A825A004123FF /* GetPtr.h */; };
                A8A473DA151A825B004123FF /* HashTraits.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472BA151A825A004123FF /* HashTraits.h */; };
                A8A473DB151A825B004123FF /* HexNumber.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472BB151A825A004123FF /* HexNumber.h */; };
                A8A473DC151A825B004123FF /* InlineASM.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472BC151A825A004123FF /* InlineASM.h */; };
-               A8A473DD151A825B004123FF /* Int8Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472BD151A825A004123FF /* Int8Array.h */; };
-               A8A473DE151A825B004123FF /* Int16Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472BE151A825A004123FF /* Int16Array.h */; };
-               A8A473DF151A825B004123FF /* Int32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472BF151A825A004123FF /* Int32Array.h */; };
-               A8A473E0151A825B004123FF /* IntegralTypedArrayBase.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472C0151A825A004123FF /* IntegralTypedArrayBase.h */; };
                A8A473E1151A825B004123FF /* ListHashSet.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472C1151A825A004123FF /* ListHashSet.h */; };
                A8A473E3151A825B004123FF /* Locker.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472C3151A825A004123FF /* Locker.h */; };
                A8A473E4151A825B004123FF /* MainThreadMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = A8A472C5151A825A004123FF /* MainThreadMac.mm */; };
                A8A47452151A825B004123FF /* BinarySemaphore.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A4733B151A825B004123FF /* BinarySemaphore.h */; };
                A8A47454151A825B004123FF /* ThreadSafeRefCounted.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A4733E151A825B004123FF /* ThreadSafeRefCounted.h */; };
                A8A47455151A825B004123FF /* ThreadSpecific.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A4733F151A825B004123FF /* ThreadSpecific.h */; };
-               A8A47457151A825B004123FF /* TypedArrayBase.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47341151A825B004123FF /* TypedArrayBase.h */; };
                A8A47458151A825B004123FF /* TypeTraits.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A47342151A825B004123FF /* TypeTraits.cpp */; };
                A8A47459151A825B004123FF /* TypeTraits.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47343151A825B004123FF /* TypeTraits.h */; };
-               A8A4745A151A825B004123FF /* Uint8Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47344151A825B004123FF /* Uint8Array.h */; };
-               A8A4745B151A825B004123FF /* Uint8ClampedArray.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47345151A825B004123FF /* Uint8ClampedArray.h */; };
-               A8A4745C151A825B004123FF /* Uint16Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47346151A825B004123FF /* Uint16Array.h */; };
-               A8A4745D151A825B004123FF /* Uint32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47347151A825B004123FF /* Uint32Array.h */; };
                A8A4745E151A825B004123FF /* CharacterNames.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47349151A825B004123FF /* CharacterNames.h */; };
                A8A4745F151A825B004123FF /* Collator.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A4734A151A825B004123FF /* Collator.h */; };
                A8A47460151A825B004123FF /* CollatorDefault.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A4734B151A825B004123FF /* CollatorDefault.cpp */; };
                A748745117A0BDAE00FA04CB /* StringHashDumpContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StringHashDumpContext.h; sourceTree = "<group>"; };
                A876DBD7151816E500DADB95 /* Platform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Platform.h; sourceTree = "<group>"; };
                A8A47254151A825A004123FF /* Alignment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Alignment.h; sourceTree = "<group>"; };
-               A8A47256151A825A004123FF /* ArrayBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ArrayBuffer.cpp; sourceTree = "<group>"; };
-               A8A47257151A825A004123FF /* ArrayBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArrayBuffer.h; sourceTree = "<group>"; };
-               A8A47258151A825A004123FF /* ArrayBufferView.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ArrayBufferView.cpp; sourceTree = "<group>"; };
-               A8A47259151A825A004123FF /* ArrayBufferView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArrayBufferView.h; sourceTree = "<group>"; };
                A8A4725A151A825A004123FF /* ASCIICType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASCIICType.h; sourceTree = "<group>"; };
                A8A4725B151A825A004123FF /* Assertions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Assertions.cpp; sourceTree = "<group>"; };
                A8A4725C151A825A004123FF /* Assertions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Assertions.h; sourceTree = "<group>"; };
                A8A472A1151A825A004123FF /* FastMalloc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FastMalloc.cpp; sourceTree = "<group>"; };
                A8A472A2151A825A004123FF /* FastMalloc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FastMalloc.h; sourceTree = "<group>"; };
                A8A472A3151A825A004123FF /* FixedArray.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FixedArray.h; sourceTree = "<group>"; };
-               A8A472A4151A825A004123FF /* Float32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Float32Array.h; sourceTree = "<group>"; };
-               A8A472A5151A825A004123FF /* Float64Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Float64Array.h; sourceTree = "<group>"; };
                A8A472A6151A825A004123FF /* Forward.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Forward.h; sourceTree = "<group>"; };
                A8A472A7151A825A004123FF /* Functional.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Functional.h; sourceTree = "<group>"; };
                A8A472A8151A825A004123FF /* GetPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GetPtr.h; sourceTree = "<group>"; };
                A8A472BA151A825A004123FF /* HashTraits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HashTraits.h; sourceTree = "<group>"; };
                A8A472BB151A825A004123FF /* HexNumber.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HexNumber.h; sourceTree = "<group>"; };
                A8A472BC151A825A004123FF /* InlineASM.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InlineASM.h; sourceTree = "<group>"; };
-               A8A472BD151A825A004123FF /* Int8Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int8Array.h; sourceTree = "<group>"; };
-               A8A472BE151A825A004123FF /* Int16Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int16Array.h; sourceTree = "<group>"; };
-               A8A472BF151A825A004123FF /* Int32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int32Array.h; sourceTree = "<group>"; };
-               A8A472C0151A825A004123FF /* IntegralTypedArrayBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IntegralTypedArrayBase.h; sourceTree = "<group>"; };
                A8A472C1151A825A004123FF /* ListHashSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ListHashSet.h; sourceTree = "<group>"; };
                A8A472C3151A825A004123FF /* Locker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Locker.h; sourceTree = "<group>"; };
                A8A472C5151A825A004123FF /* MainThreadMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MainThreadMac.mm; sourceTree = "<group>"; };
                A8A4733B151A825B004123FF /* BinarySemaphore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BinarySemaphore.h; sourceTree = "<group>"; };
                A8A4733E151A825B004123FF /* ThreadSafeRefCounted.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThreadSafeRefCounted.h; sourceTree = "<group>"; };
                A8A4733F151A825B004123FF /* ThreadSpecific.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThreadSpecific.h; sourceTree = "<group>"; };
-               A8A47341151A825B004123FF /* TypedArrayBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TypedArrayBase.h; sourceTree = "<group>"; };
                A8A47342151A825B004123FF /* TypeTraits.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TypeTraits.cpp; sourceTree = "<group>"; };
                A8A47343151A825B004123FF /* TypeTraits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TypeTraits.h; sourceTree = "<group>"; };
-               A8A47344151A825B004123FF /* Uint8Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint8Array.h; sourceTree = "<group>"; };
-               A8A47345151A825B004123FF /* Uint8ClampedArray.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint8ClampedArray.h; sourceTree = "<group>"; };
-               A8A47346151A825B004123FF /* Uint16Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint16Array.h; sourceTree = "<group>"; };
-               A8A47347151A825B004123FF /* Uint32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uint32Array.h; sourceTree = "<group>"; };
                A8A47349151A825B004123FF /* CharacterNames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CharacterNames.h; sourceTree = "<group>"; };
                A8A4734A151A825B004123FF /* Collator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Collator.h; sourceTree = "<group>"; };
                A8A4734B151A825B004123FF /* CollatorDefault.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CollatorDefault.cpp; sourceTree = "<group>"; };
                                A8A47339151A825B004123FF /* threads */,
                                A8A47348151A825B004123FF /* unicode */,
                                A8A47254151A825A004123FF /* Alignment.h */,
-                               A8A47256151A825A004123FF /* ArrayBuffer.cpp */,
-                               A8A47257151A825A004123FF /* ArrayBuffer.h */,
-                               A8A47258151A825A004123FF /* ArrayBufferView.cpp */,
-                               A8A47259151A825A004123FF /* ArrayBufferView.h */,
                                A8A4725A151A825A004123FF /* ASCIICType.h */,
                                A8A4725B151A825A004123FF /* Assertions.cpp */,
                                A8A4725C151A825A004123FF /* Assertions.h */,
                                0F9D335B165DBA73005AD387 /* FilePrintStream.cpp */,
                                0F9D335C165DBA73005AD387 /* FilePrintStream.h */,
                                A8A472A3151A825A004123FF /* FixedArray.h */,
-                               A8A472A4151A825A004123FF /* Float32Array.h */,
-                               A8A472A5151A825A004123FF /* Float64Array.h */,
                                A8A472A6151A825A004123FF /* Forward.h */,
                                A8A472A7151A825A004123FF /* Functional.h */,
                                1A1D8B9D1731879800141DA4 /* FunctionDispatcher.cpp */,
                                A8A472BB151A825A004123FF /* HexNumber.h */,
                                A8A472BC151A825A004123FF /* InlineASM.h */,
                                A70DA0821799F04D00529A9B /* Insertion.h */,
-                               A8A472BE151A825A004123FF /* Int16Array.h */,
-                               A8A472BF151A825A004123FF /* Int32Array.h */,
-                               A8A472BD151A825A004123FF /* Int8Array.h */,
-                               A8A472C0151A825A004123FF /* IntegralTypedArrayBase.h */,
                                A70DA0831799F04D00529A9B /* ListDump.h */,
                                A8A472C1151A825A004123FF /* ListHashSet.h */,
                                A736B3581799E11A00C6F05E /* LLVMHeaders.h */,
                                A8A4733E151A825B004123FF /* ThreadSafeRefCounted.h */,
                                A8A4733F151A825B004123FF /* ThreadSpecific.h */,
                                149EF16216BBFE0D000A4331 /* TriState.h */,
-                               A8A47341151A825B004123FF /* TypedArrayBase.h */,
                                A8A47342151A825B004123FF /* TypeTraits.cpp */,
                                A8A47343151A825B004123FF /* TypeTraits.h */,
-                               A8A47346151A825B004123FF /* Uint16Array.h */,
-                               A8A47347151A825B004123FF /* Uint32Array.h */,
-                               A8A47344151A825B004123FF /* Uint8Array.h */,
-                               A8A47345151A825B004123FF /* Uint8ClampedArray.h */,
                                A8A4735C151A825B004123FF /* UnionFind.h */,
                                A8A4736F151A825B004123FF /* ValueCheck.h */,
                                A8A47370151A825B004123FF /* Vector.h */,
                        buildActionMask = 2147483647;
                        files = (
                                A8A4737F151A825B004123FF /* Alignment.h in Headers */,
-                               A8A47382151A825B004123FF /* ArrayBuffer.h in Headers */,
-                               A8A47384151A825B004123FF /* ArrayBufferView.h in Headers */,
                                A8A47385151A825B004123FF /* ASCIICType.h in Headers */,
                                A8A47434151A825B004123FF /* ASCIIFastPath.h in Headers */,
                                A8A47387151A825B004123FF /* Assertions.h in Headers */,
                                0F9D3361165DBA73005AD387 /* FilePrintStream.h in Headers */,
                                A8A473B6151A825B004123FF /* fixed-dtoa.h in Headers */,
                                A8A473C5151A825B004123FF /* FixedArray.h in Headers */,
-                               A8A473C6151A825B004123FF /* Float32Array.h in Headers */,
-                               A8A473C7151A825B004123FF /* Float64Array.h in Headers */,
                                A8A473C8151A825B004123FF /* Forward.h in Headers */,
                                A8A473C9151A825B004123FF /* Functional.h in Headers */,
                                1A1D8B9C173186CE00141DA4 /* FunctionDispatcher.h in Headers */,
                                A8A473DB151A825B004123FF /* HexNumber.h in Headers */,
                                A8A473DC151A825B004123FF /* InlineASM.h in Headers */,
                                A70DA0841799F04D00529A9B /* Insertion.h in Headers */,
-                               A8A473DE151A825B004123FF /* Int16Array.h in Headers */,
-                               A8A473DF151A825B004123FF /* Int32Array.h in Headers */,
-                               A8A473DD151A825B004123FF /* Int8Array.h in Headers */,
                                26147B0A15DDCCDC00DDB907 /* IntegerToStringConversion.h in Headers */,
-                               A8A473E0151A825B004123FF /* IntegralTypedArrayBase.h in Headers */,
                                A70DA0851799F04D00529A9B /* ListDump.h in Headers */,
                                A8A473E1151A825B004123FF /* ListHashSet.h in Headers */,
                                A8A473E3151A825B004123FF /* Locker.h in Headers */,
                                A8A47454151A825B004123FF /* ThreadSafeRefCounted.h in Headers */,
                                A8A47455151A825B004123FF /* ThreadSpecific.h in Headers */,
                                149EF16316BBFE0D000A4331 /* TriState.h in Headers */,
-                               A8A47457151A825B004123FF /* TypedArrayBase.h in Headers */,
                                A8A47459151A825B004123FF /* TypeTraits.h in Headers */,
-                               A8A4745C151A825B004123FF /* Uint16Array.h in Headers */,
-                               A8A4745D151A825B004123FF /* Uint32Array.h in Headers */,
-                               A8A4745A151A825B004123FF /* Uint8Array.h in Headers */,
-                               A8A4745B151A825B004123FF /* Uint8ClampedArray.h in Headers */,
                                A8A47467151A825B004123FF /* Unicode.h in Headers */,
                                A8A47464151A825B004123FF /* UnicodeIcu.h in Headers */,
                                A8A47468151A825B004123FF /* UnicodeMacrosFromICU.h in Headers */,
                        isa = PBXSourcesBuildPhase;
                        buildActionMask = 2147483647;
                        files = (
-                               A8A47381151A825B004123FF /* ArrayBuffer.cpp in Sources */,
-                               A8A47383151A825B004123FF /* ArrayBufferView.cpp in Sources */,
                                A8A47386151A825B004123FF /* Assertions.cpp in Sources */,
                                A8A47435151A825B004123FF /* AtomicString.cpp in Sources */,
                                9BC70F05176C379D00101DEC /* AtomicStringTable.cpp in Sources */,
index c613736..0860ee9 100644 (file)
@@ -145,8 +145,6 @@ set(WTF_HEADERS
 )
 
 set(WTF_SOURCES
-    ArrayBuffer.cpp
-    ArrayBufferView.cpp
     Assertions.cpp
     Atomics.cpp
     BitVector.cpp
index 82c2e18..2a47503 100644 (file)
@@ -33,30 +33,19 @@ namespace WTF {
     template<typename T> class PassRefPtr;
     template<typename T> class RefPtr;
     template<typename T, size_t inlineCapacity, typename OverflowHandler> class Vector;
-    
-    class ArrayBuffer;
-    class ArrayBufferView;
+
     class AtomicString;
     class AtomicStringImpl;
     class BinarySemaphore;
     class CString;
     class Decoder;
     class Encoder;
-    class Float32Array;
-    class Float64Array;
     class FunctionDispatcher;
-    class Int8Array;
-    class Int16Array;
-    class Int32Array;
     class PrintStream;
     class String;
     template <typename T> class StringBuffer;
     class StringBuilder;
     class StringImpl;
-    class Uint8Array;
-    class Uint8ClampedArray;
-    class Uint16Array;
-    class Uint32Array;
 }
 
 using WTF::Function;
@@ -68,28 +57,17 @@ using WTF::PassRefPtr;
 using WTF::RefPtr;
 using WTF::Vector;
 
-using WTF::ArrayBuffer;
-using WTF::ArrayBufferView;
 using WTF::AtomicString;
 using WTF::AtomicStringImpl;
 using WTF::BinarySemaphore;
 using WTF::CString;
 using WTF::Encoder;
 using WTF::Decoder;
-using WTF::Float32Array;
-using WTF::Float64Array;
 using WTF::FunctionDispatcher;
-using WTF::Int8Array;
-using WTF::Int16Array;
-using WTF::Int32Array;
 using WTF::PrintStream;
 using WTF::String;
 using WTF::StringBuffer;
 using WTF::StringBuilder;
 using WTF::StringImpl;
-using WTF::Uint8Array;
-using WTF::Uint8ClampedArray;
-using WTF::Uint16Array;
-using WTF::Uint32Array;
 
 #endif // WTF_Forward_h
index 3bce35b..d9335cf 100644 (file)
@@ -1,3 +1,122 @@
+2013-08-05  Oliver Hunt  <oliver@apple.com>
+
+        Move TypedArray implementation into JSC
+        https://bugs.webkit.org/show_bug.cgi?id=119489
+
+        Reviewed by Filip Pizlo.
+
+        Update WebCore for new location of TypedArray implementation.
+
+        * ForwardingHeaders/runtime/ArrayBuffer.h: Added.
+        * ForwardingHeaders/runtime/ArrayBufferView.h: Added.
+        * ForwardingHeaders/runtime/Float32Array.h: Added.
+        * ForwardingHeaders/runtime/Float64Array.h: Added.
+        * ForwardingHeaders/runtime/Int16Array.h: Added.
+        * ForwardingHeaders/runtime/Int32Array.h: Added.
+        * ForwardingHeaders/runtime/Int8Array.h: Added.
+        * ForwardingHeaders/runtime/IntegralTypedArrayBase.h: Added.
+        * ForwardingHeaders/runtime/TypedArrayBase.h: Added.
+        * ForwardingHeaders/runtime/Uint16Array.h: Added.
+        * ForwardingHeaders/runtime/Uint32Array.h: Added.
+        * ForwardingHeaders/runtime/Uint8Array.h: Added.
+        * ForwardingHeaders/runtime/Uint8ClampedArray.h: Added.
+        * Modules/webaudio/AnalyserNode.h:
+        (WebCore::AnalyserNode::getFloatFrequencyData):
+        (WebCore::AnalyserNode::getByteFrequencyData):
+        (WebCore::AnalyserNode::getByteTimeDomainData):
+        * Modules/webaudio/AsyncAudioDecoder.cpp:
+        * Modules/webaudio/AsyncAudioDecoder.h:
+        (WebCore::AsyncAudioDecoder::DecodingTask::audioData):
+        * Modules/webaudio/AudioBuffer.h:
+        * Modules/webaudio/AudioContext.cpp:
+        * Modules/webaudio/AudioParam.h:
+        * Modules/webaudio/AudioParamTimeline.h:
+        * Modules/webaudio/PeriodicWave.h:
+        * Modules/webaudio/RealtimeAnalyser.cpp:
+        * Modules/webaudio/RealtimeAnalyser.h:
+        * Modules/webaudio/ScriptProcessorNode.cpp:
+        * Modules/webaudio/WaveShaperProcessor.h:
+        * Modules/websockets/ThreadableWebSocketChannel.h:
+        * Modules/websockets/WebSocket.cpp:
+        * Modules/websockets/WebSocket.h:
+        * Modules/websockets/WebSocketChannel.cpp:
+        * Modules/websockets/WebSocketChannel.h:
+        * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
+        * Modules/websockets/WorkerThreadableWebSocketChannel.h:
+        * WebCore.exp.in:
+        * bindings/js/JSArrayBufferCustom.cpp:
+        * bindings/js/JSArrayBufferViewHelper.h:
+        * bindings/js/JSAudioContextCustom.cpp:
+        * bindings/js/JSCryptoCustom.cpp:
+        * bindings/js/JSDictionary.h:
+        * bindings/js/JSFileReaderCustom.cpp:
+        * bindings/js/JSWebGLRenderingContextCustom.cpp:
+        * bindings/js/JSXMLHttpRequestCustom.cpp:
+        * bindings/js/SerializedScriptValue.cpp:
+        (WebCore::SerializedScriptValue::transferArrayBuffers):
+        * bindings/js/SerializedScriptValue.h:
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (AddIncludesForType):
+        (GenerateHeader):
+        (NativeToJSValue):
+        * dom/MessageEvent.h:
+        * fileapi/FileReader.cpp:
+        * fileapi/FileReader.h:
+        * fileapi/FileReaderLoader.cpp:
+        * fileapi/FileReaderLoader.h:
+        * fileapi/FileReaderSync.cpp:
+        * fileapi/FileReaderSync.h:
+        * fileapi/WebKitBlobBuilder.cpp:
+        * fileapi/WebKitBlobBuilder.h:
+        * html/HTMLMediaElement.cpp:
+        * html/ImageData.h:
+        * html/canvas/ArrayBuffer.idl:
+        * html/canvas/ArrayBufferView.idl:
+        * html/canvas/CanvasRenderingContext2D.cpp:
+        * html/canvas/DataView.h:
+        * html/canvas/Float32Array.idl:
+        * html/canvas/Float64Array.idl:
+        * html/canvas/Int16Array.idl:
+        * html/canvas/Int32Array.idl:
+        * html/canvas/Int8Array.idl:
+        * html/canvas/Uint16Array.idl:
+        * html/canvas/Uint32Array.idl:
+        * html/canvas/Uint8Array.idl:
+        * html/canvas/Uint8ClampedArray.idl:
+        * html/canvas/WebGLBuffer.h:
+        (WebCore::WebGLBuffer::elementArrayBuffer):
+        * html/canvas/WebGLGetInfo.cpp:
+        * html/canvas/WebGLGetInfo.h:
+        * html/canvas/WebGLRenderingContext.cpp:
+        * html/canvas/WebGLRenderingContext.h:
+        * inspector/InspectorMemoryAgent.cpp:
+        * page/Crypto.cpp:
+        * page/Crypto.h:
+        * platform/graphics/GraphicsContext3D.cpp:
+        * platform/graphics/ImageBuffer.h:
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+        * platform/graphics/cg/ImageBufferDataCG.h:
+        * platform/graphics/filters/FEBlend.cpp:
+        * platform/graphics/filters/FEColorMatrix.cpp:
+        * platform/graphics/filters/FEComponentTransfer.cpp:
+        * platform/graphics/filters/FEComposite.cpp:
+        * platform/graphics/filters/FEConvolveMatrix.cpp:
+        * platform/graphics/filters/FECustomFilter.cpp:
+        * platform/graphics/filters/FEDisplacementMap.cpp:
+        * platform/graphics/filters/FEDropShadow.cpp:
+        * platform/graphics/filters/FEGaussianBlur.cpp:
+        * platform/graphics/filters/FELighting.h:
+        * platform/graphics/filters/FEMorphology.cpp:
+        * platform/graphics/filters/FETurbulence.cpp:
+        * platform/graphics/filters/FilterEffect.cpp:
+        * platform/graphics/filters/FilterEffect.h:
+        * platform/graphics/mac/GraphicsContext3DMac.mm:
+        * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
+        * testing/Internals.h:
+        * xml/XMLHttpRequest.cpp:
+        * xml/XMLHttpRequest.h:
+        (WebCore::XMLHttpRequest::optionalResponseArrayBuffer):
+
 2013-08-05  Alexey Proskuryakov  <ap@apple.com>
 
         <rdar://problem/14637103> REGRESSION (r153060?): Microphone appears in the way
diff --git a/Source/WebCore/ForwardingHeaders/runtime/ArrayBuffer.h b/Source/WebCore/ForwardingHeaders/runtime/ArrayBuffer.h
new file mode 100644 (file)
index 0000000..687d98c
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_ArrayBuffer_h
+#define WebCore_FWD_ArrayBuffer_h
+#include <JavaScriptCore/ArrayBuffer.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/ArrayBufferView.h b/Source/WebCore/ForwardingHeaders/runtime/ArrayBufferView.h
new file mode 100644 (file)
index 0000000..de39526
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_ArrayBufferView_h
+#define WebCore_FWD_ArrayBufferView_h
+#include <JavaScriptCore/ArrayBufferView.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/Float32Array.h b/Source/WebCore/ForwardingHeaders/runtime/Float32Array.h
new file mode 100644 (file)
index 0000000..b2453dd
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_Float32Array_h
+#define WebCore_FWD_Float32Array_h
+#include <JavaScriptCore/Float32Array.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/Float64Array.h b/Source/WebCore/ForwardingHeaders/runtime/Float64Array.h
new file mode 100644 (file)
index 0000000..e7e35aa
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_Float64Array_h
+#define WebCore_FWD_Float64Array_h
+#include <JavaScriptCore/Float64Array.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/Int16Array.h b/Source/WebCore/ForwardingHeaders/runtime/Int16Array.h
new file mode 100644 (file)
index 0000000..45d0039
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_Int16Array_h
+#define WebCore_FWD_Int16Array_h
+#include <JavaScriptCore/Int16Array.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/Int32Array.h b/Source/WebCore/ForwardingHeaders/runtime/Int32Array.h
new file mode 100644 (file)
index 0000000..7b65741
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_Int32Array_h
+#define WebCore_FWD_Int32Array_h
+#include <JavaScriptCore/Int32Array.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/Int8Array.h b/Source/WebCore/ForwardingHeaders/runtime/Int8Array.h
new file mode 100644 (file)
index 0000000..6b6ad52
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_Int8Array_h
+#define WebCore_FWD_Int8Array_h
+#include <JavaScriptCore/Int8Array.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/IntegralTypedArrayBase.h b/Source/WebCore/ForwardingHeaders/runtime/IntegralTypedArrayBase.h
new file mode 100644 (file)
index 0000000..c679b56
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_IntegralTypedArrayBase_h
+#define WebCore_FWD_IntegralTypedArrayBase_h
+#include <JavaScriptCore/IntegralTypedArrayBase.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/TypedArrayBase.h b/Source/WebCore/ForwardingHeaders/runtime/TypedArrayBase.h
new file mode 100644 (file)
index 0000000..e641a57
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_TypedArrayBase_h
+#define WebCore_FWD_TypedArrayBase_h
+#include <JavaScriptCore/TypedArrayBase.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/Uint16Array.h b/Source/WebCore/ForwardingHeaders/runtime/Uint16Array.h
new file mode 100644 (file)
index 0000000..cccea2c
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_Uint16Array_h
+#define WebCore_FWD_Uint16Array_h
+#include <JavaScriptCore/Uint16Array.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/Uint32Array.h b/Source/WebCore/ForwardingHeaders/runtime/Uint32Array.h
new file mode 100644 (file)
index 0000000..f6026f1
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_Uint32Array_h
+#define WebCore_FWD_Uint32Array_h
+#include <JavaScriptCore/Uint32Array.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/Uint8Array.h b/Source/WebCore/ForwardingHeaders/runtime/Uint8Array.h
new file mode 100644 (file)
index 0000000..4c8de4e
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_Uint8Array_h
+#define WebCore_FWD_Uint8Array_h
+#include <JavaScriptCore/Uint8Array.h>
+#endif
diff --git a/Source/WebCore/ForwardingHeaders/runtime/Uint8ClampedArray.h b/Source/WebCore/ForwardingHeaders/runtime/Uint8ClampedArray.h
new file mode 100644 (file)
index 0000000..27d2e01
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_Uint8ClampedArray_h
+#define WebCore_FWD_Uint8ClampedArray_h
+#include <JavaScriptCore/Uint8ClampedArray.h>
+#endif
index 3b753dc..3c40f9c 100644 (file)
@@ -28,9 +28,9 @@
 
 #if ENABLE(ENCRYPTED_MEDIA_V2)
 
+#include <runtime/Uint8Array.h>
 #include <wtf/Forward.h>
 #include <wtf/PassRefPtr.h>
-#include <wtf/Uint8Array.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
index 4a9c843..2b31b47 100644 (file)
@@ -30,7 +30,7 @@
 #include "MediaKeyMessageEvent.h"
 
 #include "EventNames.h"
-#include <wtf/Uint8Array.h>
+#include <runtime/Uint8Array.h>
 
 namespace WebCore {
 
index 5e06f8d..db06173 100644 (file)
@@ -30,7 +30,7 @@
 #include "MediaKeyNeededEvent.h"
 
 #include "EventNames.h"
-#include <wtf/Uint8Array.h>
+#include <runtime/Uint8Array.h>
 
 namespace WebCore {
 
index 83d1fbe..0766844 100644 (file)
 #include "EventTarget.h"
 #include "ExceptionCode.h"
 #include "Timer.h"
+#include <runtime/Uint8Array.h>
 #include <wtf/Deque.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
-#include <wtf/Uint8Array.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
index 4ff3e06..f162f96 100644 (file)
 #include "CDM.h"
 #include "EventTarget.h"
 #include "ExceptionCode.h"
+#include <runtime/Uint8Array.h>
 #include <wtf/OwnPtr.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
-#include <wtf/Uint8Array.h>
 #include <wtf/Vector.h>
 #include <wtf/text/WTFString.h>
 
index ee63269..707a833 100644 (file)
@@ -38,7 +38,7 @@
 #include "MIMETypeRegistry.h"
 #include "SourceBufferPrivate.h"
 #include "TimeRanges.h"
-#include <wtf/Uint8Array.h>
+#include <runtime/Uint8Array.h>
 
 namespace WebCore {
 
index ff80df5..22eb6ad 100644 (file)
@@ -36,7 +36,7 @@
 #include "MediaSource.h"
 #include "SourceBufferPrivate.h"
 #include "TimeRanges.h"
-#include <wtf/Uint8Array.h>
+#include <runtime/Uint8Array.h>
 
 namespace WebCore {
 
index f201883..045c5d7 100644 (file)
@@ -35,8 +35,8 @@
 #include "RTCDataChannelHandler.h"
 #include "RTCPeerConnectionHandler.h"
 #include "ScriptExecutionContext.h"
-#include <wtf/ArrayBuffer.h>
-#include <wtf/ArrayBufferView.h>
+#include <runtime/ArrayBuffer.h>
+#include <runtime/ArrayBufferView.h>
 
 namespace WebCore {
 
index 96e97a9..83b6028 100644 (file)
@@ -26,7 +26,7 @@
 #include "Navigator.h"
 #include "Page.h"
 #include "Vibration.h"
-#include <wtf/Uint32Array.h>
+#include <runtime/Uint32Array.h>
 
 namespace WebCore {
 
index 9f2f0b8..c3aa5c7 100644 (file)
@@ -59,9 +59,9 @@ public:
     void setSmoothingTimeConstant(float k, ExceptionCode&);
     float smoothingTimeConstant() const { return m_analyser.smoothingTimeConstant(); }
 
-    void getFloatFrequencyData(Float32Array* array) { m_analyser.getFloatFrequencyData(array); }
-    void getByteFrequencyData(Uint8Array* array) { m_analyser.getByteFrequencyData(array); }
-    void getByteTimeDomainData(Uint8Array* array) { m_analyser.getByteTimeDomainData(array); }
+    void getFloatFrequencyData(JSC::Float32Array* array) { m_analyser.getFloatFrequencyData(array); }
+    void getByteFrequencyData(JSC::Uint8Array* array) { m_analyser.getByteFrequencyData(array); }
+    void getByteTimeDomainData(JSC::Uint8Array* array) { m_analyser.getByteTimeDomainData(array); }
 
 private:
     virtual double tailTime() const OVERRIDE { return 0; }
index f00bd1a..09383ef 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "AudioBuffer.h"
 #include "AudioBufferCallback.h"
-#include <wtf/ArrayBuffer.h>
+#include <runtime/ArrayBuffer.h>
 #include <wtf/MainThread.h>
 #include <wtf/OwnPtr.h>
 #include <wtf/PassOwnPtr.h>
index ced8058..9cfa88e 100644 (file)
 #include <wtf/RefPtr.h>
 #include <wtf/Threading.h>
 
+namespace JSC {
+class ArrayBuffer;
+}
+
 namespace WebCore {
 
 class AudioBuffer;
@@ -47,20 +51,20 @@ public:
     ~AsyncAudioDecoder();
 
     // Must be called on the main thread.
-    void decodeAsync(ArrayBuffer* audioData, float sampleRate, PassRefPtr<AudioBufferCallback> successCallback, PassRefPtr<AudioBufferCallback> errorCallback);
+    void decodeAsync(JSC::ArrayBuffer* audioData, float sampleRate, PassRefPtr<AudioBufferCallback> successCallback, PassRefPtr<AudioBufferCallback> errorCallback);
 
 private:
     class DecodingTask {
         WTF_MAKE_NONCOPYABLE(DecodingTask);
     public:
-        static PassOwnPtr<DecodingTask> create(ArrayBuffer* audioData, float sampleRate, PassRefPtr<AudioBufferCallback> successCallback, PassRefPtr<AudioBufferCallback> errorCallback);
+        static PassOwnPtr<DecodingTask> create(JSC::ArrayBuffer* audioData, float sampleRate, PassRefPtr<AudioBufferCallback> successCallback, PassRefPtr<AudioBufferCallback> errorCallback);
 
         void decode();
         
     private:
-        DecodingTask(ArrayBuffer* audioData, float sampleRate, PassRefPtr<AudioBufferCallback> successCallback, PassRefPtr<AudioBufferCallback> errorCallback);
+        DecodingTask(JSC::ArrayBuffer* audioData, float sampleRate, PassRefPtr<AudioBufferCallback> successCallback, PassRefPtr<AudioBufferCallback> errorCallback);
 
-        ArrayBuffer* audioData() { return m_audioData.get(); }
+        JSC::ArrayBuffer* audioData() { return m_audioData.get(); }
         float sampleRate() const { return m_sampleRate; }
         AudioBufferCallback* successCallback() { return m_successCallback.get(); }
         AudioBufferCallback* errorCallback() { return m_errorCallback.get(); }
@@ -69,7 +73,7 @@ private:
         static void notifyCompleteDispatch(void* userData);
         void notifyComplete();
 
-        RefPtr<ArrayBuffer> m_audioData;
+        RefPtr<JSC::ArrayBuffer> m_audioData;
         float m_sampleRate;
         RefPtr<AudioBufferCallback> m_successCallback;
         RefPtr<AudioBufferCallback> m_errorCallback;
index 827df9e..1ca6766 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef AudioBuffer_h
 #define AudioBuffer_h
 
-#include <wtf/Float32Array.h>
+#include <runtime/Float32Array.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
 #include <wtf/RefPtr.h>
index 2b4d179..8a0e8d5 100644 (file)
@@ -79,7 +79,7 @@
 #include "GStreamerUtilities.h"
 #endif
 
-#include <wtf/ArrayBuffer.h>
+#include <runtime/ArrayBuffer.h>
 #include <wtf/Atomics.h>
 #include <wtf/MainThread.h>
 #include <wtf/OwnPtr.h>
index 524f98f..1e407ba 100644 (file)
@@ -32,8 +32,8 @@
 #include "AudioContext.h"
 #include "AudioParamTimeline.h"
 #include "AudioSummingJunction.h"
+#include <runtime/Float32Array.h>
 #include <sys/types.h>
-#include <wtf/Float32Array.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
 #include <wtf/text/WTFString.h>
index c0a9608..e0e5a5d 100644 (file)
@@ -30,7 +30,7 @@
 #define AudioParamTimeline_h
 
 #include "AudioContext.h"
-#include <wtf/Float32Array.h>
+#include <runtime/Float32Array.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
 #include <wtf/Threading.h>
index 3b6de68..1243d90 100644 (file)
@@ -30,7 +30,7 @@
 #define PeriodicWave_h
 
 #include "AudioArray.h"
-#include <wtf/Float32Array.h>
+#include <runtime/Float32Array.h>
 #include <wtf/OwnPtr.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
index 68163ce..64a3cf3 100644 (file)
 #include "VectorMath.h"
 #include <algorithm>
 #include <complex>
-#include <wtf/Float32Array.h>
+#include <runtime/Float32Array.h>
+#include <runtime/Uint8Array.h>
 #include <wtf/MainThread.h>
 #include <wtf/MathExtras.h>
-#include <wtf/Uint8Array.h>
 
 namespace WebCore {
 
index 02ea05f..1fbb68a 100644 (file)
 #include <wtf/Noncopyable.h>
 #include <wtf/OwnPtr.h>
 
+namespace JSC {
+class Float32Array;
+class Uint8Array;
+}
+
 namespace WebCore {
 
 class AudioBus;
@@ -57,9 +62,9 @@ public:
     void setSmoothingTimeConstant(float k) { m_smoothingTimeConstant = k; }
     float smoothingTimeConstant() const { return static_cast<float>(m_smoothingTimeConstant); }
 
-    void getFloatFrequencyData(Float32Array*);
-    void getByteFrequencyData(Uint8Array*);
-    void getByteTimeDomainData(Uint8Array*);
+    void getFloatFrequencyData(JSC::Float32Array*);
+    void getByteFrequencyData(JSC::Uint8Array*);
+    void getByteTimeDomainData(JSC::Uint8Array*);
 
     // The audio thread writes input data here.
     void writeInput(AudioBus*, size_t framesToProcess);
index 4e36e87..ab1d2ee 100644 (file)
@@ -35,7 +35,7 @@
 #include "AudioNodeOutput.h"
 #include "AudioProcessingEvent.h"
 #include "Document.h"
-#include <wtf/Float32Array.h>
+#include <runtime/Float32Array.h>
 #include <wtf/MainThread.h>
 
 namespace WebCore {
index 5597a94..635ac75 100644 (file)
@@ -28,7 +28,7 @@
 #include "AudioDSPKernel.h"
 #include "AudioDSPKernelProcessor.h"
 #include "AudioNode.h"
-#include <wtf/Float32Array.h>
+#include <runtime/Float32Array.h>
 #include <wtf/RefPtr.h>
 #include <wtf/Threading.h>
 
index 18d99a9..ff7283d 100644 (file)
 #include <wtf/Noncopyable.h>
 #include <wtf/PassRefPtr.h>
 
+namespace JSC {
+class ArrayBuffer;
+class ArrayBufferView;
+}
+
 namespace WebCore {
 
 class Blob;
@@ -60,7 +65,7 @@ public:
     virtual String subprotocol() = 0; // Will be available after didConnect() callback is invoked.
     virtual String extensions() = 0; // Will be available after didConnect() callback is invoked.
     virtual SendResult send(const String& message) = 0;
-    virtual SendResult send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLength) = 0;
+    virtual SendResult send(const JSC::ArrayBuffer&, unsigned byteOffset, unsigned byteLength) = 0;
     virtual SendResult send(const Blob&) = 0;
     virtual unsigned long bufferedAmount() const = 0;
     virtual void close(int code, const String& reason) = 0;
index b4b49c1..5fa3d9f 100644 (file)
@@ -54,8 +54,8 @@
 #include "SecurityOrigin.h"
 #include "ThreadableWebSocketChannel.h"
 #include "WebSocketChannel.h"
-#include <wtf/ArrayBuffer.h>
-#include <wtf/ArrayBufferView.h>
+#include <runtime/ArrayBuffer.h>
+#include <runtime/ArrayBufferView.h>
 #include <wtf/HashSet.h>
 #include <wtf/OwnPtr.h>
 #include <wtf/PassOwnPtr.h>
index e647903..9a58237 100644 (file)
@@ -73,8 +73,8 @@ public:
     void connect(const String& url, const Vector<String>& protocols, ExceptionCode&);
 
     void send(const String& message, ExceptionCode&);
-    void send(ArrayBuffer*, ExceptionCode&);
-    void send(ArrayBufferView*, ExceptionCode&);
+    void send(JSC::ArrayBuffer*, ExceptionCode&);
+    void send(JSC::ArrayBufferView*, ExceptionCode&);
     void send(Blob*, ExceptionCode&);
 
     void close(int code, const String& reason, ExceptionCode&);
index 5be99a9..34f4abe 100644 (file)
@@ -56,7 +56,7 @@
 #include "WebSocketChannelClient.h"
 #include "WebSocketHandshake.h"
 
-#include <wtf/ArrayBuffer.h>
+#include <runtime/ArrayBuffer.h>
 #include <wtf/Deque.h>
 #include <wtf/FastMalloc.h>
 #include <wtf/HashMap.h>
index 170ab18..f148cd9 100644 (file)
@@ -72,7 +72,7 @@ public:
     virtual String subprotocol() OVERRIDE;
     virtual String extensions() OVERRIDE;
     virtual ThreadableWebSocketChannel::SendResult send(const String& message) OVERRIDE;
-    virtual ThreadableWebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLength) OVERRIDE;
+    virtual ThreadableWebSocketChannel::SendResult send(const JSC::ArrayBuffer&, unsigned byteOffset, unsigned byteLength) OVERRIDE;
     virtual ThreadableWebSocketChannel::SendResult send(const Blob&) OVERRIDE;
     virtual unsigned long bufferedAmount() const OVERRIDE;
     virtual void close(int code, const String& reason) OVERRIDE; // Start closing handshake.
index 567b979..78b5b10 100644 (file)
@@ -45,7 +45,7 @@
 #include "WorkerLoaderProxy.h"
 #include "WorkerRunLoop.h"
 #include "WorkerThread.h"
-#include <wtf/ArrayBuffer.h>
+#include <runtime/ArrayBuffer.h>
 #include <wtf/MainThread.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/text/WTFString.h>
index 2421343..419ac42 100644 (file)
@@ -66,7 +66,7 @@ public:
     virtual String subprotocol() OVERRIDE;
     virtual String extensions() OVERRIDE;
     virtual ThreadableWebSocketChannel::SendResult send(const String& message) OVERRIDE;
-    virtual ThreadableWebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLength) OVERRIDE;
+    virtual ThreadableWebSocketChannel::SendResult send(const JSC::ArrayBuffer&, unsigned byteOffset, unsigned byteLength) OVERRIDE;
     virtual ThreadableWebSocketChannel::SendResult send(const Blob&) OVERRIDE;
     virtual unsigned long bufferedAmount() const OVERRIDE;
     virtual void close(int code, const String& reason) OVERRIDE;
@@ -88,7 +88,7 @@ public:
 
         void connect(const KURL&, const String& protocol);
         void send(const String& message);
-        void send(const ArrayBuffer&);
+        void send(const JSC::ArrayBuffer&);
         void send(const Blob&);
         void bufferedAmount();
         void close(int code, const String& reason);
@@ -134,7 +134,7 @@ private:
         void initialize();
         void connect(const KURL&, const String& protocol);
         ThreadableWebSocketChannel::SendResult send(const String& message);
-        ThreadableWebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLength);
+        ThreadableWebSocketChannel::SendResult send(const JSC::ArrayBuffer&, unsigned byteOffset, unsigned byteLength);
         ThreadableWebSocketChannel::SendResult send(const Blob&);
         unsigned long bufferedAmount();
         void close(int code, const String& reason);
index 4f2c707..b1ff216 100644 (file)
@@ -720,7 +720,7 @@ __ZN7WebCore21ResourceLoadSchedulerD2Ev
 __ZN7WebCore21SerializedScriptValue11deserializeEPK15OpaqueJSContextPPK13OpaqueJSValue
 __ZN7WebCore21SerializedScriptValue11deserializeEPN3JSC9ExecStateEPNS1_14JSGlobalObjectEPN3WTF6VectorINS6_6RefPtrINS_11MessagePortEEELm1ENS6_15CrashOnOverflowEEENS_22SerializationErrorModeE
 __ZN7WebCore21SerializedScriptValue6createEPK15OpaqueJSContextPK13OpaqueJSValuePS6_
-__ZN7WebCore21SerializedScriptValue6createEPN3JSC9ExecStateENS1_7JSValueEPN3WTF6VectorINS5_6RefPtrINS_11MessagePortEEELm1ENS5_15CrashOnOverflowEEEPNS6_INS7_INS5_11ArrayBufferEEELm1ESA_EENS_22SerializationErrorModeE
+__ZN7WebCore21SerializedScriptValue6createEPN3JSC9ExecStateENS1_7JSValueEPN3WTF6VectorINS5_6RefPtrINS_11MessagePortEEELm1ENS5_15CrashOnOverflowEEEPNS6_INS7_INS1_11ArrayBufferEEELm1ESA_EENS_22SerializationErrorModeE
 __ZN7WebCore21SerializedScriptValue6createERKN3WTF6StringE
 __ZN7WebCore21SerializedScriptValueC1ERN3WTF6VectorIhLm0ENS1_15CrashOnOverflowEEE
 __ZN7WebCore21SerializedScriptValueD1Ev
@@ -907,7 +907,7 @@ __ZN7WebCore4PathC1Ev
 __ZN7WebCore4PathD1Ev
 __ZN7WebCore4coreEP20NSURLProtectionSpace
 __ZN7WebCore4coreEP28NSURLAuthenticationChallenge
-__ZN7WebCore4toJSEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEPN3WTF11ArrayBufferE
+__ZN7WebCore4toJSEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEPNS0_11ArrayBufferE
 __ZN7WebCore4toJSEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEPNS_10ClientRectE
 __ZN7WebCore4toJSEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEPNS_13DOMStringListE
 __ZN7WebCore4toJSEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEPNS_14ClientRectListE
index 2fa306a..dfd52ab 100644 (file)
@@ -27,8 +27,8 @@
 #include "JSArrayBuffer.h"
 
 #include "ExceptionCode.h"
+#include <runtime/ArrayBuffer.h>
 #include <runtime/Error.h>
-#include <wtf/ArrayBuffer.h>
 
 namespace WebCore {
 
index 9af3f8a..87b6e4c 100644 (file)
 #include "JSDOMBinding.h"
 #include <interpreter/CallFrame.h>
 #include <runtime/ArgList.h>
+#include <runtime/ArrayBufferView.h>
 #include <runtime/Error.h>
 #include <runtime/JSCJSValue.h>
 #include <runtime/JSObject.h>
 #include <runtime/Operations.h>
-#include <wtf/ArrayBufferView.h>
-#include <wtf/TypedArrayBase.h>
+#include <runtime/TypedArrayBase.h>
 
 namespace WebCore {
 
index d73036f..ab68526 100644 (file)
@@ -34,8 +34,8 @@
 #include "JSAudioContext.h"
 #include "JSOfflineAudioContext.h"
 #include "OfflineAudioContext.h"
+#include <runtime/ArrayBuffer.h>
 #include <runtime/Error.h>
-#include <wtf/ArrayBuffer.h>
 
 using namespace JSC;
 
index a963a74..d9e9298 100644 (file)
@@ -28,8 +28,8 @@
 #include "ExceptionCode.h"
 #include "JSArrayBufferView.h"
 
+#include <runtime/ArrayBufferView.h>
 #include <runtime/Error.h>
-#include <wtf/ArrayBufferView.h>
 
 using namespace JSC;
 
index 1f8684f..0519fe2 100644 (file)
@@ -119,7 +119,7 @@ private:
 #endif
     static void convertValue(JSC::ExecState*, JSC::JSValue, HashSet<AtomicString>& result);
     static void convertValue(JSC::ExecState*, JSC::JSValue, ArrayValue& result);
-    static void convertValue(JSC::ExecState*, JSC::JSValue, RefPtr<Uint8Array>& result);
+    static void convertValue(JSC::ExecState*, JSC::JSValue, RefPtr<JSC::Uint8Array>& result);
 #if ENABLE(ENCRYPTED_MEDIA)
     static void convertValue(JSC::ExecState*, JSC::JSValue, RefPtr<MediaKeyError>& result);
 #endif
index 8b493ca..e851219 100644 (file)
@@ -36,7 +36,7 @@
 
 #include "FileReader.h"
 #include "JSArrayBuffer.h"
-#include <wtf/ArrayBuffer.h>
+#include <runtime/ArrayBuffer.h>
 
 using namespace JSC;
 
index 5ed53e7..22bf1aa 100644 (file)
 #include "WebGLRenderingContext.h"
 #include "WebGLVertexArrayObjectOES.h"
 #include <runtime/Error.h>
+#include <runtime/Float32Array.h>
+#include <runtime/Int32Array.h>
 #include <runtime/JSArray.h>
+#include <runtime/Uint32Array.h>
 #include <wtf/FastMalloc.h>
-#include <wtf/Float32Array.h>
-#include <wtf/Int32Array.h>
-#include <wtf/Uint32Array.h>
 
 #if ENABLE(VIDEO)
 #include "HTMLVideoElement.h"
index 2b799c5..8dd8bf5 100644 (file)
@@ -48,8 +48,8 @@
 #include "JSEventListener.h"
 #include "XMLHttpRequest.h"
 #include <interpreter/StackIterator.h>
+#include <runtime/ArrayBuffer.h>
 #include <runtime/Error.h>
-#include <wtf/ArrayBuffer.h>
 
 using namespace JSC;
 
index 126a04b..382cb27 100644 (file)
@@ -58,6 +58,7 @@
 #include <limits>
 #include <JavaScriptCore/APICast.h>
 #include <JavaScriptCore/APIShims.h>
+#include <runtime/ArrayBuffer.h>
 #include <runtime/BooleanObject.h>
 #include <runtime/DateInstance.h>
 #include <runtime/Error.h>
@@ -67,9 +68,8 @@
 #include <runtime/PropertyNameArray.h>
 #include <runtime/RegExp.h>
 #include <runtime/RegExpObject.h>
-#include <wtf/ArrayBuffer.h>
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/HashTraits.h>
-#include <wtf/Uint8ClampedArray.h>
 #include <wtf/Vector.h>
 
 using namespace JSC;
@@ -978,7 +978,7 @@ SerializationReturnCode CloneSerializer::serialize(JSValue in)
     return SuccessfullyCompleted;
 }
 
-typedef Vector<WTF::ArrayBufferContents> ArrayBufferContentsArray;
+typedef Vector<JSC::ArrayBufferContents> ArrayBufferContentsArray;
 
 class CloneDeserializer : CloneBase {
 public:
@@ -1777,7 +1777,7 @@ PassOwnPtr<SerializedScriptValue::ArrayBufferContentsArray> SerializedScriptValu
     Vector<RefPtr<DOMWrapperWorld> > worlds;
     static_cast<WebCoreJSClientData*>(exec->vm().clientData)->getAllWorlds(worlds);
 
-    HashSet<WTF::ArrayBuffer*> visited;
+    HashSet<JSC::ArrayBuffer*> visited;
     for (size_t arrayBufferIndex = 0; arrayBufferIndex < arrayBuffers.size(); arrayBufferIndex++) {
         Vector<RefPtr<ArrayBufferView> > neuteredViews;
 
index d3cd880..61112e7 100644 (file)
@@ -29,8 +29,8 @@
 
 #include "ScriptState.h"
 #include <heap/Strong.h>
+#include <runtime/ArrayBuffer.h>
 #include <runtime/JSCJSValue.h>
-#include <wtf/ArrayBuffer.h>
 #include <wtf/Forward.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
@@ -43,7 +43,7 @@ namespace WebCore {
 
 class MessagePort;
 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray;
-typedef Vector<RefPtr<WTF::ArrayBuffer>, 1> ArrayBufferArray;
+typedef Vector<RefPtr<JSC::ArrayBuffer>, 1> ArrayBufferArray;
  
 enum SerializationReturnCode {
     SuccessfullyCompleted,
@@ -113,7 +113,7 @@ public:
     ~SerializedScriptValue();
 
 private:
-    typedef Vector<WTF::ArrayBufferContents> ArrayBufferContentsArray;
+    typedef Vector<JSC::ArrayBufferContents> ArrayBufferContentsArray;
     static void maybeThrowExceptionIfSerializationFailed(JSC::ExecState*, SerializationReturnCode);
     static bool serializationDidCompleteSuccessfully(SerializationReturnCode);
     static PassOwnPtr<ArrayBufferContentsArray> transferArrayBuffers(JSC::ExecState*, ArrayBufferArray&, SerializationReturnCode&);
index 0f28f6e..6d5892d 100644 (file)
@@ -226,7 +226,7 @@ sub AddIncludesForType
     } elsif ($isCallback && $codeGenerator->IsWrapperType($type)) {
         $includesRef->{"JS${type}.h"} = 1;
     } elsif ($codeGenerator->IsTypedArrayType($type)) {
-        $includesRef->{"<wtf/${type}.h>"} = 1;
+        $includesRef->{"<runtime/${type}.h>"} = 1;
     } else {
         # default, include the same named file
         $includesRef->{"${type}.h"} = 1;
@@ -683,7 +683,7 @@ sub GenerateHeader
 
     if ($hasParent && $interface->extendedAttributes->{"JSGenerateToNativeObject"}) {
         if ($codeGenerator->IsTypedArrayType($interfaceName)) {
-            $headerIncludes{"<wtf/$interfaceName.h>"} = 1;
+            $headerIncludes{"<runtime/$interfaceName.h>"} = 1;
         } else {
             $headerIncludes{"$interfaceName.h"} = 1;
         }
@@ -3612,7 +3612,7 @@ sub NativeToJSValue
         # Default, include header with same name.
         AddToImplIncludes("JS$type.h", $conditional);
         if ($codeGenerator->IsTypedArrayType($type)) {
-            AddToImplIncludes("<wtf/$type.h>", $conditional) if not $codeGenerator->SkipIncludeHeader($type);
+            AddToImplIncludes("<runtime/$type.h>", $conditional) if not $codeGenerator->SkipIncludeHeader($type);
         } else {
             AddToImplIncludes("$type.h", $conditional) if not $codeGenerator->SkipIncludeHeader($type);
         }
index 827b6ba..0152f8b 100644 (file)
 #include "JSFloat32Array.h"
 #include "JSInt32Array.h"
 #include <runtime/Error.h>
+#include <runtime/Float64Array.h>
+#include <runtime/Int32Array.h>
 #include <runtime/PropertyNameArray.h>
-#include <wtf/Float64Array.h>
 #include <wtf/GetPtr.h>
-#include <wtf/Int32Array.h>
 
 using namespace JSC;
 
index 1d7dfd7..f349c4d 100644 (file)
@@ -23,8 +23,8 @@
 
 #include "JSArrayBufferView.h"
 #include "JSDOMBinding.h"
+#include <runtime/Float64Array.h>
 #include <runtime/JSObject.h>
-#include <wtf/Float64Array.h>
 
 namespace WebCore {
 
index dca6a59..9b06baa 100644 (file)
@@ -54,9 +54,9 @@
 #include "TestObj.h"
 #include "bool.h"
 #include <runtime/Error.h>
+#include <runtime/Float32Array.h>
 #include <runtime/JSArray.h>
 #include <runtime/JSString.h>
-#include <wtf/Float32Array.h>
 #include <wtf/GetPtr.h>
 
 #if ENABLE(Condition1)
index d382462..a48151f 100644 (file)
@@ -494,7 +494,7 @@ QVariant convertValueToQVariant(JSContextRef context, JSValueRef value, QMetaTyp
 
         case QMetaType::QByteArray: {
             if (type == RTUint8Array) {
-                WTF::Uint8Array* arr = toUint8Array(toJS(toJS(context), value));
+                JSC::Uint8Array* arr = toUint8Array(toJS(toJS(context), value));
                 ret = QVariant(QByteArray(reinterpret_cast<const char*>(arr->data()), arr->length()));
                 dist = 0;
             } else {
@@ -729,7 +729,7 @@ JSValueRef convertQVariantToValue(JSContextRef context, PassRefPtr<RootObject> r
 
     if (type == QMetaType::QByteArray) {
         QByteArray qtByteArray = variant.value<QByteArray>();
-        WTF::RefPtr<WTF::Uint8ClampedArray> wtfByteArray = WTF::Uint8ClampedArray::createUninitialized(qtByteArray.length());
+        WTF::RefPtr<JSC::Uint8ClampedArray> wtfByteArray = JSC::Uint8ClampedArray::createUninitialized(qtByteArray.length());
         memcpy(wtfByteArray->data(), qtByteArray.constData(), qtByteArray.length());
         ExecState* exec = toJS(context);
         APIEntryShim entryShim(exec);
index 6598efb..f04fbb2 100644 (file)
@@ -34,7 +34,7 @@
 #include "MessagePort.h"
 #include "ScriptValue.h"
 #include "SerializedScriptValue.h"
-#include <wtf/ArrayBuffer.h>
+#include <runtime/ArrayBuffer.h>
 
 namespace WebCore {
 
index bf8c33d..f696775 100644 (file)
@@ -40,7 +40,7 @@
 #include "Logging.h"
 #include "ProgressEvent.h"
 #include "ScriptExecutionContext.h"
-#include <wtf/ArrayBuffer.h>
+#include <runtime/ArrayBuffer.h>
 #include <wtf/CurrentTime.h>
 #include <wtf/text/CString.h>
 
index 7f2133d..c20f97a 100644 (file)
 #include <wtf/RefCounted.h>
 #include <wtf/text/WTFString.h>
 
+namespace JSC {
+class ArrayBuffer;
+}
+
 namespace WebCore {
 
 class Blob;
@@ -73,7 +77,7 @@ public:
     ReadyState readyState() const { return m_state; }
     PassRefPtr<FileError> error() { return m_error; }
     FileReaderLoader::ReadType readType() const { return m_readType; }
-    PassRefPtr<ArrayBuffer> arrayBufferResult() const;
+    PassRefPtr<JSC::ArrayBuffer> arrayBufferResult() const;
     String stringResult();
 
     // EventTarget
index 77c05fe..2447c30 100644 (file)
@@ -43,7 +43,7 @@
 #include "TextResourceDecoder.h"
 #include "ThreadableBlobRegistry.h"
 #include "ThreadableLoader.h"
-#include <wtf/ArrayBuffer.h>
+#include <runtime/ArrayBuffer.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefPtr.h>
 #include <wtf/Vector.h>
index ec1bdfd..24f1e7f 100644 (file)
 #include <wtf/Forward.h>
 #include <wtf/text/WTFString.h>
 
+namespace JSC {
+class ArrayBuffer;
+}
+
 namespace WebCore {
 
 class Blob;
@@ -72,7 +76,7 @@ public:
     virtual void didFail(const ResourceError&);
 
     String stringResult();
-    PassRefPtr<ArrayBuffer> arrayBufferResult() const;
+    PassRefPtr<JSC::ArrayBuffer> arrayBufferResult() const;
 #if ENABLE(STREAM)
     PassRefPtr<Blob> blobResult();
 #endif // ENABLE(STREAM)
@@ -105,7 +109,7 @@ private:
     KURL m_urlForReading;
     RefPtr<ThreadableLoader> m_loader;
 
-    RefPtr<ArrayBuffer> m_rawData;
+    RefPtr<JSC::ArrayBuffer> m_rawData;
     bool m_isRawDataConverted;
 
     String m_stringResult;
index 79e5200..2d53afd 100644 (file)
@@ -38,7 +38,7 @@
 #include "BlobURL.h"
 #include "FileException.h"
 #include "FileReaderLoader.h"
-#include <wtf/ArrayBuffer.h>
+#include <runtime/ArrayBuffer.h>
 #include <wtf/PassRefPtr.h>
 
 namespace WebCore {
index 9fe5c30..50140ef 100644 (file)
 #include <wtf/RefCounted.h>
 #include <wtf/text/WTFString.h>
 
+namespace JSC {
+class ArrayBuffer;
+}
+
 namespace WebCore {
 
 class Blob;
@@ -54,7 +58,7 @@ public:
 
     virtual ~FileReaderSync() { }
 
-    PassRefPtr<ArrayBuffer> readAsArrayBuffer(ScriptExecutionContext*, Blob*, ExceptionCode&);
+    PassRefPtr<JSC::ArrayBuffer> readAsArrayBuffer(ScriptExecutionContext*, Blob*, ExceptionCode&);
     String readAsBinaryString(ScriptExecutionContext*, Blob*, ExceptionCode&);
     String readAsText(ScriptExecutionContext* scriptExecutionContext, Blob* blob, ExceptionCode& ec)
     {
index 1622e2f..4b3a2ea 100644 (file)
@@ -40,8 +40,8 @@
 #include "LineEnding.h"
 #include "ScriptCallStack.h"
 #include "TextEncoding.h"
-#include <wtf/ArrayBuffer.h>
-#include <wtf/ArrayBufferView.h>
+#include <runtime/ArrayBuffer.h>
+#include <runtime/ArrayBufferView.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/Vector.h>
 #include <wtf/text/AtomicString.h>
index 335bc76..bccc278 100644 (file)
 #include "BlobData.h"
 #include <wtf/Forward.h>
 
+namespace JSC {
+class ArrayBuffer;
+class ArrayBufferView;
+}
+
 namespace WebCore {
 
 // FIXME: Move this file to BlobBuilder.h
@@ -50,8 +55,8 @@ public:
     void append(Blob*);
     void append(const String& text, const String& ending);
 #if ENABLE(BLOB)
-    void append(ArrayBuffer*);
-    void append(ArrayBufferView*);
+    void append(JSC::ArrayBuffer*);
+    void append(JSC::ArrayBufferView*);
 #endif
 
     PassRefPtr<Blob> getBlob(const String& contentType);
index 3a9a6d9..9632493 100644 (file)
 #include "ShadowRoot.h"
 #include "TimeRanges.h"
 #include <limits>
+#include <runtime/Uint8Array.h>
 #include <wtf/CurrentTime.h>
 #include <wtf/MathExtras.h>
 #include <wtf/NonCopyingSort.h>
-#include <wtf/Uint8Array.h>
 #include <wtf/text/CString.h>
 
 #if USE(ACCELERATED_COMPOSITING)
index 7616870..80b3eb0 100644 (file)
@@ -30,9 +30,9 @@
 #define ImageData_h
 
 #include "IntSize.h"
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/RefCounted.h>
 #include <wtf/RefPtr.h>
-#include <wtf/Uint8ClampedArray.h>
 
 namespace WebCore {
 
index 49e3843..48eb26d 100644 (file)
@@ -28,6 +28,7 @@
 
 #if ENABLE(ENCRYPTED_MEDIA) || ENABLE(ENCRYPTED_MEDIA_V2)
 
+#include <runtime/Uint8Array.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
 
index 2f62dbc..03b2512 100644 (file)
@@ -30,7 +30,7 @@
 #include "MediaKeyEvent.h"
 
 #include "EventNames.h"
-#include <wtf/Uint8Array.h>
+#include <runtime/Uint8Array.h>
 
 namespace WebCore {
 
index 0f70af6..8363137 100644 (file)
@@ -28,7 +28,7 @@
     GenerateIsReachable=Impl,
     CustomConstructor(unsigned long length),
     JSNoStaticTables,
-    ImplementationNamespace=WTF,
+    ImplementationNamespace=JSC,
     ImplementationLacksVTable
 ] interface ArrayBuffer {
     readonly attribute unsigned long byteLength;
index 3d6fae2..fc61a5e 100644 (file)
@@ -26,7 +26,7 @@
 [
     CustomToJSObject,
     JSNoStaticTables,
-    ImplementationNamespace=WTF
+    ImplementationNamespace=JSC
 ] interface ArrayBufferView {
     readonly attribute ArrayBuffer buffer;
     readonly attribute unsigned long byteOffset;
index caae0ba..851c034 100644 (file)
 #include "RenderLayer.h"
 #endif
 
+#include <runtime/Uint8ClampedArray.h>
+
 #include <wtf/CheckedArithmetic.h>
 #include <wtf/MathExtras.h>
 #include <wtf/OwnPtr.h>
-#include <wtf/Uint8ClampedArray.h>
 #include <wtf/text/StringBuilder.h>
 
 #if USE(CG)
index 00d56d8..00dd6e4 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef DataView_h
 #define DataView_h
 
-#include <wtf/ArrayBufferView.h>
+#include <runtime/ArrayBufferView.h>
 #include <wtf/PassRefPtr.h>
 
 namespace WebCore {
index ac258d5..833d011 100644 (file)
@@ -33,7 +33,7 @@
     CustomToJSObject,
     DoNotCheckConstants,
     TypedArray=float,
-    ImplementationNamespace=WTF
+    ImplementationNamespace=JSC
 ] interface Float32Array : ArrayBufferView {
     const unsigned long BYTES_PER_ELEMENT = 4;
 
index dee44f6..c98c032 100644 (file)
@@ -33,7 +33,7 @@
     CustomToJSObject,
     DoNotCheckConstants,
     TypedArray=double,
-    ImplementationNamespace=WTF
+    ImplementationNamespace=JSC
 ] interface Float64Array : ArrayBufferView {
     const unsigned long BYTES_PER_ELEMENT = 8;
 
index 0576460..433f36f 100644 (file)
@@ -32,7 +32,7 @@
     CustomToJSObject,
     DoNotCheckConstants,
     TypedArray=short,
-    ImplementationNamespace=WTF
+    ImplementationNamespace=JSC
 ] interface Int16Array : ArrayBufferView {
     const unsigned long BYTES_PER_ELEMENT = 2;
 
index d867e65..53a70b7 100644 (file)
@@ -33,7 +33,7 @@
     CustomToJSObject,
     DoNotCheckConstants,
     TypedArray=int,
-    ImplementationNamespace=WTF
+    ImplementationNamespace=JSC
 ] interface Int32Array : ArrayBufferView {
     const unsigned long BYTES_PER_ELEMENT = 4;
 
index 6cb20a1..5db02ad 100644 (file)
@@ -33,7 +33,7 @@
     CustomToJSObject,
     DoNotCheckConstants,
     TypedArray=signed char,
-    ImplementationNamespace=WTF
+    ImplementationNamespace=JSC
 ] interface Int8Array : ArrayBufferView {
     const unsigned long BYTES_PER_ELEMENT = 1;
 
index 708cdb3..8292b3b 100644 (file)
@@ -33,7 +33,7 @@
     CustomToJSObject,
     DoNotCheckConstants,
     TypedArray=unsigned short,
-    ImplementationNamespace=WTF
+    ImplementationNamespace=JSC
 ] interface Uint16Array : ArrayBufferView {
     const unsigned long BYTES_PER_ELEMENT = 2;
 
index 643c092..b5c055d 100644 (file)
@@ -33,7 +33,7 @@
     CustomToJSObject,
     DoNotCheckConstants,
     TypedArray=unsigned int,
-    ImplementationNamespace=WTF
+    ImplementationNamespace=JSC
 ] interface Uint32Array : ArrayBufferView {
     const unsigned long BYTES_PER_ELEMENT = 4;
 
index daf3f80..2416a47 100644 (file)
@@ -33,7 +33,7 @@
     CustomToJSObject,
     DoNotCheckConstants,
     TypedArray=unsigned char,
-    ImplementationNamespace=WTF
+    ImplementationNamespace=JSC
 ] interface Uint8Array : ArrayBufferView {
     const unsigned long BYTES_PER_ELEMENT = 1;
 
index b17f135..5a9995e 100644 (file)
@@ -33,7 +33,7 @@
     CustomToJSObject,
     DoNotCheckConstants,
     TypedArray=unsigned char,
-    ImplementationNamespace=WTF
+    ImplementationNamespace=JSC
 ] interface Uint8ClampedArray : Uint8Array {
     const unsigned long BYTES_PER_ELEMENT = 1;
 
index 0512450..9465b67 100644 (file)
 
 #include <wtf/Forward.h>
 
+namespace JSC {
+class ArrayBuffer;
+class ArrayBufferView;
+}
+
 namespace WebCore {
 
 class WebGLBuffer : public WebGLSharedObject {
@@ -39,13 +44,13 @@ public:
     static PassRefPtr<WebGLBuffer> create(WebGLRenderingContext*);
 
     bool associateBufferData(GC3Dsizeiptr size);
-    bool associateBufferData(ArrayBuffer*);
-    bool associateBufferData(ArrayBufferView*);
-    bool associateBufferSubData(GC3Dintptr offset, ArrayBuffer*);
-    bool associateBufferSubData(GC3Dintptr offset, ArrayBufferView*);
+    bool associateBufferData(JSC::ArrayBuffer*);
+    bool associateBufferData(JSC::ArrayBufferView*);
+    bool associateBufferSubData(GC3Dintptr offset, JSC::ArrayBuffer*);
+    bool associateBufferSubData(GC3Dintptr offset, JSC::ArrayBufferView*);
 
     GC3Dsizeiptr byteLength() const;
-    const ArrayBuffer* elementArrayBuffer() const { return m_elementArrayBuffer.get(); }
+    const JSC::ArrayBuffer* elementArrayBuffer() const { return m_elementArrayBuffer.get(); }
 
     // Gets the cached max index for the given type. Returns -1 if
     // none has been set.
@@ -68,7 +73,7 @@ private:
 
     GC3Denum m_target;
 
-    RefPtr<ArrayBuffer> m_elementArrayBuffer;
+    RefPtr<JSC::ArrayBuffer> m_elementArrayBuffer;
     GC3Dsizeiptr m_byteLength;
 
     // Optimization for index validation. For each type of index
index f7166c4..8e27d3b 100644 (file)
 #include "WebGLRenderbuffer.h"
 #include "WebGLTexture.h"
 #include "WebGLVertexArrayObjectOES.h"
-#include <wtf/Float32Array.h>
-#include <wtf/Int32Array.h>
-#include <wtf/Uint32Array.h>
-#include <wtf/Uint8Array.h>
+#include <runtime/Float32Array.h>
+#include <runtime/Int32Array.h>
+#include <runtime/Uint32Array.h>
+#include <runtime/Uint8Array.h>
 
 namespace WebCore {
 
index 7f9b042..082612a 100644 (file)
 #include "WebGLRenderbuffer.h"
 #include "WebGLTexture.h"
 #include "WebGLVertexArrayObjectOES.h"
-#include <wtf/Float32Array.h>
-#include <wtf/Int32Array.h>
+#include <runtime/Float32Array.h>
+#include <runtime/Int32Array.h>
+#include <runtime/Uint32Array.h>
+#include <runtime/Uint8Array.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefPtr.h>
-#include <wtf/Uint32Array.h>
-#include <wtf/Uint8Array.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
index 8ff091b..d1e2121 100644 (file)
@@ -74,9 +74,9 @@
 #include "WebGLTexture.h"
 #include "WebGLUniformLocation.h"
 
+#include <runtime/Uint32Array.h>
 #include <wtf/OwnArrayPtr.h>
 #include <wtf/PassOwnArrayPtr.h>
-#include <wtf/Uint32Array.h>
 #include <wtf/text/CString.h>
 #include <wtf/text/StringBuilder.h>
 
index 9723ca7..8b5cb69 100644 (file)
@@ -34,8 +34,8 @@
 #include "Timer.h"
 #include "WebGLGetInfo.h"
 
-#include <wtf/Float32Array.h>
-#include <wtf/Int32Array.h>
+#include <runtime/Float32Array.h>
+#include <runtime/Int32Array.h>
 #include <wtf/OwnArrayPtr.h>
 #include <wtf/text/WTFString.h>
 
index 88f3d60..1dc3e12 100644 (file)
@@ -50,7 +50,7 @@
 #include "ScriptGCEvent.h"
 #include "ScriptProfiler.h"
 #include "StyledElement.h"
-#include <wtf/ArrayBufferView.h>
+#include <runtime/ArrayBufferView.h>
 #include <wtf/HashSet.h>
 #include <wtf/NonCopyingSort.h>
 #include <wtf/OwnPtr.h>
index ae416ee..f0e4b5d 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "ExceptionCode.h"
 #include "ScriptWrappableInlines.h"
-#include <wtf/ArrayBufferView.h>
+#include <runtime/ArrayBufferView.h>
 #include <wtf/CryptographicallyRandomNumber.h>
 
 namespace WebCore {
index 1725af8..86552bc 100644 (file)
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
 
+namespace JSC {
+class ArrayBufferView;
+}
+
 namespace WebCore {
 
 typedef int ExceptionCode;
@@ -42,7 +46,7 @@ class Crypto : public ScriptWrappable, public RefCounted<Crypto> {
 public:
     static PassRefPtr<Crypto> create() { return adoptRef(new Crypto()); }
 
-    void getRandomValues(ArrayBufferView*, ExceptionCode&);
+    void getRandomValues(JSC::ArrayBufferView*, ExceptionCode&);
 
 private:
     Crypto();
index 5a248d0..611056d 100644 (file)
@@ -40,7 +40,7 @@
 #include "GraphicsContext3DNEON.h"
 #endif
 
-#include <wtf/ArrayBufferView.h>
+#include <runtime/ArrayBufferView.h>
 #include <wtf/OwnArrayPtr.h>
 #include <wtf/PassOwnArrayPtr.h>
 
index 871d7c0..dc8c643 100644 (file)
 #include "GraphicsTypes3D.h"
 #include "IntSize.h"
 #include "ImageBufferData.h"
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/Forward.h>
 #include <wtf/OwnPtr.h>
 #include <wtf/PassOwnPtr.h>
 #include <wtf/PassRefPtr.h>
-#include <wtf/Uint8ClampedArray.h>
 #include <wtf/Vector.h>
 
 namespace WebCore {
index 92734ca..b24ab4a 100644 (file)
@@ -39,6 +39,7 @@
 #include "LayoutRect.h"
 #include "Timer.h"
 #include "VideoTrackPrivate.h"
+#include <runtime/Uint8Array.h>
 #include <wtf/Forward.h>
 #include <wtf/HashSet.h>
 #include <wtf/OwnPtr.h>
index 1e2b88c..4af4916 100644 (file)
 #import "WebCoreAVFResourceLoader.h"
 #import "WebCoreSystemInterface.h"
 #import <objc/runtime.h>
+#import <runtime/Uint16Array.h>
+#import <runtime/Uint32Array.h>
+#import <runtime/Uint8Array.h>
 #import <wtf/CurrentTime.h>
-#import <wtf/Uint16Array.h>
-#import <wtf/Uint32Array.h>
-#import <wtf/Uint8Array.h>
 #import <wtf/text/CString.h>
 
 #import <AVFoundation/AVFoundation.h>
index 8da330e..8a85afd 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <BlackBerryPlatformGraphics.h>
 #include <BlackBerryPlatformGuardedPointer.h>
-#include <wtf/Uint8ClampedArray.h>
+#include <runtime/Uint8ClampedArray.h>
 
 namespace WebCore {
 
index 8e61edf..793eb7b 100644 (file)
  */
 
 #include "Image.h"
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/CheckedArithmetic.h>
 #include <wtf/RefPtr.h>
 #include <wtf/RetainPtr.h>
-#include <wtf/Uint8ClampedArray.h>
 
 #if (PLATFORM(MAC) && USE(CA) && (PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070))
 #define WTF_USE_IOSURFACE_CANVAS_BACKING_STORE 1
index bf527ff..8145390 100644 (file)
@@ -33,7 +33,7 @@
 #include "RenderTreeAsText.h"
 #include "TextStream.h"
 
-#include <wtf/Uint8ClampedArray.h>
+#include <runtime/Uint8ClampedArray.h>
 
 typedef unsigned char (*BlendType)(unsigned char colorA, unsigned char colorB, unsigned char alphaA, unsigned char alphaB);
 
index bdf5552..4d52f8f 100644 (file)
@@ -30,8 +30,8 @@
 #include "RenderTreeAsText.h"
 #include "TextStream.h"
 
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/MathExtras.h>
-#include <wtf/Uint8ClampedArray.h>
 
 namespace WebCore {
 
index 2294426..e494b08 100644 (file)
@@ -31,9 +31,9 @@
 #include "RenderTreeAsText.h"
 #include "TextStream.h"
 
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/MathExtras.h>
 #include <wtf/StdLibExtras.h>
-#include <wtf/Uint8ClampedArray.h>
 
 namespace WebCore {
 
index 27e73aa..06291e7 100644 (file)
@@ -32,7 +32,7 @@
 #include "RenderTreeAsText.h"
 #include "TextStream.h"
 
-#include <wtf/Uint8ClampedArray.h>
+#include <runtime/Uint8ClampedArray.h>
 
 namespace WebCore {
 
index fad92c9..73968d8 100644 (file)
@@ -30,8 +30,8 @@
 #include "RenderTreeAsText.h"
 #include "TextStream.h"
 
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/ParallelJobs.h>
-#include <wtf/Uint8ClampedArray.h>
 
 namespace WebCore {
 
index c22f50e..c4306c0 100644 (file)
@@ -41,7 +41,7 @@
 #include "RenderTreeAsText.h"
 #include "TextStream.h"
 
-#include <wtf/Uint8ClampedArray.h>
+#include <runtime/Uint8ClampedArray.h>
 
 namespace WebCore {
 
index 025ff65..8eb5640 100644 (file)
@@ -31,7 +31,7 @@
 #include "RenderTreeAsText.h"
 #include "TextStream.h"
 
-#include <wtf/Uint8ClampedArray.h>
+#include <runtime/Uint8ClampedArray.h>
 
 namespace WebCore {
 
index c1efa2a..0977dd2 100644 (file)
@@ -29,8 +29,8 @@
 #include "RenderTreeAsText.h"
 #include "ShadowBlur.h"
 #include "TextStream.h"
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/MathExtras.h>
-#include <wtf/Uint8ClampedArray.h>
 
 using namespace std;
 
index 446e25a..61ba302 100644 (file)
@@ -33,9 +33,9 @@
 #include "RenderTreeAsText.h"
 #include "TextStream.h"
 
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/MathExtras.h>
 #include <wtf/ParallelJobs.h>
-#include <wtf/Uint8ClampedArray.h>
 
 using namespace std;
 
index b40bb13..eb79bbd 100644 (file)
@@ -34,7 +34,7 @@
 #include "LightSource.h"
 #include "PointLightSource.h"
 #include "SpotLightSource.h"
-#include <wtf/Uint8ClampedArray.h>
+#include <runtime/Uint8ClampedArray.h>
 
 // Common base class for FEDiffuseLighting and FESpecularLighting
 
index 9e720f7..6b028ee 100644 (file)
@@ -30,8 +30,8 @@
 #include "RenderTreeAsText.h"
 #include "TextStream.h"
 
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/ParallelJobs.h>
-#include <wtf/Uint8ClampedArray.h>
 #include <wtf/Vector.h>
 
 using std::min;
index 1768874..c4bd979 100644 (file)
@@ -31,9 +31,9 @@
 #include "RenderTreeAsText.h"
 #include "TextStream.h"
 
+#include <runtime/Uint8ClampedArray.h>
 #include <wtf/MathExtras.h>
 #include <wtf/ParallelJobs.h>
-#include <wtf/Uint8ClampedArray.h>
 
 namespace WebCore {
 
index 5dd065d..f1b45d6 100644 (file)
@@ -28,7 +28,7 @@
 #include "Filter.h"
 #include "ImageBuffer.h"
 #include "TextStream.h"
-#include <wtf/Uint8ClampedArray.h>
+#include <runtime/Uint8ClampedArray.h>
 
 #if HAVE(ARM_NEON_INTRINSICS)
 #include <arm_neon.h>
index 296461f..cdc7a50 100644 (file)
 #include "FloatRect.h"
 #include "IntRect.h"
 
+#include <runtime/Uint8ClampedArray.h>
+
 #include <wtf/PassOwnPtr.h>
 #include <wtf/RefCounted.h>
 #include <wtf/RefPtr.h>
-#include <wtf/Uint8ClampedArray.h>
 #include <wtf/Vector.h>
 
 #if ENABLE(OPENCL)
index 2613aaa..c2c43e9 100644 (file)
 #include <OpenGL/gl.h>
 #include "WebGLLayer.h"
 #include "WebGLObject.h"
-#include <wtf/ArrayBuffer.h>
-#include <wtf/ArrayBufferView.h>
-#include <wtf/Int32Array.h>
-#include <wtf/Float32Array.h>
-#include <wtf/Uint8Array.h>
+#include <runtime/ArrayBuffer.h>
+#include <runtime/ArrayBufferView.h>
+#include <runtime/Int32Array.h>
+#include <runtime/Float32Array.h>
+#include <runtime/Uint8Array.h>
 #include <wtf/text/CString.h>
 
 namespace WebCore {
index 9d46a4c..6902b61 100644 (file)
 #include "IntSize.h"
 #include "NotImplemented.h"
 #include <cstring>
-#include <wtf/ArrayBuffer.h>
-#include <wtf/ArrayBufferView.h>
-#include <wtf/Float32Array.h>
-#include <wtf/Int32Array.h>
+#include <runtime/ArrayBuffer.h>
+#include <runtime/ArrayBufferView.h>
+#include <runtime/Float32Array.h>
+#include <runtime/Int32Array.h>
+#include <runtime/Uint8Array.h>
 #include <wtf/MainThread.h>
 #include <wtf/OwnArrayPtr.h>
-#include <wtf/Uint8Array.h>
 #include <wtf/text/CString.h>
 
 #if USE(OPENGL_ES_2)
index d4dc240..d1b4b97 100644 (file)
@@ -31,8 +31,8 @@
 #include "ContextDestructionObserver.h"
 #include "ExceptionCodePlaceholder.h"
 #include "NodeList.h"
-#include <wtf/ArrayBuffer.h>
-#include <wtf/Float32Array.h>
+#include <runtime/ArrayBuffer.h>
+#include <runtime/Float32Array.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
 #include <wtf/text/WTFString.h>
index 3e6bf8a..ad74a24 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "CDM.h"
 #include "MediaKeyError.h"
-#include <wtf/Uint8Array.h>
+#include <runtime/Uint8Array.h>
 
 namespace WebCore {
 
@@ -80,7 +80,7 @@ static Uint8Array* initDataPrefix()
 static Uint8Array* keyPrefix()
 {
     static const unsigned char prefixData[] = {'k', 'e', 'y'};
-    DEFINE_STATIC_LOCAL(RefPtr<WTF::Uint8Array>, prefix, ());
+    DEFINE_STATIC_LOCAL(RefPtr<JSC::Uint8Array>, prefix, ());
     static bool initialized = false;
     if (!initialized) {
         initialized = true;
@@ -92,7 +92,7 @@ static Uint8Array* keyPrefix()
 static Uint8Array* keyRequest()
 {
     static const unsigned char requestData[] = {'r', 'e', 'q', 'u', 'e', 's', 't'};
-    DEFINE_STATIC_LOCAL(RefPtr<WTF::Uint8Array>, request, ());
+    DEFINE_STATIC_LOCAL(RefPtr<JSC::Uint8Array>, request, ());
     static bool initialized = false;
     if (!initialized) {
         initialized = true;
index 09e7fe5..4bc0596 100644 (file)
 #include "XMLHttpRequestUpload.h"
 #include "markup.h"
 #include <heap/Strong.h>
+#include <runtime/ArrayBuffer.h>
+#include <runtime/ArrayBufferView.h>
 #include <runtime/JSLock.h>
 #include <runtime/Operations.h>
-#include <wtf/ArrayBuffer.h>
-#include <wtf/ArrayBufferView.h>
 #include <wtf/RefCountedLeakCounter.h>
 #include <wtf/StdLibExtras.h>
 #include <wtf/text/CString.h>
index 1cd76bc..6afff37 100644 (file)
 #include <wtf/text/AtomicStringHash.h>
 #include <wtf/text/StringBuilder.h>
 
+namespace JSC {
+class ArrayBuffer;
+class ArrayBufferView;
+}
+
 namespace WebCore {
 
 class Blob;
@@ -91,8 +96,8 @@ public:
     void send(const String&, ExceptionCode&);
     void send(Blob*, ExceptionCode&);
     void send(DOMFormData*, ExceptionCode&);
-    void send(ArrayBuffer*, ExceptionCode&);
-    void send(ArrayBufferView*, ExceptionCode&);
+    void send(JSC::ArrayBuffer*, ExceptionCode&);
+    void send(JSC::ArrayBufferView*, ExceptionCode&);
     void abort();
     void setRequestHeader(const AtomicString& name, const String& value, ExceptionCode&);
     void overrideMimeType(const String& override);
@@ -120,8 +125,8 @@ public:
     ResponseTypeCode responseTypeCode() const { return m_responseTypeCode; }
     
     // response attribute has custom getter.
-    ArrayBuffer* responseArrayBuffer(ExceptionCode&);
-    ArrayBuffer* optionalResponseArrayBuffer() const { return m_responseArrayBuffer.get(); }
+    JSC::ArrayBuffer* responseArrayBuffer(ExceptionCode&);
+    JSC::ArrayBuffer* optionalResponseArrayBuffer() const { return m_responseArrayBuffer.get(); }
 
     void setLastSendLineNumber(unsigned lineNumber) { m_lastSendLineNumber = lineNumber; }
     void setLastSendURL(const String& url) { m_lastSendURL = url; }
@@ -222,7 +227,7 @@ private:
     mutable RefPtr<Document> m_responseDocument;
     
     RefPtr<SharedBuffer> m_binaryResponseBuilder;
-    mutable RefPtr<ArrayBuffer> m_responseArrayBuffer;
+    mutable RefPtr<JSC::ArrayBuffer> m_responseArrayBuffer;
 
     bool m_error;