2014-04-03  Sharath Kamath  <s.kamath@samsung.com>

        Adding a new Overload for SetArg() API.

        Issue #501

        Reviewed by NOBODY (OOPS!).

        As per changes in the specification based on
        [http://www.khronos.org/bugzilla/show_bug.cgi?id=1117]
        overloading the setArg API to take WebCLImage & WebCLBuffer
        instead of WebCLMemoryObject.

        All setArg() test cases in conformance test suite.

        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::setArg):
        * Modules/webcl/WebCLKernel.h:
        * Modules/webcl/WebCLKernel.idl:
2014-04-03  Sharath Kamath  <s.kamath@samsung.com>

        Validate the argValue type against expected type at index.

        Issue #501

        Reviewed by NOBODY (OOPS!).

        Checking in these overload if the kernel type and the
        value sent to the setArg() are matching.
        Changing the parser to retain the Asterisk['*'] in the dataType,
        as that will be used to check if the data type is pointer/cl_mem type.

        Also adding validation in all SetArg() API's to validate the value against
        kernel data.

        All setArg() test cases in conformance test suite.

        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::setArg):
        * Modules/webcl/WebCLKernelArgInfo.h:
        (WebCore::WebCLKernelArgInfo::create):
        (WebCore::WebCLKernelArgInfo::isCLMem):
        (WebCore::WebCLKernelArgInfo::WebCLKernelArgInfo):
        * Modules/webcl/WebCLKernelArgInfoProvider.cpp:
        (WebCore::isASCIILineBreakCharacter):
        (WebCore::isStarCharacter):
        (WebCore::WebCLKernelArgInfoProvider::ensureInfo):
        (WebCore::WebCLKernelArgInfoProvider::parseAndAppendDeclaration):