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

        Make simple built-in kernel argument parser to support multiple
        kernel declarations in the same program
        Issue #332

        Reviewed by NOBODY (OOPS!).

        Logic is:
        1) find "__kernel" string.
        2) find the first open braces past "__kernel".
        3) reverseFind the given kernel name string.
        4) if not found go back to (1).
        5) if found, parse its argument list.

        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createProgram):
        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::ArgumentList::ensureArgumentData):
2013-11-06  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Make WebCLKernel to have its own copy of the
        program source, in order to avoid accessing a
        possible program dangling pointer.

        Crash of WebKit with the last setArg implementation
        #327

        Related to issue #335 (WebCLKernel might hold a dangling
        backpoint to WebCLKernel), but just a work around.

        Reviewed by NOBODY (OOPS!).

        Fixes a crash in the translated (opencl->webcl) smallpt demo.

        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::WebCLKernel):
        (WebCore::WebCLKernel::getInfo):
        (WebCore::WebCLKernel::ArgumentList::ensureArgumentData):
        * Modules/webcl/WebCLKernel.h: