2013-11-04  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Validate the kernel argument index in WebCL side.
        Issue #331

        Reviewed by Igor.

        Check if the 'index' passed in within the
        range of valid kernel argument indexes.
        Bail out if not.

        * Modules/webcl/WebCLInputChecker.cpp:
        (WebCore::WebCLInputChecker::isValidKernelArgIndex):
        * Modules/webcl/WebCLInputChecker.h:
        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::setArg):
        (WebCore::WebCLKernel::numberOfArguments):
        * Modules/webcl/WebCLKernel.h:

        Conformance test:
        * basicoperations/cl_commandQueue_enqueueNDRangeKernel.html