2013-08-01  Sharath Kamath  <s.kamath@samsung.com>

        Implement SetArg(...) API using "any" IDL attribute.
        Issue #200

        Reviewed by Antonio & Igor.

        Implement void setArg(CLuint index, any value, optional CLtype type);
        Also the values sent by users must be clamped based on the max capacity
        of the type.

        Conformance test cases under conformance/setArg/ folder @
        https://github.com/SRA-SiliconValley/webkit-webcl-conformance

        * Modules/webcl/WebCL.h:
        * Modules/webcl/WebCLCommandQueue.cpp:
        * Modules/webcl/WebCLCommandQueue.h:
        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::setArg):
        * Modules/webcl/WebCLKernel.h:
        (WebCore::WebCLKernel::setArg):
        (WebCore::WebCLKernel::setArgHelper):
        (WebCore::size_t):
        (WebCore::WebCLKernel::setMemoryArgHelper):
        * Modules/webcl/WebCLKernel.idl:
        * Modules/webcl/WebCLProgram.cpp:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSWebCLKernelCustom.h: Added.
        (WebCore::determineType):
        (WebCore::jsDecodeKernelArgValue):
        * platform/ComputeContext.h:
2013-07-31  Sharath Kamath  <s.kamath@samsung.com>

        Adding Vector support to setArg() API.
        Need the bug URL (OOPS!).

        Reviewed by NOBODY (OOPS!).

        No new tests (OOPS!).

        User can send basic data types as array and indicate the type by
        bitwise OR the type with VEC2, VEC3, VEC4, VEC8 & VEC16.
        If he sends lesser number of elemets it will be padded with 0 to
        fill the size indicated by argtype.

        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::setArg):
        * Modules/webcl/WebCLKernel.h:
        (WebCore::WebCLKernel::setArgHelper):
        (WebCore::size_t):
        * bindings/js/JSWebCLKernelCustom.h:
        (WebCore::determineVectorSize):
        (WebCore::determineType):
        (WebCore::jsDecodeKernelArgValue):