[V8] Remove custom toV8() calls for TypedArray.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Aug 2012 09:27:36 +0000 (09:27 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Aug 2012 09:27:36 +0000 (09:27 +0000)
commitecf58005ed4ae42ab9e604d29faa6a571d373ef8
treee946cd5942697b24cb7f9e7084f4dbd2a4877c7c
parent4e5368768c7143555e9fcaa7f2aeebcc21fa6c0d
[V8] Remove custom toV8() calls for TypedArray.
https://bugs.webkit.org/show_bug.cgi?id=93248

Patch by Vineet Chaudhary <rgf748@motorola.com> on 2012-08-07
Reviewed by Kentaro Hara.

With the support of [TypedArray] we can remove the custom calls toV8().
TypedArray spec : http://www.khronos.org/registry/typedarray/specs/latest/#7

Tests: TestTypedArray.idl
Tests under below folders should pass as this does not cause any behavioral changes.
       fast/canvas/webgl
       compositing/webgl

* bindings/js/JSInt8ArrayCustom.cpp:
* bindings/js/JSUint8ArrayCustom.cpp:
* bindings/js/JSUint8ClampedArrayCustom.cpp:
* bindings/scripts/CodeGeneratorV8.pm:
(GenerateImplementation): Modified Generator code to generate bindings for toV8().
(IsWrapperType):
(GetTypeNameOfExternalTypedArray): Method to get view type of TypedArray.
* bindings/scripts/test/V8/V8Float64Array.cpp: Tests results.
(WebCore::toV8):
* bindings/v8/custom/V8Float32ArrayCustom.cpp: Removed custom call toV8().
* bindings/v8/custom/V8Float64ArrayCustom.cpp: Ditto.
* bindings/v8/custom/V8Int16ArrayCustom.cpp: Ditto.
* bindings/v8/custom/V8Int32ArrayCustom.cpp: Ditto.
* bindings/v8/custom/V8Int8ArrayCustom.cpp: Ditto.
* bindings/v8/custom/V8Uint16ArrayCustom.cpp: Ditto.
* bindings/v8/custom/V8Uint32ArrayCustom.cpp: Ditto.
* bindings/v8/custom/V8Uint8ArrayCustom.cpp: Ditto.
* bindings/v8/custom/V8Uint8ClampedArrayCustom.cpp: Ditto.
* html/canvas/Int8Array.idl: Using TypedArray.
* html/canvas/Uint8Array.idl: Ditto.
* html/canvas/Uint8ClampedArray.idl: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@124872 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSInt8ArrayCustom.cpp
Source/WebCore/bindings/js/JSUint8ArrayCustom.cpp
Source/WebCore/bindings/js/JSUint8ClampedArrayCustom.cpp
Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
Source/WebCore/bindings/scripts/test/V8/V8Float64Array.cpp
Source/WebCore/bindings/v8/custom/V8Float32ArrayCustom.cpp
Source/WebCore/bindings/v8/custom/V8Float64ArrayCustom.cpp
Source/WebCore/bindings/v8/custom/V8Int16ArrayCustom.cpp
Source/WebCore/bindings/v8/custom/V8Int32ArrayCustom.cpp
Source/WebCore/bindings/v8/custom/V8Int8ArrayCustom.cpp
Source/WebCore/bindings/v8/custom/V8Uint16ArrayCustom.cpp
Source/WebCore/bindings/v8/custom/V8Uint32ArrayCustom.cpp
Source/WebCore/bindings/v8/custom/V8Uint8ArrayCustom.cpp
Source/WebCore/bindings/v8/custom/V8Uint8ClampedArrayCustom.cpp
Source/WebCore/html/canvas/Int8Array.idl
Source/WebCore/html/canvas/Uint8Array.idl
Source/WebCore/html/canvas/Uint8ClampedArray.idl