WebCore/generated/JSWebGLRenderingContext.cpp
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 /*
       
     2     This file is part of the WebKit open source project.
       
     3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
       
     4 
       
     5     This library is free software; you can redistribute it and/or
       
     6     modify it under the terms of the GNU Library General Public
       
     7     License as published by the Free Software Foundation; either
       
     8     version 2 of the License, or (at your option) any later version.
       
     9 
       
    10     This library is distributed in the hope that it will be useful,
       
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13     Library General Public License for more details.
       
    14 
       
    15     You should have received a copy of the GNU Library General Public License
       
    16     along with this library; see the file COPYING.LIB.  If not, write to
       
    17     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
       
    18     Boston, MA 02110-1301, USA.
       
    19 */
       
    20 
       
    21 #include "config.h"
       
    22 
       
    23 #if ENABLE(3D_CANVAS)
       
    24 
       
    25 #include "JSWebGLRenderingContext.h"
       
    26 
       
    27 #include "JSArrayBuffer.h"
       
    28 #include "JSArrayBufferView.h"
       
    29 #include "JSHTMLCanvasElement.h"
       
    30 #include "JSHTMLImageElement.h"
       
    31 #include "JSHTMLVideoElement.h"
       
    32 #include "JSImageData.h"
       
    33 #include "JSWebGLActiveInfo.h"
       
    34 #include "JSWebGLBuffer.h"
       
    35 #include "JSWebGLContextAttributes.h"
       
    36 #include "JSWebGLFramebuffer.h"
       
    37 #include "JSWebGLProgram.h"
       
    38 #include "JSWebGLRenderbuffer.h"
       
    39 #include "JSWebGLShader.h"
       
    40 #include "JSWebGLTexture.h"
       
    41 #include "JSWebGLUniformLocation.h"
       
    42 #include "KURL.h"
       
    43 #include "WebGLActiveInfo.h"
       
    44 #include "WebGLBuffer.h"
       
    45 #include "WebGLContextAttributes.h"
       
    46 #include "WebGLFramebuffer.h"
       
    47 #include "WebGLProgram.h"
       
    48 #include "WebGLRenderbuffer.h"
       
    49 #include "WebGLRenderingContext.h"
       
    50 #include "WebGLShader.h"
       
    51 #include "WebGLTexture.h"
       
    52 #include "WebGLUniformLocation.h"
       
    53 #include <runtime/Error.h>
       
    54 #include <runtime/JSNumberCell.h>
       
    55 #include <runtime/JSString.h>
       
    56 #include <wtf/GetPtr.h>
       
    57 
       
    58 using namespace JSC;
       
    59 
       
    60 namespace WebCore {
       
    61 
       
    62 ASSERT_CLASS_FITS_IN_CELL(JSWebGLRenderingContext);
       
    63 
       
    64 /* Hash table */
       
    65 #if ENABLE(JIT)
       
    66 #define THUNK_GENERATOR(generator) , generator
       
    67 #else
       
    68 #define THUNK_GENERATOR(generator)
       
    69 #endif
       
    70 
       
    71 static const HashTableValue JSWebGLRenderingContextTableValues[2] =
       
    72 {
       
    73     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    74     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    75 };
       
    76 
       
    77 #undef THUNK_GENERATOR
       
    78 static JSC_CONST_HASHTABLE HashTable JSWebGLRenderingContextTable = { 2, 1, JSWebGLRenderingContextTableValues, 0 };
       
    79 /* Hash table for constructor */
       
    80 #if ENABLE(JIT)
       
    81 #define THUNK_GENERATOR(generator) , generator
       
    82 #else
       
    83 #define THUNK_GENERATOR(generator)
       
    84 #endif
       
    85 
       
    86 static const HashTableValue JSWebGLRenderingContextConstructorTableValues[307] =
       
    87 {
       
    88     { "DEPTH_BUFFER_BIT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_BUFFER_BIT), (intptr_t)0 THUNK_GENERATOR(0) },
       
    89     { "STENCIL_BUFFER_BIT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BUFFER_BIT), (intptr_t)0 THUNK_GENERATOR(0) },
       
    90     { "COLOR_BUFFER_BIT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOLOR_BUFFER_BIT), (intptr_t)0 THUNK_GENERATOR(0) },
       
    91     { "FALSE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFALSE), (intptr_t)0 THUNK_GENERATOR(0) },
       
    92     { "TRUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTRUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
    93     { "POINTS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextPOINTS), (intptr_t)0 THUNK_GENERATOR(0) },
       
    94     { "LINES", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINES), (intptr_t)0 THUNK_GENERATOR(0) },
       
    95     { "LINE_LOOP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINE_LOOP), (intptr_t)0 THUNK_GENERATOR(0) },
       
    96     { "LINE_STRIP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINE_STRIP), (intptr_t)0 THUNK_GENERATOR(0) },
       
    97     { "TRIANGLES", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTRIANGLES), (intptr_t)0 THUNK_GENERATOR(0) },
       
    98     { "TRIANGLE_STRIP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTRIANGLE_STRIP), (intptr_t)0 THUNK_GENERATOR(0) },
       
    99     { "TRIANGLE_FAN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTRIANGLE_FAN), (intptr_t)0 THUNK_GENERATOR(0) },
       
   100     { "ZERO", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextZERO), (intptr_t)0 THUNK_GENERATOR(0) },
       
   101     { "ONE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   102     { "SRC_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSRC_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   103     { "ONE_MINUS_SRC_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_SRC_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   104     { "SRC_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSRC_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   105     { "ONE_MINUS_SRC_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_SRC_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   106     { "DST_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDST_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   107     { "ONE_MINUS_DST_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_DST_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   108     { "DST_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDST_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   109     { "ONE_MINUS_DST_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_DST_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   110     { "SRC_ALPHA_SATURATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSRC_ALPHA_SATURATE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   111     { "FUNC_ADD", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFUNC_ADD), (intptr_t)0 THUNK_GENERATOR(0) },
       
   112     { "BLEND_EQUATION", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_EQUATION), (intptr_t)0 THUNK_GENERATOR(0) },
       
   113     { "BLEND_EQUATION_RGB", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_EQUATION_RGB), (intptr_t)0 THUNK_GENERATOR(0) },
       
   114     { "BLEND_EQUATION_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_EQUATION_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   115     { "FUNC_SUBTRACT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFUNC_SUBTRACT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   116     { "FUNC_REVERSE_SUBTRACT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFUNC_REVERSE_SUBTRACT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   117     { "BLEND_DST_RGB", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_DST_RGB), (intptr_t)0 THUNK_GENERATOR(0) },
       
   118     { "BLEND_SRC_RGB", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_SRC_RGB), (intptr_t)0 THUNK_GENERATOR(0) },
       
   119     { "BLEND_DST_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_DST_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   120     { "BLEND_SRC_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_SRC_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   121     { "CONSTANT_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCONSTANT_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   122     { "ONE_MINUS_CONSTANT_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_CONSTANT_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   123     { "CONSTANT_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCONSTANT_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   124     { "ONE_MINUS_CONSTANT_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_CONSTANT_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   125     { "BLEND_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   126     { "ARRAY_BUFFER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextARRAY_BUFFER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   127     { "ELEMENT_ARRAY_BUFFER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextELEMENT_ARRAY_BUFFER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   128     { "ARRAY_BUFFER_BINDING", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextARRAY_BUFFER_BINDING), (intptr_t)0 THUNK_GENERATOR(0) },
       
   129     { "ELEMENT_ARRAY_BUFFER_BINDING", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextELEMENT_ARRAY_BUFFER_BINDING), (intptr_t)0 THUNK_GENERATOR(0) },
       
   130     { "STREAM_DRAW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTREAM_DRAW), (intptr_t)0 THUNK_GENERATOR(0) },
       
   131     { "STATIC_DRAW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTATIC_DRAW), (intptr_t)0 THUNK_GENERATOR(0) },
       
   132     { "DYNAMIC_DRAW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDYNAMIC_DRAW), (intptr_t)0 THUNK_GENERATOR(0) },
       
   133     { "BUFFER_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBUFFER_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   134     { "BUFFER_USAGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBUFFER_USAGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   135     { "CURRENT_VERTEX_ATTRIB", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCURRENT_VERTEX_ATTRIB), (intptr_t)0 THUNK_GENERATOR(0) },
       
   136     { "FRONT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRONT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   137     { "BACK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBACK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   138     { "FRONT_AND_BACK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRONT_AND_BACK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   139     { "TEXTURE_2D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_2D), (intptr_t)0 THUNK_GENERATOR(0) },
       
   140     { "CULL_FACE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCULL_FACE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   141     { "BLEND", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND), (intptr_t)0 THUNK_GENERATOR(0) },
       
   142     { "DITHER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDITHER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   143     { "STENCIL_TEST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_TEST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   144     { "DEPTH_TEST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_TEST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   145     { "SCISSOR_TEST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSCISSOR_TEST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   146     { "POLYGON_OFFSET_FILL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextPOLYGON_OFFSET_FILL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   147     { "SAMPLE_ALPHA_TO_COVERAGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLE_ALPHA_TO_COVERAGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   148     { "SAMPLE_COVERAGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLE_COVERAGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   149     { "NO_ERROR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNO_ERROR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   150     { "INVALID_ENUM", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINVALID_ENUM), (intptr_t)0 THUNK_GENERATOR(0) },
       
   151     { "INVALID_VALUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINVALID_VALUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   152     { "INVALID_OPERATION", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINVALID_OPERATION), (intptr_t)0 THUNK_GENERATOR(0) },
       
   153     { "OUT_OF_MEMORY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextOUT_OF_MEMORY), (intptr_t)0 THUNK_GENERATOR(0) },
       
   154     { "CW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCW), (intptr_t)0 THUNK_GENERATOR(0) },
       
   155     { "CCW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCCW), (intptr_t)0 THUNK_GENERATOR(0) },
       
   156     { "LINE_WIDTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINE_WIDTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   157     { "ALIASED_POINT_SIZE_RANGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextALIASED_POINT_SIZE_RANGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   158     { "ALIASED_LINE_WIDTH_RANGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextALIASED_LINE_WIDTH_RANGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   159     { "CULL_FACE_MODE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCULL_FACE_MODE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   160     { "FRONT_FACE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRONT_FACE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   161     { "DEPTH_RANGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_RANGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   162     { "DEPTH_WRITEMASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_WRITEMASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   163     { "DEPTH_CLEAR_VALUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_CLEAR_VALUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   164     { "DEPTH_FUNC", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_FUNC), (intptr_t)0 THUNK_GENERATOR(0) },
       
   165     { "STENCIL_CLEAR_VALUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_CLEAR_VALUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   166     { "STENCIL_FUNC", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_FUNC), (intptr_t)0 THUNK_GENERATOR(0) },
       
   167     { "STENCIL_FAIL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_FAIL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   168     { "STENCIL_PASS_DEPTH_FAIL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_PASS_DEPTH_FAIL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   169     { "STENCIL_PASS_DEPTH_PASS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_PASS_DEPTH_PASS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   170     { "STENCIL_REF", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_REF), (intptr_t)0 THUNK_GENERATOR(0) },
       
   171     { "STENCIL_VALUE_MASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_VALUE_MASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   172     { "STENCIL_WRITEMASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_WRITEMASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   173     { "STENCIL_BACK_FUNC", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_FUNC), (intptr_t)0 THUNK_GENERATOR(0) },
       
   174     { "STENCIL_BACK_FAIL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_FAIL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   175     { "STENCIL_BACK_PASS_DEPTH_FAIL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_PASS_DEPTH_FAIL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   176     { "STENCIL_BACK_PASS_DEPTH_PASS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_PASS_DEPTH_PASS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   177     { "STENCIL_BACK_REF", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_REF), (intptr_t)0 THUNK_GENERATOR(0) },
       
   178     { "STENCIL_BACK_VALUE_MASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_VALUE_MASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   179     { "STENCIL_BACK_WRITEMASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_WRITEMASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   180     { "VIEWPORT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVIEWPORT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   181     { "SCISSOR_BOX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSCISSOR_BOX), (intptr_t)0 THUNK_GENERATOR(0) },
       
   182     { "COLOR_CLEAR_VALUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOLOR_CLEAR_VALUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   183     { "COLOR_WRITEMASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOLOR_WRITEMASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   184     { "UNPACK_ALIGNMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNPACK_ALIGNMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   185     { "PACK_ALIGNMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextPACK_ALIGNMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   186     { "MAX_TEXTURE_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_TEXTURE_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   187     { "MAX_VIEWPORT_DIMS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_VIEWPORT_DIMS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   188     { "SUBPIXEL_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSUBPIXEL_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   189     { "RED_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRED_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   190     { "GREEN_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextGREEN_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   191     { "BLUE_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLUE_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   192     { "ALPHA_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextALPHA_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   193     { "DEPTH_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   194     { "STENCIL_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   195     { "POLYGON_OFFSET_UNITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextPOLYGON_OFFSET_UNITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   196     { "POLYGON_OFFSET_FACTOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextPOLYGON_OFFSET_FACTOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   197     { "TEXTURE_BINDING_2D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_BINDING_2D), (intptr_t)0 THUNK_GENERATOR(0) },
       
   198     { "SAMPLE_BUFFERS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLE_BUFFERS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   199     { "SAMPLES", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLES), (intptr_t)0 THUNK_GENERATOR(0) },
       
   200     { "SAMPLE_COVERAGE_VALUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLE_COVERAGE_VALUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   201     { "SAMPLE_COVERAGE_INVERT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLE_COVERAGE_INVERT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   202     { "NUM_COMPRESSED_TEXTURE_FORMATS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNUM_COMPRESSED_TEXTURE_FORMATS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   203     { "COMPRESSED_TEXTURE_FORMATS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOMPRESSED_TEXTURE_FORMATS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   204     { "DONT_CARE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDONT_CARE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   205     { "FASTEST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFASTEST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   206     { "NICEST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNICEST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   207     { "GENERATE_MIPMAP_HINT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextGENERATE_MIPMAP_HINT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   208     { "BYTE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBYTE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   209     { "UNSIGNED_BYTE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_BYTE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   210     { "SHORT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHORT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   211     { "UNSIGNED_SHORT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_SHORT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   212     { "INT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   213     { "UNSIGNED_INT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_INT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   214     { "FLOAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   215     { "FIXED", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFIXED), (intptr_t)0 THUNK_GENERATOR(0) },
       
   216     { "DEPTH_COMPONENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_COMPONENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   217     { "ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   218     { "RGB", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRGB), (intptr_t)0 THUNK_GENERATOR(0) },
       
   219     { "RGBA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRGBA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   220     { "LUMINANCE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLUMINANCE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   221     { "LUMINANCE_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLUMINANCE_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   222     { "UNSIGNED_SHORT_4_4_4_4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_SHORT_4_4_4_4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   223     { "UNSIGNED_SHORT_5_5_5_1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_SHORT_5_5_5_1), (intptr_t)0 THUNK_GENERATOR(0) },
       
   224     { "UNSIGNED_SHORT_5_6_5", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_SHORT_5_6_5), (intptr_t)0 THUNK_GENERATOR(0) },
       
   225     { "FRAGMENT_SHADER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAGMENT_SHADER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   226     { "VERTEX_SHADER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_SHADER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   227     { "MAX_VERTEX_ATTRIBS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_VERTEX_ATTRIBS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   228     { "MAX_VERTEX_UNIFORM_VECTORS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_VERTEX_UNIFORM_VECTORS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   229     { "MAX_VARYING_VECTORS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_VARYING_VECTORS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   230     { "MAX_COMBINED_TEXTURE_IMAGE_UNITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_COMBINED_TEXTURE_IMAGE_UNITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   231     { "MAX_VERTEX_TEXTURE_IMAGE_UNITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_VERTEX_TEXTURE_IMAGE_UNITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   232     { "MAX_TEXTURE_IMAGE_UNITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_TEXTURE_IMAGE_UNITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   233     { "MAX_FRAGMENT_UNIFORM_VECTORS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_FRAGMENT_UNIFORM_VECTORS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   234     { "SHADER_TYPE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHADER_TYPE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   235     { "DELETE_STATUS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDELETE_STATUS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   236     { "LINK_STATUS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINK_STATUS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   237     { "VALIDATE_STATUS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVALIDATE_STATUS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   238     { "ATTACHED_SHADERS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextATTACHED_SHADERS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   239     { "ACTIVE_UNIFORMS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextACTIVE_UNIFORMS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   240     { "ACTIVE_UNIFORM_MAX_LENGTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextACTIVE_UNIFORM_MAX_LENGTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   241     { "ACTIVE_ATTRIBUTES", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextACTIVE_ATTRIBUTES), (intptr_t)0 THUNK_GENERATOR(0) },
       
   242     { "ACTIVE_ATTRIBUTE_MAX_LENGTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextACTIVE_ATTRIBUTE_MAX_LENGTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   243     { "SHADING_LANGUAGE_VERSION", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHADING_LANGUAGE_VERSION), (intptr_t)0 THUNK_GENERATOR(0) },
       
   244     { "CURRENT_PROGRAM", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCURRENT_PROGRAM), (intptr_t)0 THUNK_GENERATOR(0) },
       
   245     { "NEVER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNEVER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   246     { "LESS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLESS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   247     { "EQUAL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextEQUAL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   248     { "LEQUAL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLEQUAL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   249     { "GREATER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextGREATER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   250     { "NOTEQUAL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNOTEQUAL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   251     { "GEQUAL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextGEQUAL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   252     { "ALWAYS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextALWAYS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   253     { "KEEP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextKEEP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   254     { "REPLACE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextREPLACE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   255     { "INCR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINCR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   256     { "DECR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDECR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   257     { "INVERT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINVERT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   258     { "INCR_WRAP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINCR_WRAP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   259     { "DECR_WRAP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDECR_WRAP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   260     { "VENDOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVENDOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   261     { "RENDERER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   262     { "VERSION", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERSION), (intptr_t)0 THUNK_GENERATOR(0) },
       
   263     { "EXTENSIONS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextEXTENSIONS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   264     { "NEAREST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNEAREST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   265     { "LINEAR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINEAR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   266     { "NEAREST_MIPMAP_NEAREST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNEAREST_MIPMAP_NEAREST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   267     { "LINEAR_MIPMAP_NEAREST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINEAR_MIPMAP_NEAREST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   268     { "NEAREST_MIPMAP_LINEAR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNEAREST_MIPMAP_LINEAR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   269     { "LINEAR_MIPMAP_LINEAR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINEAR_MIPMAP_LINEAR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   270     { "TEXTURE_MAG_FILTER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_MAG_FILTER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   271     { "TEXTURE_MIN_FILTER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_MIN_FILTER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   272     { "TEXTURE_WRAP_S", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_WRAP_S), (intptr_t)0 THUNK_GENERATOR(0) },
       
   273     { "TEXTURE_WRAP_T", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_WRAP_T), (intptr_t)0 THUNK_GENERATOR(0) },
       
   274     { "TEXTURE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   275     { "TEXTURE_CUBE_MAP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   276     { "TEXTURE_BINDING_CUBE_MAP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_BINDING_CUBE_MAP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   277     { "TEXTURE_CUBE_MAP_POSITIVE_X", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_POSITIVE_X), (intptr_t)0 THUNK_GENERATOR(0) },
       
   278     { "TEXTURE_CUBE_MAP_NEGATIVE_X", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_NEGATIVE_X), (intptr_t)0 THUNK_GENERATOR(0) },
       
   279     { "TEXTURE_CUBE_MAP_POSITIVE_Y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_POSITIVE_Y), (intptr_t)0 THUNK_GENERATOR(0) },
       
   280     { "TEXTURE_CUBE_MAP_NEGATIVE_Y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_NEGATIVE_Y), (intptr_t)0 THUNK_GENERATOR(0) },
       
   281     { "TEXTURE_CUBE_MAP_POSITIVE_Z", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_POSITIVE_Z), (intptr_t)0 THUNK_GENERATOR(0) },
       
   282     { "TEXTURE_CUBE_MAP_NEGATIVE_Z", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_NEGATIVE_Z), (intptr_t)0 THUNK_GENERATOR(0) },
       
   283     { "MAX_CUBE_MAP_TEXTURE_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_CUBE_MAP_TEXTURE_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   284     { "TEXTURE0", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE0), (intptr_t)0 THUNK_GENERATOR(0) },
       
   285     { "TEXTURE1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE1), (intptr_t)0 THUNK_GENERATOR(0) },
       
   286     { "TEXTURE2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE2), (intptr_t)0 THUNK_GENERATOR(0) },
       
   287     { "TEXTURE3", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE3), (intptr_t)0 THUNK_GENERATOR(0) },
       
   288     { "TEXTURE4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   289     { "TEXTURE5", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE5), (intptr_t)0 THUNK_GENERATOR(0) },
       
   290     { "TEXTURE6", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE6), (intptr_t)0 THUNK_GENERATOR(0) },
       
   291     { "TEXTURE7", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE7), (intptr_t)0 THUNK_GENERATOR(0) },
       
   292     { "TEXTURE8", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE8), (intptr_t)0 THUNK_GENERATOR(0) },
       
   293     { "TEXTURE9", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE9), (intptr_t)0 THUNK_GENERATOR(0) },
       
   294     { "TEXTURE10", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE10), (intptr_t)0 THUNK_GENERATOR(0) },
       
   295     { "TEXTURE11", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE11), (intptr_t)0 THUNK_GENERATOR(0) },
       
   296     { "TEXTURE12", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE12), (intptr_t)0 THUNK_GENERATOR(0) },
       
   297     { "TEXTURE13", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE13), (intptr_t)0 THUNK_GENERATOR(0) },
       
   298     { "TEXTURE14", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE14), (intptr_t)0 THUNK_GENERATOR(0) },
       
   299     { "TEXTURE15", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE15), (intptr_t)0 THUNK_GENERATOR(0) },
       
   300     { "TEXTURE16", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE16), (intptr_t)0 THUNK_GENERATOR(0) },
       
   301     { "TEXTURE17", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE17), (intptr_t)0 THUNK_GENERATOR(0) },
       
   302     { "TEXTURE18", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE18), (intptr_t)0 THUNK_GENERATOR(0) },
       
   303     { "TEXTURE19", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE19), (intptr_t)0 THUNK_GENERATOR(0) },
       
   304     { "TEXTURE20", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE20), (intptr_t)0 THUNK_GENERATOR(0) },
       
   305     { "TEXTURE21", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE21), (intptr_t)0 THUNK_GENERATOR(0) },
       
   306     { "TEXTURE22", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE22), (intptr_t)0 THUNK_GENERATOR(0) },
       
   307     { "TEXTURE23", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE23), (intptr_t)0 THUNK_GENERATOR(0) },
       
   308     { "TEXTURE24", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE24), (intptr_t)0 THUNK_GENERATOR(0) },
       
   309     { "TEXTURE25", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE25), (intptr_t)0 THUNK_GENERATOR(0) },
       
   310     { "TEXTURE26", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE26), (intptr_t)0 THUNK_GENERATOR(0) },
       
   311     { "TEXTURE27", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE27), (intptr_t)0 THUNK_GENERATOR(0) },
       
   312     { "TEXTURE28", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE28), (intptr_t)0 THUNK_GENERATOR(0) },
       
   313     { "TEXTURE29", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE29), (intptr_t)0 THUNK_GENERATOR(0) },
       
   314     { "TEXTURE30", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE30), (intptr_t)0 THUNK_GENERATOR(0) },
       
   315     { "TEXTURE31", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE31), (intptr_t)0 THUNK_GENERATOR(0) },
       
   316     { "ACTIVE_TEXTURE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextACTIVE_TEXTURE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   317     { "REPEAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextREPEAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   318     { "CLAMP_TO_EDGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCLAMP_TO_EDGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   319     { "MIRRORED_REPEAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMIRRORED_REPEAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   320     { "FLOAT_VEC2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_VEC2), (intptr_t)0 THUNK_GENERATOR(0) },
       
   321     { "FLOAT_VEC3", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_VEC3), (intptr_t)0 THUNK_GENERATOR(0) },
       
   322     { "FLOAT_VEC4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_VEC4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   323     { "INT_VEC2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINT_VEC2), (intptr_t)0 THUNK_GENERATOR(0) },
       
   324     { "INT_VEC3", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINT_VEC3), (intptr_t)0 THUNK_GENERATOR(0) },
       
   325     { "INT_VEC4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINT_VEC4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   326     { "BOOL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBOOL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   327     { "BOOL_VEC2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBOOL_VEC2), (intptr_t)0 THUNK_GENERATOR(0) },
       
   328     { "BOOL_VEC3", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBOOL_VEC3), (intptr_t)0 THUNK_GENERATOR(0) },
       
   329     { "BOOL_VEC4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBOOL_VEC4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   330     { "FLOAT_MAT2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_MAT2), (intptr_t)0 THUNK_GENERATOR(0) },
       
   331     { "FLOAT_MAT3", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_MAT3), (intptr_t)0 THUNK_GENERATOR(0) },
       
   332     { "FLOAT_MAT4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_MAT4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   333     { "SAMPLER_2D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLER_2D), (intptr_t)0 THUNK_GENERATOR(0) },
       
   334     { "SAMPLER_CUBE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLER_CUBE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   335     { "VERTEX_ATTRIB_ARRAY_ENABLED", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_ENABLED), (intptr_t)0 THUNK_GENERATOR(0) },
       
   336     { "VERTEX_ATTRIB_ARRAY_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   337     { "VERTEX_ATTRIB_ARRAY_STRIDE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_STRIDE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   338     { "VERTEX_ATTRIB_ARRAY_TYPE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_TYPE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   339     { "VERTEX_ATTRIB_ARRAY_NORMALIZED", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_NORMALIZED), (intptr_t)0 THUNK_GENERATOR(0) },
       
   340     { "VERTEX_ATTRIB_ARRAY_POINTER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_POINTER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   341     { "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_BUFFER_BINDING), (intptr_t)0 THUNK_GENERATOR(0) },
       
   342     { "IMPLEMENTATION_COLOR_READ_TYPE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextIMPLEMENTATION_COLOR_READ_TYPE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   343     { "IMPLEMENTATION_COLOR_READ_FORMAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextIMPLEMENTATION_COLOR_READ_FORMAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   344     { "COMPILE_STATUS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOMPILE_STATUS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   345     { "INFO_LOG_LENGTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINFO_LOG_LENGTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   346     { "SHADER_SOURCE_LENGTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHADER_SOURCE_LENGTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   347     { "SHADER_COMPILER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHADER_COMPILER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   348     { "SHADER_BINARY_FORMATS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHADER_BINARY_FORMATS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   349     { "NUM_SHADER_BINARY_FORMATS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNUM_SHADER_BINARY_FORMATS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   350     { "LOW_FLOAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLOW_FLOAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   351     { "MEDIUM_FLOAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMEDIUM_FLOAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   352     { "HIGH_FLOAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextHIGH_FLOAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   353     { "LOW_INT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLOW_INT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   354     { "MEDIUM_INT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMEDIUM_INT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   355     { "HIGH_INT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextHIGH_INT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   356     { "FRAMEBUFFER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   357     { "RENDERBUFFER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   358     { "RGBA4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRGBA4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   359     { "RGB5_A1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRGB5_A1), (intptr_t)0 THUNK_GENERATOR(0) },
       
   360     { "RGB565", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRGB565), (intptr_t)0 THUNK_GENERATOR(0) },
       
   361     { "DEPTH_COMPONENT16", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_COMPONENT16), (intptr_t)0 THUNK_GENERATOR(0) },
       
   362     { "STENCIL_INDEX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_INDEX), (intptr_t)0 THUNK_GENERATOR(0) },
       
   363     { "STENCIL_INDEX8", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_INDEX8), (intptr_t)0 THUNK_GENERATOR(0) },
       
   364     { "DEPTH_STENCIL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_STENCIL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   365     { "RENDERBUFFER_WIDTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_WIDTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   366     { "RENDERBUFFER_HEIGHT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_HEIGHT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   367     { "RENDERBUFFER_INTERNAL_FORMAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_INTERNAL_FORMAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   368     { "RENDERBUFFER_RED_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_RED_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   369     { "RENDERBUFFER_GREEN_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_GREEN_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   370     { "RENDERBUFFER_BLUE_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_BLUE_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   371     { "RENDERBUFFER_ALPHA_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_ALPHA_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   372     { "RENDERBUFFER_DEPTH_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_DEPTH_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   373     { "RENDERBUFFER_STENCIL_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_STENCIL_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   374     { "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_OBJECT_TYPE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   375     { "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_OBJECT_NAME), (intptr_t)0 THUNK_GENERATOR(0) },
       
   376     { "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   377     { "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   378     { "COLOR_ATTACHMENT0", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOLOR_ATTACHMENT0), (intptr_t)0 THUNK_GENERATOR(0) },
       
   379     { "DEPTH_ATTACHMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_ATTACHMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   380     { "STENCIL_ATTACHMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_ATTACHMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   381     { "DEPTH_STENCIL_ATTACHMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_STENCIL_ATTACHMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   382     { "NONE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNONE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   383     { "FRAMEBUFFER_COMPLETE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_COMPLETE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   384     { "FRAMEBUFFER_INCOMPLETE_ATTACHMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_INCOMPLETE_ATTACHMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   385     { "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   386     { "FRAMEBUFFER_INCOMPLETE_DIMENSIONS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_INCOMPLETE_DIMENSIONS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   387     { "FRAMEBUFFER_UNSUPPORTED", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_UNSUPPORTED), (intptr_t)0 THUNK_GENERATOR(0) },
       
   388     { "FRAMEBUFFER_BINDING", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_BINDING), (intptr_t)0 THUNK_GENERATOR(0) },
       
   389     { "RENDERBUFFER_BINDING", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_BINDING), (intptr_t)0 THUNK_GENERATOR(0) },
       
   390     { "MAX_RENDERBUFFER_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_RENDERBUFFER_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   391     { "INVALID_FRAMEBUFFER_OPERATION", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINVALID_FRAMEBUFFER_OPERATION), (intptr_t)0 THUNK_GENERATOR(0) },
       
   392     { "UNPACK_FLIP_Y_WEBGL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNPACK_FLIP_Y_WEBGL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   393     { "UNPACK_PREMULTIPLY_ALPHA_WEBGL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNPACK_PREMULTIPLY_ALPHA_WEBGL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   394     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   395 };
       
   396 
       
   397 #undef THUNK_GENERATOR
       
   398 static JSC_CONST_HASHTABLE HashTable JSWebGLRenderingContextConstructorTable = { 1064, 1023, JSWebGLRenderingContextConstructorTableValues, 0 };
       
   399 class JSWebGLRenderingContextConstructor : public DOMConstructorObject {
       
   400 public:
       
   401     JSWebGLRenderingContextConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
   402 
       
   403     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
   404     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
   405     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
   406     static const JSC::ClassInfo s_info;
       
   407     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
   408     {
       
   409         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
   410     }
       
   411 protected:
       
   412     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
   413 };
       
   414 
       
   415 const ClassInfo JSWebGLRenderingContextConstructor::s_info = { "WebGLRenderingContextConstructor", 0, &JSWebGLRenderingContextConstructorTable, 0 };
       
   416 
       
   417 JSWebGLRenderingContextConstructor::JSWebGLRenderingContextConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
   418     : DOMConstructorObject(JSWebGLRenderingContextConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
   419 {
       
   420     putDirect(exec->propertyNames().prototype, JSWebGLRenderingContextPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
   421 }
       
   422 
       
   423 bool JSWebGLRenderingContextConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   424 {
       
   425     return getStaticValueSlot<JSWebGLRenderingContextConstructor, DOMObject>(exec, &JSWebGLRenderingContextConstructorTable, this, propertyName, slot);
       
   426 }
       
   427 
       
   428 bool JSWebGLRenderingContextConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   429 {
       
   430     return getStaticValueDescriptor<JSWebGLRenderingContextConstructor, DOMObject>(exec, &JSWebGLRenderingContextConstructorTable, this, propertyName, descriptor);
       
   431 }
       
   432 
       
   433 /* Hash table for prototype */
       
   434 #if ENABLE(JIT)
       
   435 #define THUNK_GENERATOR(generator) , generator
       
   436 #else
       
   437 #define THUNK_GENERATOR(generator)
       
   438 #endif
       
   439 
       
   440 static const HashTableValue JSWebGLRenderingContextPrototypeTableValues[440] =
       
   441 {
       
   442     { "DEPTH_BUFFER_BIT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_BUFFER_BIT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   443     { "STENCIL_BUFFER_BIT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BUFFER_BIT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   444     { "COLOR_BUFFER_BIT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOLOR_BUFFER_BIT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   445     { "FALSE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFALSE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   446     { "TRUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTRUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   447     { "POINTS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextPOINTS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   448     { "LINES", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINES), (intptr_t)0 THUNK_GENERATOR(0) },
       
   449     { "LINE_LOOP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINE_LOOP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   450     { "LINE_STRIP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINE_STRIP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   451     { "TRIANGLES", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTRIANGLES), (intptr_t)0 THUNK_GENERATOR(0) },
       
   452     { "TRIANGLE_STRIP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTRIANGLE_STRIP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   453     { "TRIANGLE_FAN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTRIANGLE_FAN), (intptr_t)0 THUNK_GENERATOR(0) },
       
   454     { "ZERO", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextZERO), (intptr_t)0 THUNK_GENERATOR(0) },
       
   455     { "ONE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   456     { "SRC_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSRC_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   457     { "ONE_MINUS_SRC_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_SRC_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   458     { "SRC_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSRC_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   459     { "ONE_MINUS_SRC_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_SRC_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   460     { "DST_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDST_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   461     { "ONE_MINUS_DST_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_DST_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   462     { "DST_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDST_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   463     { "ONE_MINUS_DST_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_DST_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   464     { "SRC_ALPHA_SATURATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSRC_ALPHA_SATURATE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   465     { "FUNC_ADD", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFUNC_ADD), (intptr_t)0 THUNK_GENERATOR(0) },
       
   466     { "BLEND_EQUATION", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_EQUATION), (intptr_t)0 THUNK_GENERATOR(0) },
       
   467     { "BLEND_EQUATION_RGB", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_EQUATION_RGB), (intptr_t)0 THUNK_GENERATOR(0) },
       
   468     { "BLEND_EQUATION_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_EQUATION_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   469     { "FUNC_SUBTRACT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFUNC_SUBTRACT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   470     { "FUNC_REVERSE_SUBTRACT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFUNC_REVERSE_SUBTRACT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   471     { "BLEND_DST_RGB", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_DST_RGB), (intptr_t)0 THUNK_GENERATOR(0) },
       
   472     { "BLEND_SRC_RGB", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_SRC_RGB), (intptr_t)0 THUNK_GENERATOR(0) },
       
   473     { "BLEND_DST_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_DST_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   474     { "BLEND_SRC_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_SRC_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   475     { "CONSTANT_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCONSTANT_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   476     { "ONE_MINUS_CONSTANT_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_CONSTANT_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   477     { "CONSTANT_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCONSTANT_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   478     { "ONE_MINUS_CONSTANT_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextONE_MINUS_CONSTANT_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   479     { "BLEND_COLOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND_COLOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   480     { "ARRAY_BUFFER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextARRAY_BUFFER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   481     { "ELEMENT_ARRAY_BUFFER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextELEMENT_ARRAY_BUFFER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   482     { "ARRAY_BUFFER_BINDING", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextARRAY_BUFFER_BINDING), (intptr_t)0 THUNK_GENERATOR(0) },
       
   483     { "ELEMENT_ARRAY_BUFFER_BINDING", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextELEMENT_ARRAY_BUFFER_BINDING), (intptr_t)0 THUNK_GENERATOR(0) },
       
   484     { "STREAM_DRAW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTREAM_DRAW), (intptr_t)0 THUNK_GENERATOR(0) },
       
   485     { "STATIC_DRAW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTATIC_DRAW), (intptr_t)0 THUNK_GENERATOR(0) },
       
   486     { "DYNAMIC_DRAW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDYNAMIC_DRAW), (intptr_t)0 THUNK_GENERATOR(0) },
       
   487     { "BUFFER_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBUFFER_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   488     { "BUFFER_USAGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBUFFER_USAGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   489     { "CURRENT_VERTEX_ATTRIB", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCURRENT_VERTEX_ATTRIB), (intptr_t)0 THUNK_GENERATOR(0) },
       
   490     { "FRONT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRONT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   491     { "BACK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBACK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   492     { "FRONT_AND_BACK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRONT_AND_BACK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   493     { "TEXTURE_2D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_2D), (intptr_t)0 THUNK_GENERATOR(0) },
       
   494     { "CULL_FACE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCULL_FACE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   495     { "BLEND", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLEND), (intptr_t)0 THUNK_GENERATOR(0) },
       
   496     { "DITHER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDITHER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   497     { "STENCIL_TEST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_TEST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   498     { "DEPTH_TEST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_TEST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   499     { "SCISSOR_TEST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSCISSOR_TEST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   500     { "POLYGON_OFFSET_FILL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextPOLYGON_OFFSET_FILL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   501     { "SAMPLE_ALPHA_TO_COVERAGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLE_ALPHA_TO_COVERAGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   502     { "SAMPLE_COVERAGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLE_COVERAGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   503     { "NO_ERROR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNO_ERROR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   504     { "INVALID_ENUM", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINVALID_ENUM), (intptr_t)0 THUNK_GENERATOR(0) },
       
   505     { "INVALID_VALUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINVALID_VALUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   506     { "INVALID_OPERATION", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINVALID_OPERATION), (intptr_t)0 THUNK_GENERATOR(0) },
       
   507     { "OUT_OF_MEMORY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextOUT_OF_MEMORY), (intptr_t)0 THUNK_GENERATOR(0) },
       
   508     { "CW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCW), (intptr_t)0 THUNK_GENERATOR(0) },
       
   509     { "CCW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCCW), (intptr_t)0 THUNK_GENERATOR(0) },
       
   510     { "LINE_WIDTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINE_WIDTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   511     { "ALIASED_POINT_SIZE_RANGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextALIASED_POINT_SIZE_RANGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   512     { "ALIASED_LINE_WIDTH_RANGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextALIASED_LINE_WIDTH_RANGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   513     { "CULL_FACE_MODE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCULL_FACE_MODE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   514     { "FRONT_FACE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRONT_FACE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   515     { "DEPTH_RANGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_RANGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   516     { "DEPTH_WRITEMASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_WRITEMASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   517     { "DEPTH_CLEAR_VALUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_CLEAR_VALUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   518     { "DEPTH_FUNC", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_FUNC), (intptr_t)0 THUNK_GENERATOR(0) },
       
   519     { "STENCIL_CLEAR_VALUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_CLEAR_VALUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   520     { "STENCIL_FUNC", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_FUNC), (intptr_t)0 THUNK_GENERATOR(0) },
       
   521     { "STENCIL_FAIL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_FAIL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   522     { "STENCIL_PASS_DEPTH_FAIL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_PASS_DEPTH_FAIL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   523     { "STENCIL_PASS_DEPTH_PASS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_PASS_DEPTH_PASS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   524     { "STENCIL_REF", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_REF), (intptr_t)0 THUNK_GENERATOR(0) },
       
   525     { "STENCIL_VALUE_MASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_VALUE_MASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   526     { "STENCIL_WRITEMASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_WRITEMASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   527     { "STENCIL_BACK_FUNC", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_FUNC), (intptr_t)0 THUNK_GENERATOR(0) },
       
   528     { "STENCIL_BACK_FAIL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_FAIL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   529     { "STENCIL_BACK_PASS_DEPTH_FAIL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_PASS_DEPTH_FAIL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   530     { "STENCIL_BACK_PASS_DEPTH_PASS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_PASS_DEPTH_PASS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   531     { "STENCIL_BACK_REF", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_REF), (intptr_t)0 THUNK_GENERATOR(0) },
       
   532     { "STENCIL_BACK_VALUE_MASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_VALUE_MASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   533     { "STENCIL_BACK_WRITEMASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BACK_WRITEMASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   534     { "VIEWPORT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVIEWPORT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   535     { "SCISSOR_BOX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSCISSOR_BOX), (intptr_t)0 THUNK_GENERATOR(0) },
       
   536     { "COLOR_CLEAR_VALUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOLOR_CLEAR_VALUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   537     { "COLOR_WRITEMASK", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOLOR_WRITEMASK), (intptr_t)0 THUNK_GENERATOR(0) },
       
   538     { "UNPACK_ALIGNMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNPACK_ALIGNMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   539     { "PACK_ALIGNMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextPACK_ALIGNMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   540     { "MAX_TEXTURE_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_TEXTURE_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   541     { "MAX_VIEWPORT_DIMS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_VIEWPORT_DIMS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   542     { "SUBPIXEL_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSUBPIXEL_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   543     { "RED_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRED_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   544     { "GREEN_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextGREEN_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   545     { "BLUE_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBLUE_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   546     { "ALPHA_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextALPHA_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   547     { "DEPTH_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   548     { "STENCIL_BITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_BITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   549     { "POLYGON_OFFSET_UNITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextPOLYGON_OFFSET_UNITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   550     { "POLYGON_OFFSET_FACTOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextPOLYGON_OFFSET_FACTOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   551     { "TEXTURE_BINDING_2D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_BINDING_2D), (intptr_t)0 THUNK_GENERATOR(0) },
       
   552     { "SAMPLE_BUFFERS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLE_BUFFERS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   553     { "SAMPLES", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLES), (intptr_t)0 THUNK_GENERATOR(0) },
       
   554     { "SAMPLE_COVERAGE_VALUE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLE_COVERAGE_VALUE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   555     { "SAMPLE_COVERAGE_INVERT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLE_COVERAGE_INVERT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   556     { "NUM_COMPRESSED_TEXTURE_FORMATS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNUM_COMPRESSED_TEXTURE_FORMATS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   557     { "COMPRESSED_TEXTURE_FORMATS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOMPRESSED_TEXTURE_FORMATS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   558     { "DONT_CARE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDONT_CARE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   559     { "FASTEST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFASTEST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   560     { "NICEST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNICEST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   561     { "GENERATE_MIPMAP_HINT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextGENERATE_MIPMAP_HINT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   562     { "BYTE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBYTE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   563     { "UNSIGNED_BYTE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_BYTE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   564     { "SHORT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHORT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   565     { "UNSIGNED_SHORT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_SHORT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   566     { "INT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   567     { "UNSIGNED_INT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_INT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   568     { "FLOAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   569     { "FIXED", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFIXED), (intptr_t)0 THUNK_GENERATOR(0) },
       
   570     { "DEPTH_COMPONENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_COMPONENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   571     { "ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   572     { "RGB", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRGB), (intptr_t)0 THUNK_GENERATOR(0) },
       
   573     { "RGBA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRGBA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   574     { "LUMINANCE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLUMINANCE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   575     { "LUMINANCE_ALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLUMINANCE_ALPHA), (intptr_t)0 THUNK_GENERATOR(0) },
       
   576     { "UNSIGNED_SHORT_4_4_4_4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_SHORT_4_4_4_4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   577     { "UNSIGNED_SHORT_5_5_5_1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_SHORT_5_5_5_1), (intptr_t)0 THUNK_GENERATOR(0) },
       
   578     { "UNSIGNED_SHORT_5_6_5", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNSIGNED_SHORT_5_6_5), (intptr_t)0 THUNK_GENERATOR(0) },
       
   579     { "FRAGMENT_SHADER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAGMENT_SHADER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   580     { "VERTEX_SHADER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_SHADER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   581     { "MAX_VERTEX_ATTRIBS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_VERTEX_ATTRIBS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   582     { "MAX_VERTEX_UNIFORM_VECTORS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_VERTEX_UNIFORM_VECTORS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   583     { "MAX_VARYING_VECTORS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_VARYING_VECTORS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   584     { "MAX_COMBINED_TEXTURE_IMAGE_UNITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_COMBINED_TEXTURE_IMAGE_UNITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   585     { "MAX_VERTEX_TEXTURE_IMAGE_UNITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_VERTEX_TEXTURE_IMAGE_UNITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   586     { "MAX_TEXTURE_IMAGE_UNITS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_TEXTURE_IMAGE_UNITS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   587     { "MAX_FRAGMENT_UNIFORM_VECTORS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_FRAGMENT_UNIFORM_VECTORS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   588     { "SHADER_TYPE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHADER_TYPE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   589     { "DELETE_STATUS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDELETE_STATUS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   590     { "LINK_STATUS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINK_STATUS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   591     { "VALIDATE_STATUS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVALIDATE_STATUS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   592     { "ATTACHED_SHADERS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextATTACHED_SHADERS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   593     { "ACTIVE_UNIFORMS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextACTIVE_UNIFORMS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   594     { "ACTIVE_UNIFORM_MAX_LENGTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextACTIVE_UNIFORM_MAX_LENGTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   595     { "ACTIVE_ATTRIBUTES", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextACTIVE_ATTRIBUTES), (intptr_t)0 THUNK_GENERATOR(0) },
       
   596     { "ACTIVE_ATTRIBUTE_MAX_LENGTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextACTIVE_ATTRIBUTE_MAX_LENGTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   597     { "SHADING_LANGUAGE_VERSION", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHADING_LANGUAGE_VERSION), (intptr_t)0 THUNK_GENERATOR(0) },
       
   598     { "CURRENT_PROGRAM", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCURRENT_PROGRAM), (intptr_t)0 THUNK_GENERATOR(0) },
       
   599     { "NEVER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNEVER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   600     { "LESS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLESS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   601     { "EQUAL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextEQUAL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   602     { "LEQUAL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLEQUAL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   603     { "GREATER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextGREATER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   604     { "NOTEQUAL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNOTEQUAL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   605     { "GEQUAL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextGEQUAL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   606     { "ALWAYS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextALWAYS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   607     { "KEEP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextKEEP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   608     { "REPLACE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextREPLACE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   609     { "INCR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINCR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   610     { "DECR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDECR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   611     { "INVERT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINVERT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   612     { "INCR_WRAP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINCR_WRAP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   613     { "DECR_WRAP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDECR_WRAP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   614     { "VENDOR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVENDOR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   615     { "RENDERER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   616     { "VERSION", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERSION), (intptr_t)0 THUNK_GENERATOR(0) },
       
   617     { "EXTENSIONS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextEXTENSIONS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   618     { "NEAREST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNEAREST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   619     { "LINEAR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINEAR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   620     { "NEAREST_MIPMAP_NEAREST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNEAREST_MIPMAP_NEAREST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   621     { "LINEAR_MIPMAP_NEAREST", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINEAR_MIPMAP_NEAREST), (intptr_t)0 THUNK_GENERATOR(0) },
       
   622     { "NEAREST_MIPMAP_LINEAR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNEAREST_MIPMAP_LINEAR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   623     { "LINEAR_MIPMAP_LINEAR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLINEAR_MIPMAP_LINEAR), (intptr_t)0 THUNK_GENERATOR(0) },
       
   624     { "TEXTURE_MAG_FILTER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_MAG_FILTER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   625     { "TEXTURE_MIN_FILTER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_MIN_FILTER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   626     { "TEXTURE_WRAP_S", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_WRAP_S), (intptr_t)0 THUNK_GENERATOR(0) },
       
   627     { "TEXTURE_WRAP_T", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_WRAP_T), (intptr_t)0 THUNK_GENERATOR(0) },
       
   628     { "TEXTURE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   629     { "TEXTURE_CUBE_MAP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   630     { "TEXTURE_BINDING_CUBE_MAP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_BINDING_CUBE_MAP), (intptr_t)0 THUNK_GENERATOR(0) },
       
   631     { "TEXTURE_CUBE_MAP_POSITIVE_X", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_POSITIVE_X), (intptr_t)0 THUNK_GENERATOR(0) },
       
   632     { "TEXTURE_CUBE_MAP_NEGATIVE_X", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_NEGATIVE_X), (intptr_t)0 THUNK_GENERATOR(0) },
       
   633     { "TEXTURE_CUBE_MAP_POSITIVE_Y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_POSITIVE_Y), (intptr_t)0 THUNK_GENERATOR(0) },
       
   634     { "TEXTURE_CUBE_MAP_NEGATIVE_Y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_NEGATIVE_Y), (intptr_t)0 THUNK_GENERATOR(0) },
       
   635     { "TEXTURE_CUBE_MAP_POSITIVE_Z", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_POSITIVE_Z), (intptr_t)0 THUNK_GENERATOR(0) },
       
   636     { "TEXTURE_CUBE_MAP_NEGATIVE_Z", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE_CUBE_MAP_NEGATIVE_Z), (intptr_t)0 THUNK_GENERATOR(0) },
       
   637     { "MAX_CUBE_MAP_TEXTURE_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_CUBE_MAP_TEXTURE_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   638     { "TEXTURE0", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE0), (intptr_t)0 THUNK_GENERATOR(0) },
       
   639     { "TEXTURE1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE1), (intptr_t)0 THUNK_GENERATOR(0) },
       
   640     { "TEXTURE2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE2), (intptr_t)0 THUNK_GENERATOR(0) },
       
   641     { "TEXTURE3", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE3), (intptr_t)0 THUNK_GENERATOR(0) },
       
   642     { "TEXTURE4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   643     { "TEXTURE5", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE5), (intptr_t)0 THUNK_GENERATOR(0) },
       
   644     { "TEXTURE6", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE6), (intptr_t)0 THUNK_GENERATOR(0) },
       
   645     { "TEXTURE7", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE7), (intptr_t)0 THUNK_GENERATOR(0) },
       
   646     { "TEXTURE8", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE8), (intptr_t)0 THUNK_GENERATOR(0) },
       
   647     { "TEXTURE9", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE9), (intptr_t)0 THUNK_GENERATOR(0) },
       
   648     { "TEXTURE10", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE10), (intptr_t)0 THUNK_GENERATOR(0) },
       
   649     { "TEXTURE11", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE11), (intptr_t)0 THUNK_GENERATOR(0) },
       
   650     { "TEXTURE12", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE12), (intptr_t)0 THUNK_GENERATOR(0) },
       
   651     { "TEXTURE13", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE13), (intptr_t)0 THUNK_GENERATOR(0) },
       
   652     { "TEXTURE14", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE14), (intptr_t)0 THUNK_GENERATOR(0) },
       
   653     { "TEXTURE15", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE15), (intptr_t)0 THUNK_GENERATOR(0) },
       
   654     { "TEXTURE16", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE16), (intptr_t)0 THUNK_GENERATOR(0) },
       
   655     { "TEXTURE17", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE17), (intptr_t)0 THUNK_GENERATOR(0) },
       
   656     { "TEXTURE18", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE18), (intptr_t)0 THUNK_GENERATOR(0) },
       
   657     { "TEXTURE19", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE19), (intptr_t)0 THUNK_GENERATOR(0) },
       
   658     { "TEXTURE20", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE20), (intptr_t)0 THUNK_GENERATOR(0) },
       
   659     { "TEXTURE21", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE21), (intptr_t)0 THUNK_GENERATOR(0) },
       
   660     { "TEXTURE22", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE22), (intptr_t)0 THUNK_GENERATOR(0) },
       
   661     { "TEXTURE23", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE23), (intptr_t)0 THUNK_GENERATOR(0) },
       
   662     { "TEXTURE24", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE24), (intptr_t)0 THUNK_GENERATOR(0) },
       
   663     { "TEXTURE25", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE25), (intptr_t)0 THUNK_GENERATOR(0) },
       
   664     { "TEXTURE26", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE26), (intptr_t)0 THUNK_GENERATOR(0) },
       
   665     { "TEXTURE27", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE27), (intptr_t)0 THUNK_GENERATOR(0) },
       
   666     { "TEXTURE28", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE28), (intptr_t)0 THUNK_GENERATOR(0) },
       
   667     { "TEXTURE29", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE29), (intptr_t)0 THUNK_GENERATOR(0) },
       
   668     { "TEXTURE30", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE30), (intptr_t)0 THUNK_GENERATOR(0) },
       
   669     { "TEXTURE31", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextTEXTURE31), (intptr_t)0 THUNK_GENERATOR(0) },
       
   670     { "ACTIVE_TEXTURE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextACTIVE_TEXTURE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   671     { "REPEAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextREPEAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   672     { "CLAMP_TO_EDGE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCLAMP_TO_EDGE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   673     { "MIRRORED_REPEAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMIRRORED_REPEAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   674     { "FLOAT_VEC2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_VEC2), (intptr_t)0 THUNK_GENERATOR(0) },
       
   675     { "FLOAT_VEC3", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_VEC3), (intptr_t)0 THUNK_GENERATOR(0) },
       
   676     { "FLOAT_VEC4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_VEC4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   677     { "INT_VEC2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINT_VEC2), (intptr_t)0 THUNK_GENERATOR(0) },
       
   678     { "INT_VEC3", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINT_VEC3), (intptr_t)0 THUNK_GENERATOR(0) },
       
   679     { "INT_VEC4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINT_VEC4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   680     { "BOOL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBOOL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   681     { "BOOL_VEC2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBOOL_VEC2), (intptr_t)0 THUNK_GENERATOR(0) },
       
   682     { "BOOL_VEC3", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBOOL_VEC3), (intptr_t)0 THUNK_GENERATOR(0) },
       
   683     { "BOOL_VEC4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextBOOL_VEC4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   684     { "FLOAT_MAT2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_MAT2), (intptr_t)0 THUNK_GENERATOR(0) },
       
   685     { "FLOAT_MAT3", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_MAT3), (intptr_t)0 THUNK_GENERATOR(0) },
       
   686     { "FLOAT_MAT4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFLOAT_MAT4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   687     { "SAMPLER_2D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLER_2D), (intptr_t)0 THUNK_GENERATOR(0) },
       
   688     { "SAMPLER_CUBE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSAMPLER_CUBE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   689     { "VERTEX_ATTRIB_ARRAY_ENABLED", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_ENABLED), (intptr_t)0 THUNK_GENERATOR(0) },
       
   690     { "VERTEX_ATTRIB_ARRAY_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   691     { "VERTEX_ATTRIB_ARRAY_STRIDE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_STRIDE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   692     { "VERTEX_ATTRIB_ARRAY_TYPE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_TYPE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   693     { "VERTEX_ATTRIB_ARRAY_NORMALIZED", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_NORMALIZED), (intptr_t)0 THUNK_GENERATOR(0) },
       
   694     { "VERTEX_ATTRIB_ARRAY_POINTER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_POINTER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   695     { "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_BUFFER_BINDING), (intptr_t)0 THUNK_GENERATOR(0) },
       
   696     { "IMPLEMENTATION_COLOR_READ_TYPE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextIMPLEMENTATION_COLOR_READ_TYPE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   697     { "IMPLEMENTATION_COLOR_READ_FORMAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextIMPLEMENTATION_COLOR_READ_FORMAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   698     { "COMPILE_STATUS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOMPILE_STATUS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   699     { "INFO_LOG_LENGTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINFO_LOG_LENGTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   700     { "SHADER_SOURCE_LENGTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHADER_SOURCE_LENGTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   701     { "SHADER_COMPILER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHADER_COMPILER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   702     { "SHADER_BINARY_FORMATS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSHADER_BINARY_FORMATS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   703     { "NUM_SHADER_BINARY_FORMATS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNUM_SHADER_BINARY_FORMATS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   704     { "LOW_FLOAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLOW_FLOAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   705     { "MEDIUM_FLOAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMEDIUM_FLOAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   706     { "HIGH_FLOAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextHIGH_FLOAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   707     { "LOW_INT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextLOW_INT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   708     { "MEDIUM_INT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMEDIUM_INT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   709     { "HIGH_INT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextHIGH_INT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   710     { "FRAMEBUFFER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   711     { "RENDERBUFFER", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER), (intptr_t)0 THUNK_GENERATOR(0) },
       
   712     { "RGBA4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRGBA4), (intptr_t)0 THUNK_GENERATOR(0) },
       
   713     { "RGB5_A1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRGB5_A1), (intptr_t)0 THUNK_GENERATOR(0) },
       
   714     { "RGB565", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRGB565), (intptr_t)0 THUNK_GENERATOR(0) },
       
   715     { "DEPTH_COMPONENT16", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_COMPONENT16), (intptr_t)0 THUNK_GENERATOR(0) },
       
   716     { "STENCIL_INDEX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_INDEX), (intptr_t)0 THUNK_GENERATOR(0) },
       
   717     { "STENCIL_INDEX8", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_INDEX8), (intptr_t)0 THUNK_GENERATOR(0) },
       
   718     { "DEPTH_STENCIL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_STENCIL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   719     { "RENDERBUFFER_WIDTH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_WIDTH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   720     { "RENDERBUFFER_HEIGHT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_HEIGHT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   721     { "RENDERBUFFER_INTERNAL_FORMAT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_INTERNAL_FORMAT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   722     { "RENDERBUFFER_RED_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_RED_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   723     { "RENDERBUFFER_GREEN_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_GREEN_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   724     { "RENDERBUFFER_BLUE_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_BLUE_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   725     { "RENDERBUFFER_ALPHA_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_ALPHA_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   726     { "RENDERBUFFER_DEPTH_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_DEPTH_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   727     { "RENDERBUFFER_STENCIL_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_STENCIL_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   728     { "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_OBJECT_TYPE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   729     { "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_OBJECT_NAME), (intptr_t)0 THUNK_GENERATOR(0) },
       
   730     { "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   731     { "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   732     { "COLOR_ATTACHMENT0", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextCOLOR_ATTACHMENT0), (intptr_t)0 THUNK_GENERATOR(0) },
       
   733     { "DEPTH_ATTACHMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_ATTACHMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   734     { "STENCIL_ATTACHMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextSTENCIL_ATTACHMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   735     { "DEPTH_STENCIL_ATTACHMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextDEPTH_STENCIL_ATTACHMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   736     { "NONE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextNONE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   737     { "FRAMEBUFFER_COMPLETE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_COMPLETE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   738     { "FRAMEBUFFER_INCOMPLETE_ATTACHMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_INCOMPLETE_ATTACHMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   739     { "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT), (intptr_t)0 THUNK_GENERATOR(0) },
       
   740     { "FRAMEBUFFER_INCOMPLETE_DIMENSIONS", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_INCOMPLETE_DIMENSIONS), (intptr_t)0 THUNK_GENERATOR(0) },
       
   741     { "FRAMEBUFFER_UNSUPPORTED", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_UNSUPPORTED), (intptr_t)0 THUNK_GENERATOR(0) },
       
   742     { "FRAMEBUFFER_BINDING", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextFRAMEBUFFER_BINDING), (intptr_t)0 THUNK_GENERATOR(0) },
       
   743     { "RENDERBUFFER_BINDING", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextRENDERBUFFER_BINDING), (intptr_t)0 THUNK_GENERATOR(0) },
       
   744     { "MAX_RENDERBUFFER_SIZE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextMAX_RENDERBUFFER_SIZE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   745     { "INVALID_FRAMEBUFFER_OPERATION", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextINVALID_FRAMEBUFFER_OPERATION), (intptr_t)0 THUNK_GENERATOR(0) },
       
   746     { "UNPACK_FLIP_Y_WEBGL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNPACK_FLIP_Y_WEBGL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   747     { "UNPACK_PREMULTIPLY_ALPHA_WEBGL", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGLRenderingContextUNPACK_PREMULTIPLY_ALPHA_WEBGL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   748     { "sizeInBytes", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionSizeInBytes), (intptr_t)1 THUNK_GENERATOR(0) },
       
   749     { "activeTexture", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionActiveTexture), (intptr_t)1 THUNK_GENERATOR(0) },
       
   750     { "attachShader", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionAttachShader), (intptr_t)2 THUNK_GENERATOR(0) },
       
   751     { "bindAttribLocation", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBindAttribLocation), (intptr_t)3 THUNK_GENERATOR(0) },
       
   752     { "bindBuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBindBuffer), (intptr_t)2 THUNK_GENERATOR(0) },
       
   753     { "bindFramebuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBindFramebuffer), (intptr_t)2 THUNK_GENERATOR(0) },
       
   754     { "bindRenderbuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBindRenderbuffer), (intptr_t)2 THUNK_GENERATOR(0) },
       
   755     { "bindTexture", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBindTexture), (intptr_t)2 THUNK_GENERATOR(0) },
       
   756     { "blendColor", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBlendColor), (intptr_t)4 THUNK_GENERATOR(0) },
       
   757     { "blendEquation", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBlendEquation), (intptr_t)1 THUNK_GENERATOR(0) },
       
   758     { "blendEquationSeparate", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBlendEquationSeparate), (intptr_t)2 THUNK_GENERATOR(0) },
       
   759     { "blendFunc", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBlendFunc), (intptr_t)2 THUNK_GENERATOR(0) },
       
   760     { "blendFuncSeparate", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBlendFuncSeparate), (intptr_t)4 THUNK_GENERATOR(0) },
       
   761     { "bufferData", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBufferData), (intptr_t)3 THUNK_GENERATOR(0) },
       
   762     { "bufferSubData", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionBufferSubData), (intptr_t)3 THUNK_GENERATOR(0) },
       
   763     { "checkFramebufferStatus", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCheckFramebufferStatus), (intptr_t)1 THUNK_GENERATOR(0) },
       
   764     { "clear", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionClear), (intptr_t)1 THUNK_GENERATOR(0) },
       
   765     { "clearColor", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionClearColor), (intptr_t)4 THUNK_GENERATOR(0) },
       
   766     { "clearDepth", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionClearDepth), (intptr_t)1 THUNK_GENERATOR(0) },
       
   767     { "clearStencil", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionClearStencil), (intptr_t)1 THUNK_GENERATOR(0) },
       
   768     { "colorMask", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionColorMask), (intptr_t)4 THUNK_GENERATOR(0) },
       
   769     { "compileShader", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCompileShader), (intptr_t)1 THUNK_GENERATOR(0) },
       
   770     { "copyTexImage2D", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCopyTexImage2D), (intptr_t)8 THUNK_GENERATOR(0) },
       
   771     { "copyTexSubImage2D", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCopyTexSubImage2D), (intptr_t)8 THUNK_GENERATOR(0) },
       
   772     { "createBuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCreateBuffer), (intptr_t)0 THUNK_GENERATOR(0) },
       
   773     { "createFramebuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCreateFramebuffer), (intptr_t)0 THUNK_GENERATOR(0) },
       
   774     { "createProgram", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCreateProgram), (intptr_t)0 THUNK_GENERATOR(0) },
       
   775     { "createRenderbuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCreateRenderbuffer), (intptr_t)0 THUNK_GENERATOR(0) },
       
   776     { "createShader", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCreateShader), (intptr_t)1 THUNK_GENERATOR(0) },
       
   777     { "createTexture", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCreateTexture), (intptr_t)0 THUNK_GENERATOR(0) },
       
   778     { "cullFace", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionCullFace), (intptr_t)1 THUNK_GENERATOR(0) },
       
   779     { "deleteBuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDeleteBuffer), (intptr_t)1 THUNK_GENERATOR(0) },
       
   780     { "deleteFramebuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDeleteFramebuffer), (intptr_t)1 THUNK_GENERATOR(0) },
       
   781     { "deleteProgram", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDeleteProgram), (intptr_t)1 THUNK_GENERATOR(0) },
       
   782     { "deleteRenderbuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDeleteRenderbuffer), (intptr_t)1 THUNK_GENERATOR(0) },
       
   783     { "deleteShader", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDeleteShader), (intptr_t)1 THUNK_GENERATOR(0) },
       
   784     { "deleteTexture", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDeleteTexture), (intptr_t)1 THUNK_GENERATOR(0) },
       
   785     { "depthFunc", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDepthFunc), (intptr_t)1 THUNK_GENERATOR(0) },
       
   786     { "depthMask", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDepthMask), (intptr_t)1 THUNK_GENERATOR(0) },
       
   787     { "depthRange", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDepthRange), (intptr_t)2 THUNK_GENERATOR(0) },
       
   788     { "detachShader", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDetachShader), (intptr_t)2 THUNK_GENERATOR(0) },
       
   789     { "disable", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDisable), (intptr_t)1 THUNK_GENERATOR(0) },
       
   790     { "disableVertexAttribArray", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDisableVertexAttribArray), (intptr_t)1 THUNK_GENERATOR(0) },
       
   791     { "drawArrays", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDrawArrays), (intptr_t)3 THUNK_GENERATOR(0) },
       
   792     { "drawElements", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionDrawElements), (intptr_t)4 THUNK_GENERATOR(0) },
       
   793     { "enable", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionEnable), (intptr_t)1 THUNK_GENERATOR(0) },
       
   794     { "enableVertexAttribArray", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionEnableVertexAttribArray), (intptr_t)1 THUNK_GENERATOR(0) },
       
   795     { "finish", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionFinish), (intptr_t)0 THUNK_GENERATOR(0) },
       
   796     { "flush", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionFlush), (intptr_t)0 THUNK_GENERATOR(0) },
       
   797     { "framebufferRenderbuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionFramebufferRenderbuffer), (intptr_t)4 THUNK_GENERATOR(0) },
       
   798     { "framebufferTexture2D", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionFramebufferTexture2D), (intptr_t)5 THUNK_GENERATOR(0) },
       
   799     { "frontFace", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionFrontFace), (intptr_t)1 THUNK_GENERATOR(0) },
       
   800     { "generateMipmap", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGenerateMipmap), (intptr_t)1 THUNK_GENERATOR(0) },
       
   801     { "getActiveAttrib", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetActiveAttrib), (intptr_t)2 THUNK_GENERATOR(0) },
       
   802     { "getActiveUniform", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetActiveUniform), (intptr_t)2 THUNK_GENERATOR(0) },
       
   803     { "getAttachedShaders", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetAttachedShaders), (intptr_t)1 THUNK_GENERATOR(0) },
       
   804     { "getAttribLocation", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetAttribLocation), (intptr_t)2 THUNK_GENERATOR(0) },
       
   805     { "getBufferParameter", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetBufferParameter), (intptr_t)0 THUNK_GENERATOR(0) },
       
   806     { "getContextAttributes", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetContextAttributes), (intptr_t)0 THUNK_GENERATOR(0) },
       
   807     { "getError", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetError), (intptr_t)0 THUNK_GENERATOR(0) },
       
   808     { "getFramebufferAttachmentParameter", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetFramebufferAttachmentParameter), (intptr_t)0 THUNK_GENERATOR(0) },
       
   809     { "getParameter", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetParameter), (intptr_t)0 THUNK_GENERATOR(0) },
       
   810     { "getProgramParameter", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetProgramParameter), (intptr_t)0 THUNK_GENERATOR(0) },
       
   811     { "getProgramInfoLog", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetProgramInfoLog), (intptr_t)1 THUNK_GENERATOR(0) },
       
   812     { "getRenderbufferParameter", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetRenderbufferParameter), (intptr_t)0 THUNK_GENERATOR(0) },
       
   813     { "getShaderParameter", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetShaderParameter), (intptr_t)0 THUNK_GENERATOR(0) },
       
   814     { "getShaderInfoLog", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetShaderInfoLog), (intptr_t)1 THUNK_GENERATOR(0) },
       
   815     { "getShaderSource", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetShaderSource), (intptr_t)1 THUNK_GENERATOR(0) },
       
   816     { "getString", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetString), (intptr_t)1 THUNK_GENERATOR(0) },
       
   817     { "getTexParameter", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetTexParameter), (intptr_t)0 THUNK_GENERATOR(0) },
       
   818     { "getUniform", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetUniform), (intptr_t)0 THUNK_GENERATOR(0) },
       
   819     { "getUniformLocation", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetUniformLocation), (intptr_t)2 THUNK_GENERATOR(0) },
       
   820     { "getVertexAttrib", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetVertexAttrib), (intptr_t)0 THUNK_GENERATOR(0) },
       
   821     { "getVertexAttribOffset", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionGetVertexAttribOffset), (intptr_t)2 THUNK_GENERATOR(0) },
       
   822     { "hint", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionHint), (intptr_t)2 THUNK_GENERATOR(0) },
       
   823     { "isBuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionIsBuffer), (intptr_t)1 THUNK_GENERATOR(0) },
       
   824     { "isEnabled", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionIsEnabled), (intptr_t)1 THUNK_GENERATOR(0) },
       
   825     { "isFramebuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionIsFramebuffer), (intptr_t)1 THUNK_GENERATOR(0) },
       
   826     { "isProgram", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionIsProgram), (intptr_t)1 THUNK_GENERATOR(0) },
       
   827     { "isRenderbuffer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionIsRenderbuffer), (intptr_t)1 THUNK_GENERATOR(0) },
       
   828     { "isShader", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionIsShader), (intptr_t)1 THUNK_GENERATOR(0) },
       
   829     { "isTexture", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionIsTexture), (intptr_t)1 THUNK_GENERATOR(0) },
       
   830     { "lineWidth", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionLineWidth), (intptr_t)1 THUNK_GENERATOR(0) },
       
   831     { "linkProgram", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionLinkProgram), (intptr_t)1 THUNK_GENERATOR(0) },
       
   832     { "pixelStorei", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionPixelStorei), (intptr_t)2 THUNK_GENERATOR(0) },
       
   833     { "polygonOffset", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionPolygonOffset), (intptr_t)2 THUNK_GENERATOR(0) },
       
   834     { "readPixels", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionReadPixels), (intptr_t)7 THUNK_GENERATOR(0) },
       
   835     { "releaseShaderCompiler", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionReleaseShaderCompiler), (intptr_t)0 THUNK_GENERATOR(0) },
       
   836     { "renderbufferStorage", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionRenderbufferStorage), (intptr_t)4 THUNK_GENERATOR(0) },
       
   837     { "sampleCoverage", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionSampleCoverage), (intptr_t)2 THUNK_GENERATOR(0) },
       
   838     { "scissor", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionScissor), (intptr_t)4 THUNK_GENERATOR(0) },
       
   839     { "shaderSource", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionShaderSource), (intptr_t)2 THUNK_GENERATOR(0) },
       
   840     { "stencilFunc", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionStencilFunc), (intptr_t)3 THUNK_GENERATOR(0) },
       
   841     { "stencilFuncSeparate", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionStencilFuncSeparate), (intptr_t)4 THUNK_GENERATOR(0) },
       
   842     { "stencilMask", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionStencilMask), (intptr_t)1 THUNK_GENERATOR(0) },
       
   843     { "stencilMaskSeparate", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionStencilMaskSeparate), (intptr_t)2 THUNK_GENERATOR(0) },
       
   844     { "stencilOp", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionStencilOp), (intptr_t)3 THUNK_GENERATOR(0) },
       
   845     { "stencilOpSeparate", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionStencilOpSeparate), (intptr_t)4 THUNK_GENERATOR(0) },
       
   846     { "texParameterf", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionTexParameterf), (intptr_t)3 THUNK_GENERATOR(0) },
       
   847     { "texParameteri", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionTexParameteri), (intptr_t)3 THUNK_GENERATOR(0) },
       
   848     { "texImage2D", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionTexImage2D), (intptr_t)9 THUNK_GENERATOR(0) },
       
   849     { "texSubImage2D", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionTexSubImage2D), (intptr_t)9 THUNK_GENERATOR(0) },
       
   850     { "uniform1f", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform1f), (intptr_t)2 THUNK_GENERATOR(0) },
       
   851     { "uniform1fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform1fv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   852     { "uniform1i", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform1i), (intptr_t)2 THUNK_GENERATOR(0) },
       
   853     { "uniform1iv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform1iv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   854     { "uniform2f", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform2f), (intptr_t)3 THUNK_GENERATOR(0) },
       
   855     { "uniform2fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform2fv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   856     { "uniform2i", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform2i), (intptr_t)3 THUNK_GENERATOR(0) },
       
   857     { "uniform2iv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform2iv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   858     { "uniform3f", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform3f), (intptr_t)4 THUNK_GENERATOR(0) },
       
   859     { "uniform3fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform3fv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   860     { "uniform3i", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform3i), (intptr_t)4 THUNK_GENERATOR(0) },
       
   861     { "uniform3iv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform3iv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   862     { "uniform4f", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform4f), (intptr_t)5 THUNK_GENERATOR(0) },
       
   863     { "uniform4fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform4fv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   864     { "uniform4i", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform4i), (intptr_t)5 THUNK_GENERATOR(0) },
       
   865     { "uniform4iv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniform4iv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   866     { "uniformMatrix2fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniformMatrix2fv), (intptr_t)3 THUNK_GENERATOR(0) },
       
   867     { "uniformMatrix3fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniformMatrix3fv), (intptr_t)3 THUNK_GENERATOR(0) },
       
   868     { "uniformMatrix4fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUniformMatrix4fv), (intptr_t)3 THUNK_GENERATOR(0) },
       
   869     { "useProgram", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionUseProgram), (intptr_t)1 THUNK_GENERATOR(0) },
       
   870     { "validateProgram", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionValidateProgram), (intptr_t)1 THUNK_GENERATOR(0) },
       
   871     { "vertexAttrib1f", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionVertexAttrib1f), (intptr_t)2 THUNK_GENERATOR(0) },
       
   872     { "vertexAttrib1fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionVertexAttrib1fv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   873     { "vertexAttrib2f", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionVertexAttrib2f), (intptr_t)3 THUNK_GENERATOR(0) },
       
   874     { "vertexAttrib2fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionVertexAttrib2fv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   875     { "vertexAttrib3f", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionVertexAttrib3f), (intptr_t)4 THUNK_GENERATOR(0) },
       
   876     { "vertexAttrib3fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionVertexAttrib3fv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   877     { "vertexAttrib4f", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionVertexAttrib4f), (intptr_t)5 THUNK_GENERATOR(0) },
       
   878     { "vertexAttrib4fv", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionVertexAttrib4fv), (intptr_t)2 THUNK_GENERATOR(0) },
       
   879     { "vertexAttribPointer", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionVertexAttribPointer), (intptr_t)6 THUNK_GENERATOR(0) },
       
   880     { "viewport", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebGLRenderingContextPrototypeFunctionViewport), (intptr_t)4 THUNK_GENERATOR(0) },
       
   881     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   882 };
       
   883 
       
   884 #undef THUNK_GENERATOR
       
   885 static JSC_CONST_HASHTABLE HashTable JSWebGLRenderingContextPrototypeTable = { 1103, 1023, JSWebGLRenderingContextPrototypeTableValues, 0 };
       
   886 const ClassInfo JSWebGLRenderingContextPrototype::s_info = { "WebGLRenderingContextPrototype", 0, &JSWebGLRenderingContextPrototypeTable, 0 };
       
   887 
       
   888 JSObject* JSWebGLRenderingContextPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   889 {
       
   890     return getDOMPrototype<JSWebGLRenderingContext>(exec, globalObject);
       
   891 }
       
   892 
       
   893 bool JSWebGLRenderingContextPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   894 {
       
   895     return getStaticPropertySlot<JSWebGLRenderingContextPrototype, JSObject>(exec, &JSWebGLRenderingContextPrototypeTable, this, propertyName, slot);
       
   896 }
       
   897 
       
   898 bool JSWebGLRenderingContextPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   899 {
       
   900     return getStaticPropertyDescriptor<JSWebGLRenderingContextPrototype, JSObject>(exec, &JSWebGLRenderingContextPrototypeTable, this, propertyName, descriptor);
       
   901 }
       
   902 
       
   903 const ClassInfo JSWebGLRenderingContext::s_info = { "WebGLRenderingContext", &JSCanvasRenderingContext::s_info, &JSWebGLRenderingContextTable, 0 };
       
   904 
       
   905 JSWebGLRenderingContext::JSWebGLRenderingContext(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<WebGLRenderingContext> impl)
       
   906     : JSCanvasRenderingContext(structure, globalObject, impl)
       
   907 {
       
   908 }
       
   909 
       
   910 JSObject* JSWebGLRenderingContext::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   911 {
       
   912     return new (exec) JSWebGLRenderingContextPrototype(globalObject, JSWebGLRenderingContextPrototype::createStructure(JSCanvasRenderingContextPrototype::self(exec, globalObject)));
       
   913 }
       
   914 
       
   915 bool JSWebGLRenderingContext::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   916 {
       
   917     return getStaticValueSlot<JSWebGLRenderingContext, Base>(exec, &JSWebGLRenderingContextTable, this, propertyName, slot);
       
   918 }
       
   919 
       
   920 bool JSWebGLRenderingContext::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   921 {
       
   922     return getStaticValueDescriptor<JSWebGLRenderingContext, Base>(exec, &JSWebGLRenderingContextTable, this, propertyName, descriptor);
       
   923 }
       
   924 
       
   925 JSValue jsWebGLRenderingContextConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   926 {
       
   927     JSWebGLRenderingContext* domObject = static_cast<JSWebGLRenderingContext*>(asObject(slotBase));
       
   928     return JSWebGLRenderingContext::getConstructor(exec, domObject->globalObject());
       
   929 }
       
   930 JSValue JSWebGLRenderingContext::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   931 {
       
   932     return getDOMConstructor<JSWebGLRenderingContextConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   933 }
       
   934 
       
   935 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionSizeInBytes(ExecState* exec)
       
   936 {
       
   937     JSValue thisValue = exec->hostThisValue();
       
   938     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
   939         return throwVMTypeError(exec);
       
   940     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
   941     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
   942     ExceptionCode ec = 0;
       
   943     unsigned type = exec->argument(0).toInt32(exec);
       
   944 
       
   945 
       
   946     JSC::JSValue result = jsNumber(exec, imp->sizeInBytes(type, ec));
       
   947     setDOMException(exec, ec);
       
   948     return JSValue::encode(result);
       
   949 }
       
   950 
       
   951 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionActiveTexture(ExecState* exec)
       
   952 {
       
   953     JSValue thisValue = exec->hostThisValue();
       
   954     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
   955         return throwVMTypeError(exec);
       
   956     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
   957     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
   958     ExceptionCode ec = 0;
       
   959     unsigned texture = exec->argument(0).toInt32(exec);
       
   960 
       
   961     imp->activeTexture(texture, ec);
       
   962     setDOMException(exec, ec);
       
   963     return JSValue::encode(jsUndefined());
       
   964 }
       
   965 
       
   966 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionAttachShader(ExecState* exec)
       
   967 {
       
   968     JSValue thisValue = exec->hostThisValue();
       
   969     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
   970         return throwVMTypeError(exec);
       
   971     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
   972     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
   973     ExceptionCode ec = 0;
       
   974     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
   975     WebGLShader* shader = toWebGLShader(exec->argument(1));
       
   976 
       
   977     imp->attachShader(program, shader, ec);
       
   978     setDOMException(exec, ec);
       
   979     return JSValue::encode(jsUndefined());
       
   980 }
       
   981 
       
   982 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBindAttribLocation(ExecState* exec)
       
   983 {
       
   984     JSValue thisValue = exec->hostThisValue();
       
   985     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
   986         return throwVMTypeError(exec);
       
   987     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
   988     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
   989     ExceptionCode ec = 0;
       
   990     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
   991     unsigned index = exec->argument(1).toInt32(exec);
       
   992     const String& name = ustringToString(exec->argument(2).toString(exec));
       
   993 
       
   994     imp->bindAttribLocation(program, index, name, ec);
       
   995     setDOMException(exec, ec);
       
   996     return JSValue::encode(jsUndefined());
       
   997 }
       
   998 
       
   999 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBindBuffer(ExecState* exec)
       
  1000 {
       
  1001     JSValue thisValue = exec->hostThisValue();
       
  1002     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1003         return throwVMTypeError(exec);
       
  1004     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1005     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1006     ExceptionCode ec = 0;
       
  1007     unsigned target = exec->argument(0).toInt32(exec);
       
  1008     WebGLBuffer* buffer = toWebGLBuffer(exec->argument(1));
       
  1009 
       
  1010     imp->bindBuffer(target, buffer, ec);
       
  1011     setDOMException(exec, ec);
       
  1012     return JSValue::encode(jsUndefined());
       
  1013 }
       
  1014 
       
  1015 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBindFramebuffer(ExecState* exec)
       
  1016 {
       
  1017     JSValue thisValue = exec->hostThisValue();
       
  1018     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1019         return throwVMTypeError(exec);
       
  1020     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1021     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1022     ExceptionCode ec = 0;
       
  1023     unsigned target = exec->argument(0).toInt32(exec);
       
  1024     WebGLFramebuffer* framebuffer = toWebGLFramebuffer(exec->argument(1));
       
  1025 
       
  1026     imp->bindFramebuffer(target, framebuffer, ec);
       
  1027     setDOMException(exec, ec);
       
  1028     return JSValue::encode(jsUndefined());
       
  1029 }
       
  1030 
       
  1031 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBindRenderbuffer(ExecState* exec)
       
  1032 {
       
  1033     JSValue thisValue = exec->hostThisValue();
       
  1034     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1035         return throwVMTypeError(exec);
       
  1036     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1037     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1038     ExceptionCode ec = 0;
       
  1039     unsigned target = exec->argument(0).toInt32(exec);
       
  1040     WebGLRenderbuffer* renderbuffer = toWebGLRenderbuffer(exec->argument(1));
       
  1041 
       
  1042     imp->bindRenderbuffer(target, renderbuffer, ec);
       
  1043     setDOMException(exec, ec);
       
  1044     return JSValue::encode(jsUndefined());
       
  1045 }
       
  1046 
       
  1047 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBindTexture(ExecState* exec)
       
  1048 {
       
  1049     JSValue thisValue = exec->hostThisValue();
       
  1050     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1051         return throwVMTypeError(exec);
       
  1052     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1053     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1054     ExceptionCode ec = 0;
       
  1055     unsigned target = exec->argument(0).toInt32(exec);
       
  1056     WebGLTexture* texture = toWebGLTexture(exec->argument(1));
       
  1057 
       
  1058     imp->bindTexture(target, texture, ec);
       
  1059     setDOMException(exec, ec);
       
  1060     return JSValue::encode(jsUndefined());
       
  1061 }
       
  1062 
       
  1063 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBlendColor(ExecState* exec)
       
  1064 {
       
  1065     JSValue thisValue = exec->hostThisValue();
       
  1066     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1067         return throwVMTypeError(exec);
       
  1068     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1069     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1070     double red = exec->argument(0).toNumber(exec);
       
  1071     double green = exec->argument(1).toNumber(exec);
       
  1072     double blue = exec->argument(2).toNumber(exec);
       
  1073     double alpha = exec->argument(3).toNumber(exec);
       
  1074 
       
  1075     imp->blendColor(red, green, blue, alpha);
       
  1076     return JSValue::encode(jsUndefined());
       
  1077 }
       
  1078 
       
  1079 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBlendEquation(ExecState* exec)
       
  1080 {
       
  1081     JSValue thisValue = exec->hostThisValue();
       
  1082     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1083         return throwVMTypeError(exec);
       
  1084     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1085     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1086     unsigned mode = exec->argument(0).toInt32(exec);
       
  1087 
       
  1088     imp->blendEquation(mode);
       
  1089     return JSValue::encode(jsUndefined());
       
  1090 }
       
  1091 
       
  1092 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBlendEquationSeparate(ExecState* exec)
       
  1093 {
       
  1094     JSValue thisValue = exec->hostThisValue();
       
  1095     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1096         return throwVMTypeError(exec);
       
  1097     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1098     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1099     unsigned modeRGB = exec->argument(0).toInt32(exec);
       
  1100     unsigned modeAlpha = exec->argument(1).toInt32(exec);
       
  1101 
       
  1102     imp->blendEquationSeparate(modeRGB, modeAlpha);
       
  1103     return JSValue::encode(jsUndefined());
       
  1104 }
       
  1105 
       
  1106 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBlendFunc(ExecState* exec)
       
  1107 {
       
  1108     JSValue thisValue = exec->hostThisValue();
       
  1109     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1110         return throwVMTypeError(exec);
       
  1111     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1112     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1113     unsigned sfactor = exec->argument(0).toInt32(exec);
       
  1114     unsigned dfactor = exec->argument(1).toInt32(exec);
       
  1115 
       
  1116     imp->blendFunc(sfactor, dfactor);
       
  1117     return JSValue::encode(jsUndefined());
       
  1118 }
       
  1119 
       
  1120 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBlendFuncSeparate(ExecState* exec)
       
  1121 {
       
  1122     JSValue thisValue = exec->hostThisValue();
       
  1123     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1124         return throwVMTypeError(exec);
       
  1125     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1126     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1127     unsigned srcRGB = exec->argument(0).toInt32(exec);
       
  1128     unsigned dstRGB = exec->argument(1).toInt32(exec);
       
  1129     unsigned srcAlpha = exec->argument(2).toInt32(exec);
       
  1130     unsigned dstAlpha = exec->argument(3).toInt32(exec);
       
  1131 
       
  1132     imp->blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
       
  1133     return JSValue::encode(jsUndefined());
       
  1134 }
       
  1135 
       
  1136 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBufferData1(ExecState* exec)
       
  1137 {
       
  1138     JSValue thisValue = exec->hostThisValue();
       
  1139     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1140         return throwVMTypeError(exec);
       
  1141     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1142     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1143     ExceptionCode ec = 0;
       
  1144     unsigned target = exec->argument(0).toInt32(exec);
       
  1145     ArrayBuffer* data = toArrayBuffer(exec->argument(1));
       
  1146     unsigned usage = exec->argument(2).toInt32(exec);
       
  1147 
       
  1148     imp->bufferData(target, data, usage, ec);
       
  1149     setDOMException(exec, ec);
       
  1150     return JSValue::encode(jsUndefined());
       
  1151 }
       
  1152 
       
  1153 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBufferData2(ExecState* exec)
       
  1154 {
       
  1155     JSValue thisValue = exec->hostThisValue();
       
  1156     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1157         return throwVMTypeError(exec);
       
  1158     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1159     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1160     ExceptionCode ec = 0;
       
  1161     unsigned target = exec->argument(0).toInt32(exec);
       
  1162     ArrayBufferView* data = toArrayBufferView(exec->argument(1));
       
  1163     unsigned usage = exec->argument(2).toInt32(exec);
       
  1164 
       
  1165     imp->bufferData(target, data, usage, ec);
       
  1166     setDOMException(exec, ec);
       
  1167     return JSValue::encode(jsUndefined());
       
  1168 }
       
  1169 
       
  1170 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBufferData3(ExecState* exec)
       
  1171 {
       
  1172     JSValue thisValue = exec->hostThisValue();
       
  1173     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1174         return throwVMTypeError(exec);
       
  1175     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1176     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1177     ExceptionCode ec = 0;
       
  1178     unsigned target = exec->argument(0).toInt32(exec);
       
  1179     int size = exec->argument(1).toInt32(exec);
       
  1180     unsigned usage = exec->argument(2).toInt32(exec);
       
  1181 
       
  1182     imp->bufferData(target, size, usage, ec);
       
  1183     setDOMException(exec, ec);
       
  1184     return JSValue::encode(jsUndefined());
       
  1185 }
       
  1186 
       
  1187 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBufferData(ExecState* exec)
       
  1188 {
       
  1189     if ((exec->argumentCount() == 3 && (exec->argument(1).isNull() || exec->argument(1).isObject() && asObject(exec->argument(1))->inherits(&JSArrayBuffer::s_info))))
       
  1190         return jsWebGLRenderingContextPrototypeFunctionBufferData1(exec);
       
  1191     if ((exec->argumentCount() == 3 && (exec->argument(1).isNull() || exec->argument(1).isObject() && asObject(exec->argument(1))->inherits(&JSArrayBufferView::s_info))))
       
  1192         return jsWebGLRenderingContextPrototypeFunctionBufferData2(exec);
       
  1193     if (exec->argumentCount() == 3)
       
  1194         return jsWebGLRenderingContextPrototypeFunctionBufferData3(exec);
       
  1195     return throwVMTypeError(exec);
       
  1196 }
       
  1197 
       
  1198 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBufferSubData1(ExecState* exec)
       
  1199 {
       
  1200     JSValue thisValue = exec->hostThisValue();
       
  1201     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1202         return throwVMTypeError(exec);
       
  1203     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1204     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1205     ExceptionCode ec = 0;
       
  1206     unsigned target = exec->argument(0).toInt32(exec);
       
  1207     int offset = exec->argument(1).toInt32(exec);
       
  1208     ArrayBuffer* data = toArrayBuffer(exec->argument(2));
       
  1209 
       
  1210     imp->bufferSubData(target, offset, data, ec);
       
  1211     setDOMException(exec, ec);
       
  1212     return JSValue::encode(jsUndefined());
       
  1213 }
       
  1214 
       
  1215 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBufferSubData2(ExecState* exec)
       
  1216 {
       
  1217     JSValue thisValue = exec->hostThisValue();
       
  1218     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1219         return throwVMTypeError(exec);
       
  1220     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1221     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1222     ExceptionCode ec = 0;
       
  1223     unsigned target = exec->argument(0).toInt32(exec);
       
  1224     int offset = exec->argument(1).toInt32(exec);
       
  1225     ArrayBufferView* data = toArrayBufferView(exec->argument(2));
       
  1226 
       
  1227     imp->bufferSubData(target, offset, data, ec);
       
  1228     setDOMException(exec, ec);
       
  1229     return JSValue::encode(jsUndefined());
       
  1230 }
       
  1231 
       
  1232 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionBufferSubData(ExecState* exec)
       
  1233 {
       
  1234     if ((exec->argumentCount() == 3 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSArrayBuffer::s_info))))
       
  1235         return jsWebGLRenderingContextPrototypeFunctionBufferSubData1(exec);
       
  1236     if ((exec->argumentCount() == 3 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSArrayBufferView::s_info))))
       
  1237         return jsWebGLRenderingContextPrototypeFunctionBufferSubData2(exec);
       
  1238     return throwVMTypeError(exec);
       
  1239 }
       
  1240 
       
  1241 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCheckFramebufferStatus(ExecState* exec)
       
  1242 {
       
  1243     JSValue thisValue = exec->hostThisValue();
       
  1244     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1245         return throwVMTypeError(exec);
       
  1246     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1247     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1248     unsigned target = exec->argument(0).toInt32(exec);
       
  1249 
       
  1250 
       
  1251     JSC::JSValue result = jsNumber(exec, imp->checkFramebufferStatus(target));
       
  1252     return JSValue::encode(result);
       
  1253 }
       
  1254 
       
  1255 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionClear(ExecState* exec)
       
  1256 {
       
  1257     JSValue thisValue = exec->hostThisValue();
       
  1258     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1259         return throwVMTypeError(exec);
       
  1260     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1261     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1262     unsigned mask = exec->argument(0).toInt32(exec);
       
  1263 
       
  1264     imp->clear(mask);
       
  1265     return JSValue::encode(jsUndefined());
       
  1266 }
       
  1267 
       
  1268 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionClearColor(ExecState* exec)
       
  1269 {
       
  1270     JSValue thisValue = exec->hostThisValue();
       
  1271     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1272         return throwVMTypeError(exec);
       
  1273     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1274     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1275     double red = exec->argument(0).toNumber(exec);
       
  1276     double green = exec->argument(1).toNumber(exec);
       
  1277     double blue = exec->argument(2).toNumber(exec);
       
  1278     double alpha = exec->argument(3).toNumber(exec);
       
  1279 
       
  1280     imp->clearColor(red, green, blue, alpha);
       
  1281     return JSValue::encode(jsUndefined());
       
  1282 }
       
  1283 
       
  1284 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionClearDepth(ExecState* exec)
       
  1285 {
       
  1286     JSValue thisValue = exec->hostThisValue();
       
  1287     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1288         return throwVMTypeError(exec);
       
  1289     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1290     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1291     double depth = exec->argument(0).toNumber(exec);
       
  1292 
       
  1293     imp->clearDepth(depth);
       
  1294     return JSValue::encode(jsUndefined());
       
  1295 }
       
  1296 
       
  1297 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionClearStencil(ExecState* exec)
       
  1298 {
       
  1299     JSValue thisValue = exec->hostThisValue();
       
  1300     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1301         return throwVMTypeError(exec);
       
  1302     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1303     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1304     int s = exec->argument(0).toInt32(exec);
       
  1305 
       
  1306     imp->clearStencil(s);
       
  1307     return JSValue::encode(jsUndefined());
       
  1308 }
       
  1309 
       
  1310 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionColorMask(ExecState* exec)
       
  1311 {
       
  1312     JSValue thisValue = exec->hostThisValue();
       
  1313     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1314         return throwVMTypeError(exec);
       
  1315     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1316     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1317     bool red = exec->argument(0).toBoolean(exec);
       
  1318     bool green = exec->argument(1).toBoolean(exec);
       
  1319     bool blue = exec->argument(2).toBoolean(exec);
       
  1320     bool alpha = exec->argument(3).toBoolean(exec);
       
  1321 
       
  1322     imp->colorMask(red, green, blue, alpha);
       
  1323     return JSValue::encode(jsUndefined());
       
  1324 }
       
  1325 
       
  1326 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCompileShader(ExecState* exec)
       
  1327 {
       
  1328     JSValue thisValue = exec->hostThisValue();
       
  1329     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1330         return throwVMTypeError(exec);
       
  1331     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1332     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1333     ExceptionCode ec = 0;
       
  1334     WebGLShader* shader = toWebGLShader(exec->argument(0));
       
  1335 
       
  1336     imp->compileShader(shader, ec);
       
  1337     setDOMException(exec, ec);
       
  1338     return JSValue::encode(jsUndefined());
       
  1339 }
       
  1340 
       
  1341 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCopyTexImage2D(ExecState* exec)
       
  1342 {
       
  1343     JSValue thisValue = exec->hostThisValue();
       
  1344     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1345         return throwVMTypeError(exec);
       
  1346     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1347     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1348     unsigned target = exec->argument(0).toInt32(exec);
       
  1349     int level = exec->argument(1).toInt32(exec);
       
  1350     unsigned internalformat = exec->argument(2).toInt32(exec);
       
  1351     int x = exec->argument(3).toInt32(exec);
       
  1352     int y = exec->argument(4).toInt32(exec);
       
  1353     unsigned width = exec->argument(5).toInt32(exec);
       
  1354     unsigned height = exec->argument(6).toInt32(exec);
       
  1355     int border = exec->argument(7).toInt32(exec);
       
  1356 
       
  1357     imp->copyTexImage2D(target, level, internalformat, x, y, width, height, border);
       
  1358     return JSValue::encode(jsUndefined());
       
  1359 }
       
  1360 
       
  1361 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCopyTexSubImage2D(ExecState* exec)
       
  1362 {
       
  1363     JSValue thisValue = exec->hostThisValue();
       
  1364     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1365         return throwVMTypeError(exec);
       
  1366     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1367     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1368     unsigned target = exec->argument(0).toInt32(exec);
       
  1369     int level = exec->argument(1).toInt32(exec);
       
  1370     int xoffset = exec->argument(2).toInt32(exec);
       
  1371     int yoffset = exec->argument(3).toInt32(exec);
       
  1372     int x = exec->argument(4).toInt32(exec);
       
  1373     int y = exec->argument(5).toInt32(exec);
       
  1374     unsigned width = exec->argument(6).toInt32(exec);
       
  1375     unsigned height = exec->argument(7).toInt32(exec);
       
  1376 
       
  1377     imp->copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
       
  1378     return JSValue::encode(jsUndefined());
       
  1379 }
       
  1380 
       
  1381 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCreateBuffer(ExecState* exec)
       
  1382 {
       
  1383     JSValue thisValue = exec->hostThisValue();
       
  1384     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1385         return throwVMTypeError(exec);
       
  1386     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1387     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1388 
       
  1389 
       
  1390     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->createBuffer()));
       
  1391     return JSValue::encode(result);
       
  1392 }
       
  1393 
       
  1394 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCreateFramebuffer(ExecState* exec)
       
  1395 {
       
  1396     JSValue thisValue = exec->hostThisValue();
       
  1397     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1398         return throwVMTypeError(exec);
       
  1399     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1400     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1401 
       
  1402 
       
  1403     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->createFramebuffer()));
       
  1404     return JSValue::encode(result);
       
  1405 }
       
  1406 
       
  1407 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCreateProgram(ExecState* exec)
       
  1408 {
       
  1409     JSValue thisValue = exec->hostThisValue();
       
  1410     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1411         return throwVMTypeError(exec);
       
  1412     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1413     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1414 
       
  1415 
       
  1416     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->createProgram()));
       
  1417     return JSValue::encode(result);
       
  1418 }
       
  1419 
       
  1420 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCreateRenderbuffer(ExecState* exec)
       
  1421 {
       
  1422     JSValue thisValue = exec->hostThisValue();
       
  1423     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1424         return throwVMTypeError(exec);
       
  1425     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1426     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1427 
       
  1428 
       
  1429     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->createRenderbuffer()));
       
  1430     return JSValue::encode(result);
       
  1431 }
       
  1432 
       
  1433 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCreateShader(ExecState* exec)
       
  1434 {
       
  1435     JSValue thisValue = exec->hostThisValue();
       
  1436     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1437         return throwVMTypeError(exec);
       
  1438     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1439     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1440     ExceptionCode ec = 0;
       
  1441     unsigned type = exec->argument(0).toInt32(exec);
       
  1442 
       
  1443 
       
  1444     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->createShader(type, ec)));
       
  1445     setDOMException(exec, ec);
       
  1446     return JSValue::encode(result);
       
  1447 }
       
  1448 
       
  1449 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCreateTexture(ExecState* exec)
       
  1450 {
       
  1451     JSValue thisValue = exec->hostThisValue();
       
  1452     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1453         return throwVMTypeError(exec);
       
  1454     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1455     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1456 
       
  1457 
       
  1458     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->createTexture()));
       
  1459     return JSValue::encode(result);
       
  1460 }
       
  1461 
       
  1462 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionCullFace(ExecState* exec)
       
  1463 {
       
  1464     JSValue thisValue = exec->hostThisValue();
       
  1465     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1466         return throwVMTypeError(exec);
       
  1467     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1468     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1469     unsigned mode = exec->argument(0).toInt32(exec);
       
  1470 
       
  1471     imp->cullFace(mode);
       
  1472     return JSValue::encode(jsUndefined());
       
  1473 }
       
  1474 
       
  1475 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDeleteBuffer(ExecState* exec)
       
  1476 {
       
  1477     JSValue thisValue = exec->hostThisValue();
       
  1478     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1479         return throwVMTypeError(exec);
       
  1480     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1481     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1482     WebGLBuffer* buffer = toWebGLBuffer(exec->argument(0));
       
  1483 
       
  1484     imp->deleteBuffer(buffer);
       
  1485     return JSValue::encode(jsUndefined());
       
  1486 }
       
  1487 
       
  1488 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDeleteFramebuffer(ExecState* exec)
       
  1489 {
       
  1490     JSValue thisValue = exec->hostThisValue();
       
  1491     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1492         return throwVMTypeError(exec);
       
  1493     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1494     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1495     WebGLFramebuffer* framebuffer = toWebGLFramebuffer(exec->argument(0));
       
  1496 
       
  1497     imp->deleteFramebuffer(framebuffer);
       
  1498     return JSValue::encode(jsUndefined());
       
  1499 }
       
  1500 
       
  1501 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDeleteProgram(ExecState* exec)
       
  1502 {
       
  1503     JSValue thisValue = exec->hostThisValue();
       
  1504     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1505         return throwVMTypeError(exec);
       
  1506     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1507     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1508     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  1509 
       
  1510     imp->deleteProgram(program);
       
  1511     return JSValue::encode(jsUndefined());
       
  1512 }
       
  1513 
       
  1514 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDeleteRenderbuffer(ExecState* exec)
       
  1515 {
       
  1516     JSValue thisValue = exec->hostThisValue();
       
  1517     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1518         return throwVMTypeError(exec);
       
  1519     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1520     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1521     WebGLRenderbuffer* renderbuffer = toWebGLRenderbuffer(exec->argument(0));
       
  1522 
       
  1523     imp->deleteRenderbuffer(renderbuffer);
       
  1524     return JSValue::encode(jsUndefined());
       
  1525 }
       
  1526 
       
  1527 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDeleteShader(ExecState* exec)
       
  1528 {
       
  1529     JSValue thisValue = exec->hostThisValue();
       
  1530     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1531         return throwVMTypeError(exec);
       
  1532     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1533     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1534     WebGLShader* shader = toWebGLShader(exec->argument(0));
       
  1535 
       
  1536     imp->deleteShader(shader);
       
  1537     return JSValue::encode(jsUndefined());
       
  1538 }
       
  1539 
       
  1540 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDeleteTexture(ExecState* exec)
       
  1541 {
       
  1542     JSValue thisValue = exec->hostThisValue();
       
  1543     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1544         return throwVMTypeError(exec);
       
  1545     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1546     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1547     WebGLTexture* texture = toWebGLTexture(exec->argument(0));
       
  1548 
       
  1549     imp->deleteTexture(texture);
       
  1550     return JSValue::encode(jsUndefined());
       
  1551 }
       
  1552 
       
  1553 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDepthFunc(ExecState* exec)
       
  1554 {
       
  1555     JSValue thisValue = exec->hostThisValue();
       
  1556     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1557         return throwVMTypeError(exec);
       
  1558     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1559     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1560     unsigned func = exec->argument(0).toInt32(exec);
       
  1561 
       
  1562     imp->depthFunc(func);
       
  1563     return JSValue::encode(jsUndefined());
       
  1564 }
       
  1565 
       
  1566 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDepthMask(ExecState* exec)
       
  1567 {
       
  1568     JSValue thisValue = exec->hostThisValue();
       
  1569     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1570         return throwVMTypeError(exec);
       
  1571     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1572     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1573     bool flag = exec->argument(0).toBoolean(exec);
       
  1574 
       
  1575     imp->depthMask(flag);
       
  1576     return JSValue::encode(jsUndefined());
       
  1577 }
       
  1578 
       
  1579 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDepthRange(ExecState* exec)
       
  1580 {
       
  1581     JSValue thisValue = exec->hostThisValue();
       
  1582     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1583         return throwVMTypeError(exec);
       
  1584     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1585     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1586     double zNear = exec->argument(0).toNumber(exec);
       
  1587     double zFar = exec->argument(1).toNumber(exec);
       
  1588 
       
  1589     imp->depthRange(zNear, zFar);
       
  1590     return JSValue::encode(jsUndefined());
       
  1591 }
       
  1592 
       
  1593 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDetachShader(ExecState* exec)
       
  1594 {
       
  1595     JSValue thisValue = exec->hostThisValue();
       
  1596     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1597         return throwVMTypeError(exec);
       
  1598     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1599     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1600     ExceptionCode ec = 0;
       
  1601     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  1602     WebGLShader* shader = toWebGLShader(exec->argument(1));
       
  1603 
       
  1604     imp->detachShader(program, shader, ec);
       
  1605     setDOMException(exec, ec);
       
  1606     return JSValue::encode(jsUndefined());
       
  1607 }
       
  1608 
       
  1609 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDisable(ExecState* exec)
       
  1610 {
       
  1611     JSValue thisValue = exec->hostThisValue();
       
  1612     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1613         return throwVMTypeError(exec);
       
  1614     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1615     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1616     unsigned cap = exec->argument(0).toInt32(exec);
       
  1617 
       
  1618     imp->disable(cap);
       
  1619     return JSValue::encode(jsUndefined());
       
  1620 }
       
  1621 
       
  1622 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDisableVertexAttribArray(ExecState* exec)
       
  1623 {
       
  1624     JSValue thisValue = exec->hostThisValue();
       
  1625     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1626         return throwVMTypeError(exec);
       
  1627     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1628     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1629     ExceptionCode ec = 0;
       
  1630     unsigned index = exec->argument(0).toInt32(exec);
       
  1631 
       
  1632     imp->disableVertexAttribArray(index, ec);
       
  1633     setDOMException(exec, ec);
       
  1634     return JSValue::encode(jsUndefined());
       
  1635 }
       
  1636 
       
  1637 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDrawArrays(ExecState* exec)
       
  1638 {
       
  1639     JSValue thisValue = exec->hostThisValue();
       
  1640     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1641         return throwVMTypeError(exec);
       
  1642     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1643     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1644     ExceptionCode ec = 0;
       
  1645     unsigned mode = exec->argument(0).toInt32(exec);
       
  1646     int first = exec->argument(1).toInt32(exec);
       
  1647     int count = exec->argument(2).toInt32(exec);
       
  1648 
       
  1649     imp->drawArrays(mode, first, count, ec);
       
  1650     setDOMException(exec, ec);
       
  1651     return JSValue::encode(jsUndefined());
       
  1652 }
       
  1653 
       
  1654 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionDrawElements(ExecState* exec)
       
  1655 {
       
  1656     JSValue thisValue = exec->hostThisValue();
       
  1657     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1658         return throwVMTypeError(exec);
       
  1659     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1660     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1661     ExceptionCode ec = 0;
       
  1662     unsigned mode = exec->argument(0).toInt32(exec);
       
  1663     int count = exec->argument(1).toInt32(exec);
       
  1664     unsigned type = exec->argument(2).toInt32(exec);
       
  1665     int offset = exec->argument(3).toInt32(exec);
       
  1666 
       
  1667     imp->drawElements(mode, count, type, offset, ec);
       
  1668     setDOMException(exec, ec);
       
  1669     return JSValue::encode(jsUndefined());
       
  1670 }
       
  1671 
       
  1672 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionEnable(ExecState* exec)
       
  1673 {
       
  1674     JSValue thisValue = exec->hostThisValue();
       
  1675     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1676         return throwVMTypeError(exec);
       
  1677     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1678     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1679     unsigned cap = exec->argument(0).toInt32(exec);
       
  1680 
       
  1681     imp->enable(cap);
       
  1682     return JSValue::encode(jsUndefined());
       
  1683 }
       
  1684 
       
  1685 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionEnableVertexAttribArray(ExecState* exec)
       
  1686 {
       
  1687     JSValue thisValue = exec->hostThisValue();
       
  1688     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1689         return throwVMTypeError(exec);
       
  1690     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1691     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1692     ExceptionCode ec = 0;
       
  1693     unsigned index = exec->argument(0).toInt32(exec);
       
  1694 
       
  1695     imp->enableVertexAttribArray(index, ec);
       
  1696     setDOMException(exec, ec);
       
  1697     return JSValue::encode(jsUndefined());
       
  1698 }
       
  1699 
       
  1700 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionFinish(ExecState* exec)
       
  1701 {
       
  1702     JSValue thisValue = exec->hostThisValue();
       
  1703     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1704         return throwVMTypeError(exec);
       
  1705     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1706     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1707 
       
  1708     imp->finish();
       
  1709     return JSValue::encode(jsUndefined());
       
  1710 }
       
  1711 
       
  1712 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionFlush(ExecState* exec)
       
  1713 {
       
  1714     JSValue thisValue = exec->hostThisValue();
       
  1715     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1716         return throwVMTypeError(exec);
       
  1717     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1718     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1719 
       
  1720     imp->flush();
       
  1721     return JSValue::encode(jsUndefined());
       
  1722 }
       
  1723 
       
  1724 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionFramebufferRenderbuffer(ExecState* exec)
       
  1725 {
       
  1726     JSValue thisValue = exec->hostThisValue();
       
  1727     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1728         return throwVMTypeError(exec);
       
  1729     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1730     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1731     ExceptionCode ec = 0;
       
  1732     unsigned target = exec->argument(0).toInt32(exec);
       
  1733     unsigned attachment = exec->argument(1).toInt32(exec);
       
  1734     unsigned renderbuffertarget = exec->argument(2).toInt32(exec);
       
  1735     WebGLRenderbuffer* renderbuffer = toWebGLRenderbuffer(exec->argument(3));
       
  1736 
       
  1737     imp->framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer, ec);
       
  1738     setDOMException(exec, ec);
       
  1739     return JSValue::encode(jsUndefined());
       
  1740 }
       
  1741 
       
  1742 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionFramebufferTexture2D(ExecState* exec)
       
  1743 {
       
  1744     JSValue thisValue = exec->hostThisValue();
       
  1745     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1746         return throwVMTypeError(exec);
       
  1747     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1748     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1749     ExceptionCode ec = 0;
       
  1750     unsigned target = exec->argument(0).toInt32(exec);
       
  1751     unsigned attachment = exec->argument(1).toInt32(exec);
       
  1752     unsigned textarget = exec->argument(2).toInt32(exec);
       
  1753     WebGLTexture* texture = toWebGLTexture(exec->argument(3));
       
  1754     int level = exec->argument(4).toInt32(exec);
       
  1755 
       
  1756     imp->framebufferTexture2D(target, attachment, textarget, texture, level, ec);
       
  1757     setDOMException(exec, ec);
       
  1758     return JSValue::encode(jsUndefined());
       
  1759 }
       
  1760 
       
  1761 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionFrontFace(ExecState* exec)
       
  1762 {
       
  1763     JSValue thisValue = exec->hostThisValue();
       
  1764     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1765         return throwVMTypeError(exec);
       
  1766     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1767     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1768     unsigned mode = exec->argument(0).toInt32(exec);
       
  1769 
       
  1770     imp->frontFace(mode);
       
  1771     return JSValue::encode(jsUndefined());
       
  1772 }
       
  1773 
       
  1774 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGenerateMipmap(ExecState* exec)
       
  1775 {
       
  1776     JSValue thisValue = exec->hostThisValue();
       
  1777     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1778         return throwVMTypeError(exec);
       
  1779     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1780     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1781     unsigned target = exec->argument(0).toInt32(exec);
       
  1782 
       
  1783     imp->generateMipmap(target);
       
  1784     return JSValue::encode(jsUndefined());
       
  1785 }
       
  1786 
       
  1787 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetActiveAttrib(ExecState* exec)
       
  1788 {
       
  1789     JSValue thisValue = exec->hostThisValue();
       
  1790     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1791         return throwVMTypeError(exec);
       
  1792     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1793     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1794     ExceptionCode ec = 0;
       
  1795     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  1796     unsigned index = exec->argument(1).toInt32(exec);
       
  1797 
       
  1798 
       
  1799     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getActiveAttrib(program, index, ec)));
       
  1800     setDOMException(exec, ec);
       
  1801     return JSValue::encode(result);
       
  1802 }
       
  1803 
       
  1804 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetActiveUniform(ExecState* exec)
       
  1805 {
       
  1806     JSValue thisValue = exec->hostThisValue();
       
  1807     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1808         return throwVMTypeError(exec);
       
  1809     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1810     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1811     ExceptionCode ec = 0;
       
  1812     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  1813     unsigned index = exec->argument(1).toInt32(exec);
       
  1814 
       
  1815 
       
  1816     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getActiveUniform(program, index, ec)));
       
  1817     setDOMException(exec, ec);
       
  1818     return JSValue::encode(result);
       
  1819 }
       
  1820 
       
  1821 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetAttachedShaders(ExecState* exec)
       
  1822 {
       
  1823     JSValue thisValue = exec->hostThisValue();
       
  1824     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1825         return throwVMTypeError(exec);
       
  1826     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1827     return JSValue::encode(castedThis->getAttachedShaders(exec));
       
  1828 }
       
  1829 
       
  1830 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetAttribLocation(ExecState* exec)
       
  1831 {
       
  1832     JSValue thisValue = exec->hostThisValue();
       
  1833     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1834         return throwVMTypeError(exec);
       
  1835     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1836     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1837     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  1838     const String& name = ustringToString(exec->argument(1).toString(exec));
       
  1839 
       
  1840 
       
  1841     JSC::JSValue result = jsNumber(exec, imp->getAttribLocation(program, name));
       
  1842     return JSValue::encode(result);
       
  1843 }
       
  1844 
       
  1845 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetBufferParameter(ExecState* exec)
       
  1846 {
       
  1847     JSValue thisValue = exec->hostThisValue();
       
  1848     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1849         return throwVMTypeError(exec);
       
  1850     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1851     return JSValue::encode(castedThis->getBufferParameter(exec));
       
  1852 }
       
  1853 
       
  1854 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetContextAttributes(ExecState* exec)
       
  1855 {
       
  1856     JSValue thisValue = exec->hostThisValue();
       
  1857     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1858         return throwVMTypeError(exec);
       
  1859     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1860     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1861 
       
  1862 
       
  1863     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getContextAttributes()));
       
  1864     return JSValue::encode(result);
       
  1865 }
       
  1866 
       
  1867 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetError(ExecState* exec)
       
  1868 {
       
  1869     JSValue thisValue = exec->hostThisValue();
       
  1870     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1871         return throwVMTypeError(exec);
       
  1872     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1873     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1874 
       
  1875 
       
  1876     JSC::JSValue result = jsNumber(exec, imp->getError());
       
  1877     return JSValue::encode(result);
       
  1878 }
       
  1879 
       
  1880 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetFramebufferAttachmentParameter(ExecState* exec)
       
  1881 {
       
  1882     JSValue thisValue = exec->hostThisValue();
       
  1883     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1884         return throwVMTypeError(exec);
       
  1885     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1886     return JSValue::encode(castedThis->getFramebufferAttachmentParameter(exec));
       
  1887 }
       
  1888 
       
  1889 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetParameter(ExecState* exec)
       
  1890 {
       
  1891     JSValue thisValue = exec->hostThisValue();
       
  1892     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1893         return throwVMTypeError(exec);
       
  1894     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1895     return JSValue::encode(castedThis->getParameter(exec));
       
  1896 }
       
  1897 
       
  1898 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetProgramParameter(ExecState* exec)
       
  1899 {
       
  1900     JSValue thisValue = exec->hostThisValue();
       
  1901     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1902         return throwVMTypeError(exec);
       
  1903     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1904     return JSValue::encode(castedThis->getProgramParameter(exec));
       
  1905 }
       
  1906 
       
  1907 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetProgramInfoLog(ExecState* exec)
       
  1908 {
       
  1909     JSValue thisValue = exec->hostThisValue();
       
  1910     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1911         return throwVMTypeError(exec);
       
  1912     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1913     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1914     ExceptionCode ec = 0;
       
  1915     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  1916 
       
  1917 
       
  1918     JSC::JSValue result = jsString(exec, imp->getProgramInfoLog(program, ec));
       
  1919     setDOMException(exec, ec);
       
  1920     return JSValue::encode(result);
       
  1921 }
       
  1922 
       
  1923 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetRenderbufferParameter(ExecState* exec)
       
  1924 {
       
  1925     JSValue thisValue = exec->hostThisValue();
       
  1926     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1927         return throwVMTypeError(exec);
       
  1928     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1929     return JSValue::encode(castedThis->getRenderbufferParameter(exec));
       
  1930 }
       
  1931 
       
  1932 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetShaderParameter(ExecState* exec)
       
  1933 {
       
  1934     JSValue thisValue = exec->hostThisValue();
       
  1935     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1936         return throwVMTypeError(exec);
       
  1937     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1938     return JSValue::encode(castedThis->getShaderParameter(exec));
       
  1939 }
       
  1940 
       
  1941 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetShaderInfoLog(ExecState* exec)
       
  1942 {
       
  1943     JSValue thisValue = exec->hostThisValue();
       
  1944     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1945         return throwVMTypeError(exec);
       
  1946     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1947     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1948     ExceptionCode ec = 0;
       
  1949     WebGLShader* shader = toWebGLShader(exec->argument(0));
       
  1950 
       
  1951 
       
  1952     JSC::JSValue result = jsString(exec, imp->getShaderInfoLog(shader, ec));
       
  1953     setDOMException(exec, ec);
       
  1954     return JSValue::encode(result);
       
  1955 }
       
  1956 
       
  1957 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetShaderSource(ExecState* exec)
       
  1958 {
       
  1959     JSValue thisValue = exec->hostThisValue();
       
  1960     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1961         return throwVMTypeError(exec);
       
  1962     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1963     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1964     ExceptionCode ec = 0;
       
  1965     WebGLShader* shader = toWebGLShader(exec->argument(0));
       
  1966 
       
  1967 
       
  1968     JSC::JSValue result = jsString(exec, imp->getShaderSource(shader, ec));
       
  1969     setDOMException(exec, ec);
       
  1970     return JSValue::encode(result);
       
  1971 }
       
  1972 
       
  1973 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetString(ExecState* exec)
       
  1974 {
       
  1975     JSValue thisValue = exec->hostThisValue();
       
  1976     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1977         return throwVMTypeError(exec);
       
  1978     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1979     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  1980     unsigned name = exec->argument(0).toInt32(exec);
       
  1981 
       
  1982 
       
  1983     JSC::JSValue result = jsString(exec, imp->getString(name));
       
  1984     return JSValue::encode(result);
       
  1985 }
       
  1986 
       
  1987 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetTexParameter(ExecState* exec)
       
  1988 {
       
  1989     JSValue thisValue = exec->hostThisValue();
       
  1990     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  1991         return throwVMTypeError(exec);
       
  1992     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  1993     return JSValue::encode(castedThis->getTexParameter(exec));
       
  1994 }
       
  1995 
       
  1996 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetUniform(ExecState* exec)
       
  1997 {
       
  1998     JSValue thisValue = exec->hostThisValue();
       
  1999     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2000         return throwVMTypeError(exec);
       
  2001     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2002     return JSValue::encode(castedThis->getUniform(exec));
       
  2003 }
       
  2004 
       
  2005 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetUniformLocation(ExecState* exec)
       
  2006 {
       
  2007     JSValue thisValue = exec->hostThisValue();
       
  2008     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2009         return throwVMTypeError(exec);
       
  2010     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2011     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2012     ExceptionCode ec = 0;
       
  2013     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  2014     const String& name = ustringToString(exec->argument(1).toString(exec));
       
  2015 
       
  2016 
       
  2017     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getUniformLocation(program, name, ec)));
       
  2018     setDOMException(exec, ec);
       
  2019     return JSValue::encode(result);
       
  2020 }
       
  2021 
       
  2022 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetVertexAttrib(ExecState* exec)
       
  2023 {
       
  2024     JSValue thisValue = exec->hostThisValue();
       
  2025     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2026         return throwVMTypeError(exec);
       
  2027     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2028     return JSValue::encode(castedThis->getVertexAttrib(exec));
       
  2029 }
       
  2030 
       
  2031 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionGetVertexAttribOffset(ExecState* exec)
       
  2032 {
       
  2033     JSValue thisValue = exec->hostThisValue();
       
  2034     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2035         return throwVMTypeError(exec);
       
  2036     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2037     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2038     unsigned index = exec->argument(0).toInt32(exec);
       
  2039     unsigned pname = exec->argument(1).toInt32(exec);
       
  2040 
       
  2041 
       
  2042     JSC::JSValue result = jsNumber(exec, imp->getVertexAttribOffset(index, pname));
       
  2043     return JSValue::encode(result);
       
  2044 }
       
  2045 
       
  2046 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionHint(ExecState* exec)
       
  2047 {
       
  2048     JSValue thisValue = exec->hostThisValue();
       
  2049     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2050         return throwVMTypeError(exec);
       
  2051     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2052     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2053     unsigned target = exec->argument(0).toInt32(exec);
       
  2054     unsigned mode = exec->argument(1).toInt32(exec);
       
  2055 
       
  2056     imp->hint(target, mode);
       
  2057     return JSValue::encode(jsUndefined());
       
  2058 }
       
  2059 
       
  2060 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionIsBuffer(ExecState* exec)
       
  2061 {
       
  2062     JSValue thisValue = exec->hostThisValue();
       
  2063     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2064         return throwVMTypeError(exec);
       
  2065     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2066     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2067     WebGLBuffer* buffer = toWebGLBuffer(exec->argument(0));
       
  2068 
       
  2069 
       
  2070     JSC::JSValue result = jsBoolean(imp->isBuffer(buffer));
       
  2071     return JSValue::encode(result);
       
  2072 }
       
  2073 
       
  2074 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionIsEnabled(ExecState* exec)
       
  2075 {
       
  2076     JSValue thisValue = exec->hostThisValue();
       
  2077     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2078         return throwVMTypeError(exec);
       
  2079     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2080     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2081     unsigned cap = exec->argument(0).toInt32(exec);
       
  2082 
       
  2083 
       
  2084     JSC::JSValue result = jsBoolean(imp->isEnabled(cap));
       
  2085     return JSValue::encode(result);
       
  2086 }
       
  2087 
       
  2088 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionIsFramebuffer(ExecState* exec)
       
  2089 {
       
  2090     JSValue thisValue = exec->hostThisValue();
       
  2091     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2092         return throwVMTypeError(exec);
       
  2093     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2094     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2095     WebGLFramebuffer* framebuffer = toWebGLFramebuffer(exec->argument(0));
       
  2096 
       
  2097 
       
  2098     JSC::JSValue result = jsBoolean(imp->isFramebuffer(framebuffer));
       
  2099     return JSValue::encode(result);
       
  2100 }
       
  2101 
       
  2102 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionIsProgram(ExecState* exec)
       
  2103 {
       
  2104     JSValue thisValue = exec->hostThisValue();
       
  2105     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2106         return throwVMTypeError(exec);
       
  2107     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2108     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2109     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  2110 
       
  2111 
       
  2112     JSC::JSValue result = jsBoolean(imp->isProgram(program));
       
  2113     return JSValue::encode(result);
       
  2114 }
       
  2115 
       
  2116 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionIsRenderbuffer(ExecState* exec)
       
  2117 {
       
  2118     JSValue thisValue = exec->hostThisValue();
       
  2119     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2120         return throwVMTypeError(exec);
       
  2121     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2122     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2123     WebGLRenderbuffer* renderbuffer = toWebGLRenderbuffer(exec->argument(0));
       
  2124 
       
  2125 
       
  2126     JSC::JSValue result = jsBoolean(imp->isRenderbuffer(renderbuffer));
       
  2127     return JSValue::encode(result);
       
  2128 }
       
  2129 
       
  2130 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionIsShader(ExecState* exec)
       
  2131 {
       
  2132     JSValue thisValue = exec->hostThisValue();
       
  2133     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2134         return throwVMTypeError(exec);
       
  2135     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2136     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2137     WebGLShader* shader = toWebGLShader(exec->argument(0));
       
  2138 
       
  2139 
       
  2140     JSC::JSValue result = jsBoolean(imp->isShader(shader));
       
  2141     return JSValue::encode(result);
       
  2142 }
       
  2143 
       
  2144 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionIsTexture(ExecState* exec)
       
  2145 {
       
  2146     JSValue thisValue = exec->hostThisValue();
       
  2147     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2148         return throwVMTypeError(exec);
       
  2149     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2150     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2151     WebGLTexture* texture = toWebGLTexture(exec->argument(0));
       
  2152 
       
  2153 
       
  2154     JSC::JSValue result = jsBoolean(imp->isTexture(texture));
       
  2155     return JSValue::encode(result);
       
  2156 }
       
  2157 
       
  2158 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionLineWidth(ExecState* exec)
       
  2159 {
       
  2160     JSValue thisValue = exec->hostThisValue();
       
  2161     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2162         return throwVMTypeError(exec);
       
  2163     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2164     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2165     double width = exec->argument(0).toNumber(exec);
       
  2166 
       
  2167     imp->lineWidth(width);
       
  2168     return JSValue::encode(jsUndefined());
       
  2169 }
       
  2170 
       
  2171 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionLinkProgram(ExecState* exec)
       
  2172 {
       
  2173     JSValue thisValue = exec->hostThisValue();
       
  2174     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2175         return throwVMTypeError(exec);
       
  2176     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2177     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2178     ExceptionCode ec = 0;
       
  2179     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  2180 
       
  2181     imp->linkProgram(program, ec);
       
  2182     setDOMException(exec, ec);
       
  2183     return JSValue::encode(jsUndefined());
       
  2184 }
       
  2185 
       
  2186 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionPixelStorei(ExecState* exec)
       
  2187 {
       
  2188     JSValue thisValue = exec->hostThisValue();
       
  2189     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2190         return throwVMTypeError(exec);
       
  2191     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2192     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2193     unsigned pname = exec->argument(0).toInt32(exec);
       
  2194     int param = exec->argument(1).toInt32(exec);
       
  2195 
       
  2196     imp->pixelStorei(pname, param);
       
  2197     return JSValue::encode(jsUndefined());
       
  2198 }
       
  2199 
       
  2200 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionPolygonOffset(ExecState* exec)
       
  2201 {
       
  2202     JSValue thisValue = exec->hostThisValue();
       
  2203     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2204         return throwVMTypeError(exec);
       
  2205     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2206     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2207     double factor = exec->argument(0).toNumber(exec);
       
  2208     double units = exec->argument(1).toNumber(exec);
       
  2209 
       
  2210     imp->polygonOffset(factor, units);
       
  2211     return JSValue::encode(jsUndefined());
       
  2212 }
       
  2213 
       
  2214 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionReadPixels(ExecState* exec)
       
  2215 {
       
  2216     JSValue thisValue = exec->hostThisValue();
       
  2217     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2218         return throwVMTypeError(exec);
       
  2219     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2220     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2221     int x = exec->argument(0).toInt32(exec);
       
  2222     int y = exec->argument(1).toInt32(exec);
       
  2223     int width = exec->argument(2).toInt32(exec);
       
  2224     int height = exec->argument(3).toInt32(exec);
       
  2225     unsigned format = exec->argument(4).toInt32(exec);
       
  2226     unsigned type = exec->argument(5).toInt32(exec);
       
  2227     ArrayBufferView* pixels = toArrayBufferView(exec->argument(6));
       
  2228 
       
  2229     imp->readPixels(x, y, width, height, format, type, pixels);
       
  2230     return JSValue::encode(jsUndefined());
       
  2231 }
       
  2232 
       
  2233 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionReleaseShaderCompiler(ExecState* exec)
       
  2234 {
       
  2235     JSValue thisValue = exec->hostThisValue();
       
  2236     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2237         return throwVMTypeError(exec);
       
  2238     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2239     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2240 
       
  2241     imp->releaseShaderCompiler();
       
  2242     return JSValue::encode(jsUndefined());
       
  2243 }
       
  2244 
       
  2245 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionRenderbufferStorage(ExecState* exec)
       
  2246 {
       
  2247     JSValue thisValue = exec->hostThisValue();
       
  2248     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2249         return throwVMTypeError(exec);
       
  2250     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2251     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2252     unsigned target = exec->argument(0).toInt32(exec);
       
  2253     unsigned internalformat = exec->argument(1).toInt32(exec);
       
  2254     unsigned width = exec->argument(2).toInt32(exec);
       
  2255     unsigned height = exec->argument(3).toInt32(exec);
       
  2256 
       
  2257     imp->renderbufferStorage(target, internalformat, width, height);
       
  2258     return JSValue::encode(jsUndefined());
       
  2259 }
       
  2260 
       
  2261 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionSampleCoverage(ExecState* exec)
       
  2262 {
       
  2263     JSValue thisValue = exec->hostThisValue();
       
  2264     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2265         return throwVMTypeError(exec);
       
  2266     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2267     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2268     double value = exec->argument(0).toNumber(exec);
       
  2269     bool invert = exec->argument(1).toBoolean(exec);
       
  2270 
       
  2271     imp->sampleCoverage(value, invert);
       
  2272     return JSValue::encode(jsUndefined());
       
  2273 }
       
  2274 
       
  2275 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionScissor(ExecState* exec)
       
  2276 {
       
  2277     JSValue thisValue = exec->hostThisValue();
       
  2278     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2279         return throwVMTypeError(exec);
       
  2280     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2281     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2282     int x = exec->argument(0).toInt32(exec);
       
  2283     int y = exec->argument(1).toInt32(exec);
       
  2284     unsigned width = exec->argument(2).toInt32(exec);
       
  2285     unsigned height = exec->argument(3).toInt32(exec);
       
  2286 
       
  2287     imp->scissor(x, y, width, height);
       
  2288     return JSValue::encode(jsUndefined());
       
  2289 }
       
  2290 
       
  2291 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionShaderSource(ExecState* exec)
       
  2292 {
       
  2293     JSValue thisValue = exec->hostThisValue();
       
  2294     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2295         return throwVMTypeError(exec);
       
  2296     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2297     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2298     ExceptionCode ec = 0;
       
  2299     WebGLShader* shader = toWebGLShader(exec->argument(0));
       
  2300     const String& string = ustringToString(exec->argument(1).toString(exec));
       
  2301 
       
  2302     imp->shaderSource(shader, string, ec);
       
  2303     setDOMException(exec, ec);
       
  2304     return JSValue::encode(jsUndefined());
       
  2305 }
       
  2306 
       
  2307 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionStencilFunc(ExecState* exec)
       
  2308 {
       
  2309     JSValue thisValue = exec->hostThisValue();
       
  2310     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2311         return throwVMTypeError(exec);
       
  2312     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2313     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2314     unsigned func = exec->argument(0).toInt32(exec);
       
  2315     int ref = exec->argument(1).toInt32(exec);
       
  2316     unsigned mask = exec->argument(2).toInt32(exec);
       
  2317 
       
  2318     imp->stencilFunc(func, ref, mask);
       
  2319     return JSValue::encode(jsUndefined());
       
  2320 }
       
  2321 
       
  2322 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionStencilFuncSeparate(ExecState* exec)
       
  2323 {
       
  2324     JSValue thisValue = exec->hostThisValue();
       
  2325     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2326         return throwVMTypeError(exec);
       
  2327     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2328     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2329     unsigned face = exec->argument(0).toInt32(exec);
       
  2330     unsigned func = exec->argument(1).toInt32(exec);
       
  2331     int ref = exec->argument(2).toInt32(exec);
       
  2332     unsigned mask = exec->argument(3).toInt32(exec);
       
  2333 
       
  2334     imp->stencilFuncSeparate(face, func, ref, mask);
       
  2335     return JSValue::encode(jsUndefined());
       
  2336 }
       
  2337 
       
  2338 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionStencilMask(ExecState* exec)
       
  2339 {
       
  2340     JSValue thisValue = exec->hostThisValue();
       
  2341     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2342         return throwVMTypeError(exec);
       
  2343     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2344     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2345     unsigned mask = exec->argument(0).toInt32(exec);
       
  2346 
       
  2347     imp->stencilMask(mask);
       
  2348     return JSValue::encode(jsUndefined());
       
  2349 }
       
  2350 
       
  2351 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionStencilMaskSeparate(ExecState* exec)
       
  2352 {
       
  2353     JSValue thisValue = exec->hostThisValue();
       
  2354     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2355         return throwVMTypeError(exec);
       
  2356     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2357     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2358     unsigned face = exec->argument(0).toInt32(exec);
       
  2359     unsigned mask = exec->argument(1).toInt32(exec);
       
  2360 
       
  2361     imp->stencilMaskSeparate(face, mask);
       
  2362     return JSValue::encode(jsUndefined());
       
  2363 }
       
  2364 
       
  2365 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionStencilOp(ExecState* exec)
       
  2366 {
       
  2367     JSValue thisValue = exec->hostThisValue();
       
  2368     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2369         return throwVMTypeError(exec);
       
  2370     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2371     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2372     unsigned fail = exec->argument(0).toInt32(exec);
       
  2373     unsigned zfail = exec->argument(1).toInt32(exec);
       
  2374     unsigned zpass = exec->argument(2).toInt32(exec);
       
  2375 
       
  2376     imp->stencilOp(fail, zfail, zpass);
       
  2377     return JSValue::encode(jsUndefined());
       
  2378 }
       
  2379 
       
  2380 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionStencilOpSeparate(ExecState* exec)
       
  2381 {
       
  2382     JSValue thisValue = exec->hostThisValue();
       
  2383     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2384         return throwVMTypeError(exec);
       
  2385     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2386     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2387     unsigned face = exec->argument(0).toInt32(exec);
       
  2388     unsigned fail = exec->argument(1).toInt32(exec);
       
  2389     unsigned zfail = exec->argument(2).toInt32(exec);
       
  2390     unsigned zpass = exec->argument(3).toInt32(exec);
       
  2391 
       
  2392     imp->stencilOpSeparate(face, fail, zfail, zpass);
       
  2393     return JSValue::encode(jsUndefined());
       
  2394 }
       
  2395 
       
  2396 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexParameterf(ExecState* exec)
       
  2397 {
       
  2398     JSValue thisValue = exec->hostThisValue();
       
  2399     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2400         return throwVMTypeError(exec);
       
  2401     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2402     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2403     unsigned target = exec->argument(0).toInt32(exec);
       
  2404     unsigned pname = exec->argument(1).toInt32(exec);
       
  2405     float param = exec->argument(2).toFloat(exec);
       
  2406 
       
  2407     imp->texParameterf(target, pname, param);
       
  2408     return JSValue::encode(jsUndefined());
       
  2409 }
       
  2410 
       
  2411 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexParameteri(ExecState* exec)
       
  2412 {
       
  2413     JSValue thisValue = exec->hostThisValue();
       
  2414     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2415         return throwVMTypeError(exec);
       
  2416     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2417     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2418     unsigned target = exec->argument(0).toInt32(exec);
       
  2419     unsigned pname = exec->argument(1).toInt32(exec);
       
  2420     int param = exec->argument(2).toInt32(exec);
       
  2421 
       
  2422     imp->texParameteri(target, pname, param);
       
  2423     return JSValue::encode(jsUndefined());
       
  2424 }
       
  2425 
       
  2426 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexImage2D1(ExecState* exec)
       
  2427 {
       
  2428     JSValue thisValue = exec->hostThisValue();
       
  2429     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2430         return throwVMTypeError(exec);
       
  2431     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2432     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2433     ExceptionCode ec = 0;
       
  2434     unsigned target = exec->argument(0).toInt32(exec);
       
  2435     int level = exec->argument(1).toInt32(exec);
       
  2436     unsigned internalformat = exec->argument(2).toInt32(exec);
       
  2437     int width = exec->argument(3).toInt32(exec);
       
  2438     int height = exec->argument(4).toInt32(exec);
       
  2439     int border = exec->argument(5).toInt32(exec);
       
  2440     unsigned format = exec->argument(6).toInt32(exec);
       
  2441     unsigned type = exec->argument(7).toInt32(exec);
       
  2442     ArrayBufferView* pixels = toArrayBufferView(exec->argument(8));
       
  2443 
       
  2444     imp->texImage2D(target, level, internalformat, width, height, border, format, type, pixels, ec);
       
  2445     setDOMException(exec, ec);
       
  2446     return JSValue::encode(jsUndefined());
       
  2447 }
       
  2448 
       
  2449 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexImage2D2(ExecState* exec)
       
  2450 {
       
  2451     JSValue thisValue = exec->hostThisValue();
       
  2452     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2453         return throwVMTypeError(exec);
       
  2454     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2455     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2456     ExceptionCode ec = 0;
       
  2457     unsigned target = exec->argument(0).toInt32(exec);
       
  2458     int level = exec->argument(1).toInt32(exec);
       
  2459     unsigned internalformat = exec->argument(2).toInt32(exec);
       
  2460     unsigned format = exec->argument(3).toInt32(exec);
       
  2461     unsigned type = exec->argument(4).toInt32(exec);
       
  2462     ImageData* pixels = toImageData(exec->argument(5));
       
  2463 
       
  2464     imp->texImage2D(target, level, internalformat, format, type, pixels, ec);
       
  2465     setDOMException(exec, ec);
       
  2466     return JSValue::encode(jsUndefined());
       
  2467 }
       
  2468 
       
  2469 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexImage2D3(ExecState* exec)
       
  2470 {
       
  2471     JSValue thisValue = exec->hostThisValue();
       
  2472     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2473         return throwVMTypeError(exec);
       
  2474     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2475     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2476     ExceptionCode ec = 0;
       
  2477     unsigned target = exec->argument(0).toInt32(exec);
       
  2478     int level = exec->argument(1).toInt32(exec);
       
  2479     unsigned internalformat = exec->argument(2).toInt32(exec);
       
  2480     unsigned format = exec->argument(3).toInt32(exec);
       
  2481     unsigned type = exec->argument(4).toInt32(exec);
       
  2482     HTMLImageElement* image = toHTMLImageElement(exec->argument(5));
       
  2483 
       
  2484     imp->texImage2D(target, level, internalformat, format, type, image, ec);
       
  2485     setDOMException(exec, ec);
       
  2486     return JSValue::encode(jsUndefined());
       
  2487 }
       
  2488 
       
  2489 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexImage2D4(ExecState* exec)
       
  2490 {
       
  2491     JSValue thisValue = exec->hostThisValue();
       
  2492     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2493         return throwVMTypeError(exec);
       
  2494     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2495     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2496     ExceptionCode ec = 0;
       
  2497     unsigned target = exec->argument(0).toInt32(exec);
       
  2498     int level = exec->argument(1).toInt32(exec);
       
  2499     unsigned internalformat = exec->argument(2).toInt32(exec);
       
  2500     unsigned format = exec->argument(3).toInt32(exec);
       
  2501     unsigned type = exec->argument(4).toInt32(exec);
       
  2502     HTMLCanvasElement* canvas = toHTMLCanvasElement(exec->argument(5));
       
  2503 
       
  2504     imp->texImage2D(target, level, internalformat, format, type, canvas, ec);
       
  2505     setDOMException(exec, ec);
       
  2506     return JSValue::encode(jsUndefined());
       
  2507 }
       
  2508 
       
  2509 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexImage2D5(ExecState* exec)
       
  2510 {
       
  2511     JSValue thisValue = exec->hostThisValue();
       
  2512     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2513         return throwVMTypeError(exec);
       
  2514     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2515     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2516     ExceptionCode ec = 0;
       
  2517     unsigned target = exec->argument(0).toInt32(exec);
       
  2518     int level = exec->argument(1).toInt32(exec);
       
  2519     unsigned internalformat = exec->argument(2).toInt32(exec);
       
  2520     unsigned format = exec->argument(3).toInt32(exec);
       
  2521     unsigned type = exec->argument(4).toInt32(exec);
       
  2522     HTMLVideoElement* video = toHTMLVideoElement(exec->argument(5));
       
  2523 
       
  2524     imp->texImage2D(target, level, internalformat, format, type, video, ec);
       
  2525     setDOMException(exec, ec);
       
  2526     return JSValue::encode(jsUndefined());
       
  2527 }
       
  2528 
       
  2529 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexImage2D6(ExecState* exec)
       
  2530 {
       
  2531     JSValue thisValue = exec->hostThisValue();
       
  2532     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2533         return throwVMTypeError(exec);
       
  2534     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2535     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2536     ExceptionCode ec = 0;
       
  2537     unsigned target = exec->argument(0).toInt32(exec);
       
  2538     int level = exec->argument(1).toInt32(exec);
       
  2539     ImageData* pixels = toImageData(exec->argument(2));
       
  2540 
       
  2541     int argsCount = exec->argumentCount();
       
  2542     if (argsCount < 4) {
       
  2543         imp->texImage2D(target, level, pixels, ec);
       
  2544         setDOMException(exec, ec);
       
  2545         return JSValue::encode(jsUndefined());
       
  2546     }
       
  2547 
       
  2548     bool flipY = exec->argument(3).toBoolean(exec);
       
  2549     if (argsCount < 5) {
       
  2550         imp->texImage2D(target, level, pixels, flipY, ec);
       
  2551         setDOMException(exec, ec);
       
  2552         return JSValue::encode(jsUndefined());
       
  2553     }
       
  2554 
       
  2555     bool premultiplyAlpha = exec->argument(4).toBoolean(exec);
       
  2556 
       
  2557     imp->texImage2D(target, level, pixels, flipY, premultiplyAlpha, ec);
       
  2558     setDOMException(exec, ec);
       
  2559     return JSValue::encode(jsUndefined());
       
  2560 }
       
  2561 
       
  2562 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexImage2D7(ExecState* exec)
       
  2563 {
       
  2564     JSValue thisValue = exec->hostThisValue();
       
  2565     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2566         return throwVMTypeError(exec);
       
  2567     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2568     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2569     ExceptionCode ec = 0;
       
  2570     unsigned target = exec->argument(0).toInt32(exec);
       
  2571     int level = exec->argument(1).toInt32(exec);
       
  2572     HTMLImageElement* image = toHTMLImageElement(exec->argument(2));
       
  2573 
       
  2574     int argsCount = exec->argumentCount();
       
  2575     if (argsCount < 4) {
       
  2576         imp->texImage2D(target, level, image, ec);
       
  2577         setDOMException(exec, ec);
       
  2578         return JSValue::encode(jsUndefined());
       
  2579     }
       
  2580 
       
  2581     bool flipY = exec->argument(3).toBoolean(exec);
       
  2582     if (argsCount < 5) {
       
  2583         imp->texImage2D(target, level, image, flipY, ec);
       
  2584         setDOMException(exec, ec);
       
  2585         return JSValue::encode(jsUndefined());
       
  2586     }
       
  2587 
       
  2588     bool premultiplyAlpha = exec->argument(4).toBoolean(exec);
       
  2589 
       
  2590     imp->texImage2D(target, level, image, flipY, premultiplyAlpha, ec);
       
  2591     setDOMException(exec, ec);
       
  2592     return JSValue::encode(jsUndefined());
       
  2593 }
       
  2594 
       
  2595 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexImage2D8(ExecState* exec)
       
  2596 {
       
  2597     JSValue thisValue = exec->hostThisValue();
       
  2598     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2599         return throwVMTypeError(exec);
       
  2600     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2601     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2602     ExceptionCode ec = 0;
       
  2603     unsigned target = exec->argument(0).toInt32(exec);
       
  2604     int level = exec->argument(1).toInt32(exec);
       
  2605     HTMLCanvasElement* canvas = toHTMLCanvasElement(exec->argument(2));
       
  2606 
       
  2607     int argsCount = exec->argumentCount();
       
  2608     if (argsCount < 4) {
       
  2609         imp->texImage2D(target, level, canvas, ec);
       
  2610         setDOMException(exec, ec);
       
  2611         return JSValue::encode(jsUndefined());
       
  2612     }
       
  2613 
       
  2614     bool flipY = exec->argument(3).toBoolean(exec);
       
  2615     if (argsCount < 5) {
       
  2616         imp->texImage2D(target, level, canvas, flipY, ec);
       
  2617         setDOMException(exec, ec);
       
  2618         return JSValue::encode(jsUndefined());
       
  2619     }
       
  2620 
       
  2621     bool premultiplyAlpha = exec->argument(4).toBoolean(exec);
       
  2622 
       
  2623     imp->texImage2D(target, level, canvas, flipY, premultiplyAlpha, ec);
       
  2624     setDOMException(exec, ec);
       
  2625     return JSValue::encode(jsUndefined());
       
  2626 }
       
  2627 
       
  2628 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexImage2D9(ExecState* exec)
       
  2629 {
       
  2630     JSValue thisValue = exec->hostThisValue();
       
  2631     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2632         return throwVMTypeError(exec);
       
  2633     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2634     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2635     ExceptionCode ec = 0;
       
  2636     unsigned target = exec->argument(0).toInt32(exec);
       
  2637     int level = exec->argument(1).toInt32(exec);
       
  2638     HTMLVideoElement* video = toHTMLVideoElement(exec->argument(2));
       
  2639 
       
  2640     int argsCount = exec->argumentCount();
       
  2641     if (argsCount < 4) {
       
  2642         imp->texImage2D(target, level, video, ec);
       
  2643         setDOMException(exec, ec);
       
  2644         return JSValue::encode(jsUndefined());
       
  2645     }
       
  2646 
       
  2647     bool flipY = exec->argument(3).toBoolean(exec);
       
  2648     if (argsCount < 5) {
       
  2649         imp->texImage2D(target, level, video, flipY, ec);
       
  2650         setDOMException(exec, ec);
       
  2651         return JSValue::encode(jsUndefined());
       
  2652     }
       
  2653 
       
  2654     bool premultiplyAlpha = exec->argument(4).toBoolean(exec);
       
  2655 
       
  2656     imp->texImage2D(target, level, video, flipY, premultiplyAlpha, ec);
       
  2657     setDOMException(exec, ec);
       
  2658     return JSValue::encode(jsUndefined());
       
  2659 }
       
  2660 
       
  2661 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexImage2D(ExecState* exec)
       
  2662 {
       
  2663     if ((exec->argumentCount() == 9 && (exec->argument(8).isNull() || exec->argument(8).isObject() && asObject(exec->argument(8))->inherits(&JSArrayBufferView::s_info))))
       
  2664         return jsWebGLRenderingContextPrototypeFunctionTexImage2D1(exec);
       
  2665     if ((exec->argumentCount() == 6 && (exec->argument(5).isNull() || exec->argument(5).isObject() && asObject(exec->argument(5))->inherits(&JSImageData::s_info))))
       
  2666         return jsWebGLRenderingContextPrototypeFunctionTexImage2D2(exec);
       
  2667     if ((exec->argumentCount() == 6 && (exec->argument(5).isNull() || exec->argument(5).isObject() && asObject(exec->argument(5))->inherits(&JSHTMLImageElement::s_info))))
       
  2668         return jsWebGLRenderingContextPrototypeFunctionTexImage2D3(exec);
       
  2669     if ((exec->argumentCount() == 6 && (exec->argument(5).isNull() || exec->argument(5).isObject() && asObject(exec->argument(5))->inherits(&JSHTMLCanvasElement::s_info))))
       
  2670         return jsWebGLRenderingContextPrototypeFunctionTexImage2D4(exec);
       
  2671     if ((exec->argumentCount() == 6 && (exec->argument(5).isNull() || exec->argument(5).isObject() && asObject(exec->argument(5))->inherits(&JSHTMLVideoElement::s_info))))
       
  2672         return jsWebGLRenderingContextPrototypeFunctionTexImage2D5(exec);
       
  2673     if ((exec->argumentCount() == 3 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSImageData::s_info))) || (exec->argumentCount() == 4 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSImageData::s_info))) || (exec->argumentCount() == 5 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSImageData::s_info))))
       
  2674         return jsWebGLRenderingContextPrototypeFunctionTexImage2D6(exec);
       
  2675     if ((exec->argumentCount() == 3 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSHTMLImageElement::s_info))) || (exec->argumentCount() == 4 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSHTMLImageElement::s_info))) || (exec->argumentCount() == 5 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSHTMLImageElement::s_info))))
       
  2676         return jsWebGLRenderingContextPrototypeFunctionTexImage2D7(exec);
       
  2677     if ((exec->argumentCount() == 3 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSHTMLCanvasElement::s_info))) || (exec->argumentCount() == 4 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSHTMLCanvasElement::s_info))) || (exec->argumentCount() == 5 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSHTMLCanvasElement::s_info))))
       
  2678         return jsWebGLRenderingContextPrototypeFunctionTexImage2D8(exec);
       
  2679     if ((exec->argumentCount() == 3 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSHTMLVideoElement::s_info))) || (exec->argumentCount() == 4 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSHTMLVideoElement::s_info))) || (exec->argumentCount() == 5 && (exec->argument(2).isNull() || exec->argument(2).isObject() && asObject(exec->argument(2))->inherits(&JSHTMLVideoElement::s_info))))
       
  2680         return jsWebGLRenderingContextPrototypeFunctionTexImage2D9(exec);
       
  2681     return throwVMTypeError(exec);
       
  2682 }
       
  2683 
       
  2684 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexSubImage2D1(ExecState* exec)
       
  2685 {
       
  2686     JSValue thisValue = exec->hostThisValue();
       
  2687     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2688         return throwVMTypeError(exec);
       
  2689     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2690     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2691     ExceptionCode ec = 0;
       
  2692     unsigned target = exec->argument(0).toInt32(exec);
       
  2693     int level = exec->argument(1).toInt32(exec);
       
  2694     int xoffset = exec->argument(2).toInt32(exec);
       
  2695     int yoffset = exec->argument(3).toInt32(exec);
       
  2696     int width = exec->argument(4).toInt32(exec);
       
  2697     int height = exec->argument(5).toInt32(exec);
       
  2698     unsigned format = exec->argument(6).toInt32(exec);
       
  2699     unsigned type = exec->argument(7).toInt32(exec);
       
  2700     ArrayBufferView* pixels = toArrayBufferView(exec->argument(8));
       
  2701 
       
  2702     imp->texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, ec);
       
  2703     setDOMException(exec, ec);
       
  2704     return JSValue::encode(jsUndefined());
       
  2705 }
       
  2706 
       
  2707 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexSubImage2D2(ExecState* exec)
       
  2708 {
       
  2709     JSValue thisValue = exec->hostThisValue();
       
  2710     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2711         return throwVMTypeError(exec);
       
  2712     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2713     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2714     ExceptionCode ec = 0;
       
  2715     unsigned target = exec->argument(0).toInt32(exec);
       
  2716     int level = exec->argument(1).toInt32(exec);
       
  2717     int xoffset = exec->argument(2).toInt32(exec);
       
  2718     int yoffset = exec->argument(3).toInt32(exec);
       
  2719     unsigned format = exec->argument(4).toInt32(exec);
       
  2720     unsigned type = exec->argument(5).toInt32(exec);
       
  2721     ImageData* pixels = toImageData(exec->argument(6));
       
  2722 
       
  2723     imp->texSubImage2D(target, level, xoffset, yoffset, format, type, pixels, ec);
       
  2724     setDOMException(exec, ec);
       
  2725     return JSValue::encode(jsUndefined());
       
  2726 }
       
  2727 
       
  2728 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexSubImage2D3(ExecState* exec)
       
  2729 {
       
  2730     JSValue thisValue = exec->hostThisValue();
       
  2731     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2732         return throwVMTypeError(exec);
       
  2733     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2734     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2735     ExceptionCode ec = 0;
       
  2736     unsigned target = exec->argument(0).toInt32(exec);
       
  2737     int level = exec->argument(1).toInt32(exec);
       
  2738     int xoffset = exec->argument(2).toInt32(exec);
       
  2739     int yoffset = exec->argument(3).toInt32(exec);
       
  2740     unsigned format = exec->argument(4).toInt32(exec);
       
  2741     unsigned type = exec->argument(5).toInt32(exec);
       
  2742     HTMLImageElement* image = toHTMLImageElement(exec->argument(6));
       
  2743 
       
  2744     imp->texSubImage2D(target, level, xoffset, yoffset, format, type, image, ec);
       
  2745     setDOMException(exec, ec);
       
  2746     return JSValue::encode(jsUndefined());
       
  2747 }
       
  2748 
       
  2749 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexSubImage2D4(ExecState* exec)
       
  2750 {
       
  2751     JSValue thisValue = exec->hostThisValue();
       
  2752     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2753         return throwVMTypeError(exec);
       
  2754     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2755     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2756     ExceptionCode ec = 0;
       
  2757     unsigned target = exec->argument(0).toInt32(exec);
       
  2758     int level = exec->argument(1).toInt32(exec);
       
  2759     int xoffset = exec->argument(2).toInt32(exec);
       
  2760     int yoffset = exec->argument(3).toInt32(exec);
       
  2761     unsigned format = exec->argument(4).toInt32(exec);
       
  2762     unsigned type = exec->argument(5).toInt32(exec);
       
  2763     HTMLCanvasElement* canvas = toHTMLCanvasElement(exec->argument(6));
       
  2764 
       
  2765     imp->texSubImage2D(target, level, xoffset, yoffset, format, type, canvas, ec);
       
  2766     setDOMException(exec, ec);
       
  2767     return JSValue::encode(jsUndefined());
       
  2768 }
       
  2769 
       
  2770 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexSubImage2D5(ExecState* exec)
       
  2771 {
       
  2772     JSValue thisValue = exec->hostThisValue();
       
  2773     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2774         return throwVMTypeError(exec);
       
  2775     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2776     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2777     ExceptionCode ec = 0;
       
  2778     unsigned target = exec->argument(0).toInt32(exec);
       
  2779     int level = exec->argument(1).toInt32(exec);
       
  2780     int xoffset = exec->argument(2).toInt32(exec);
       
  2781     int yoffset = exec->argument(3).toInt32(exec);
       
  2782     unsigned format = exec->argument(4).toInt32(exec);
       
  2783     unsigned type = exec->argument(5).toInt32(exec);
       
  2784     HTMLVideoElement* video = toHTMLVideoElement(exec->argument(6));
       
  2785 
       
  2786     imp->texSubImage2D(target, level, xoffset, yoffset, format, type, video, ec);
       
  2787     setDOMException(exec, ec);
       
  2788     return JSValue::encode(jsUndefined());
       
  2789 }
       
  2790 
       
  2791 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexSubImage2D6(ExecState* exec)
       
  2792 {
       
  2793     JSValue thisValue = exec->hostThisValue();
       
  2794     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2795         return throwVMTypeError(exec);
       
  2796     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2797     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2798     ExceptionCode ec = 0;
       
  2799     unsigned target = exec->argument(0).toInt32(exec);
       
  2800     int level = exec->argument(1).toInt32(exec);
       
  2801     int xoffset = exec->argument(2).toInt32(exec);
       
  2802     int yoffset = exec->argument(3).toInt32(exec);
       
  2803     ImageData* pixels = toImageData(exec->argument(4));
       
  2804 
       
  2805     int argsCount = exec->argumentCount();
       
  2806     if (argsCount < 6) {
       
  2807         imp->texSubImage2D(target, level, xoffset, yoffset, pixels, ec);
       
  2808         setDOMException(exec, ec);
       
  2809         return JSValue::encode(jsUndefined());
       
  2810     }
       
  2811 
       
  2812     bool flipY = exec->argument(5).toBoolean(exec);
       
  2813     if (argsCount < 7) {
       
  2814         imp->texSubImage2D(target, level, xoffset, yoffset, pixels, flipY, ec);
       
  2815         setDOMException(exec, ec);
       
  2816         return JSValue::encode(jsUndefined());
       
  2817     }
       
  2818 
       
  2819     bool premultiplyAlpha = exec->argument(6).toBoolean(exec);
       
  2820 
       
  2821     imp->texSubImage2D(target, level, xoffset, yoffset, pixels, flipY, premultiplyAlpha, ec);
       
  2822     setDOMException(exec, ec);
       
  2823     return JSValue::encode(jsUndefined());
       
  2824 }
       
  2825 
       
  2826 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexSubImage2D7(ExecState* exec)
       
  2827 {
       
  2828     JSValue thisValue = exec->hostThisValue();
       
  2829     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2830         return throwVMTypeError(exec);
       
  2831     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2832     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2833     ExceptionCode ec = 0;
       
  2834     unsigned target = exec->argument(0).toInt32(exec);
       
  2835     int level = exec->argument(1).toInt32(exec);
       
  2836     int xoffset = exec->argument(2).toInt32(exec);
       
  2837     int yoffset = exec->argument(3).toInt32(exec);
       
  2838     HTMLImageElement* image = toHTMLImageElement(exec->argument(4));
       
  2839 
       
  2840     int argsCount = exec->argumentCount();
       
  2841     if (argsCount < 6) {
       
  2842         imp->texSubImage2D(target, level, xoffset, yoffset, image, ec);
       
  2843         setDOMException(exec, ec);
       
  2844         return JSValue::encode(jsUndefined());
       
  2845     }
       
  2846 
       
  2847     bool flipY = exec->argument(5).toBoolean(exec);
       
  2848     if (argsCount < 7) {
       
  2849         imp->texSubImage2D(target, level, xoffset, yoffset, image, flipY, ec);
       
  2850         setDOMException(exec, ec);
       
  2851         return JSValue::encode(jsUndefined());
       
  2852     }
       
  2853 
       
  2854     bool premultiplyAlpha = exec->argument(6).toBoolean(exec);
       
  2855 
       
  2856     imp->texSubImage2D(target, level, xoffset, yoffset, image, flipY, premultiplyAlpha, ec);
       
  2857     setDOMException(exec, ec);
       
  2858     return JSValue::encode(jsUndefined());
       
  2859 }
       
  2860 
       
  2861 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexSubImage2D8(ExecState* exec)
       
  2862 {
       
  2863     JSValue thisValue = exec->hostThisValue();
       
  2864     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2865         return throwVMTypeError(exec);
       
  2866     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2867     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2868     ExceptionCode ec = 0;
       
  2869     unsigned target = exec->argument(0).toInt32(exec);
       
  2870     int level = exec->argument(1).toInt32(exec);
       
  2871     int xoffset = exec->argument(2).toInt32(exec);
       
  2872     int yoffset = exec->argument(3).toInt32(exec);
       
  2873     HTMLCanvasElement* canvas = toHTMLCanvasElement(exec->argument(4));
       
  2874 
       
  2875     int argsCount = exec->argumentCount();
       
  2876     if (argsCount < 6) {
       
  2877         imp->texSubImage2D(target, level, xoffset, yoffset, canvas, ec);
       
  2878         setDOMException(exec, ec);
       
  2879         return JSValue::encode(jsUndefined());
       
  2880     }
       
  2881 
       
  2882     bool flipY = exec->argument(5).toBoolean(exec);
       
  2883     if (argsCount < 7) {
       
  2884         imp->texSubImage2D(target, level, xoffset, yoffset, canvas, flipY, ec);
       
  2885         setDOMException(exec, ec);
       
  2886         return JSValue::encode(jsUndefined());
       
  2887     }
       
  2888 
       
  2889     bool premultiplyAlpha = exec->argument(6).toBoolean(exec);
       
  2890 
       
  2891     imp->texSubImage2D(target, level, xoffset, yoffset, canvas, flipY, premultiplyAlpha, ec);
       
  2892     setDOMException(exec, ec);
       
  2893     return JSValue::encode(jsUndefined());
       
  2894 }
       
  2895 
       
  2896 static EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexSubImage2D9(ExecState* exec)
       
  2897 {
       
  2898     JSValue thisValue = exec->hostThisValue();
       
  2899     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2900         return throwVMTypeError(exec);
       
  2901     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2902     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2903     ExceptionCode ec = 0;
       
  2904     unsigned target = exec->argument(0).toInt32(exec);
       
  2905     int level = exec->argument(1).toInt32(exec);
       
  2906     int xoffset = exec->argument(2).toInt32(exec);
       
  2907     int yoffset = exec->argument(3).toInt32(exec);
       
  2908     HTMLVideoElement* video = toHTMLVideoElement(exec->argument(4));
       
  2909 
       
  2910     int argsCount = exec->argumentCount();
       
  2911     if (argsCount < 6) {
       
  2912         imp->texSubImage2D(target, level, xoffset, yoffset, video, ec);
       
  2913         setDOMException(exec, ec);
       
  2914         return JSValue::encode(jsUndefined());
       
  2915     }
       
  2916 
       
  2917     bool flipY = exec->argument(5).toBoolean(exec);
       
  2918     if (argsCount < 7) {
       
  2919         imp->texSubImage2D(target, level, xoffset, yoffset, video, flipY, ec);
       
  2920         setDOMException(exec, ec);
       
  2921         return JSValue::encode(jsUndefined());
       
  2922     }
       
  2923 
       
  2924     bool premultiplyAlpha = exec->argument(6).toBoolean(exec);
       
  2925 
       
  2926     imp->texSubImage2D(target, level, xoffset, yoffset, video, flipY, premultiplyAlpha, ec);
       
  2927     setDOMException(exec, ec);
       
  2928     return JSValue::encode(jsUndefined());
       
  2929 }
       
  2930 
       
  2931 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionTexSubImage2D(ExecState* exec)
       
  2932 {
       
  2933     if ((exec->argumentCount() == 9 && (exec->argument(8).isNull() || exec->argument(8).isObject() && asObject(exec->argument(8))->inherits(&JSArrayBufferView::s_info))))
       
  2934         return jsWebGLRenderingContextPrototypeFunctionTexSubImage2D1(exec);
       
  2935     if ((exec->argumentCount() == 7 && (exec->argument(6).isNull() || exec->argument(6).isObject() && asObject(exec->argument(6))->inherits(&JSImageData::s_info))))
       
  2936         return jsWebGLRenderingContextPrototypeFunctionTexSubImage2D2(exec);
       
  2937     if ((exec->argumentCount() == 7 && (exec->argument(6).isNull() || exec->argument(6).isObject() && asObject(exec->argument(6))->inherits(&JSHTMLImageElement::s_info))))
       
  2938         return jsWebGLRenderingContextPrototypeFunctionTexSubImage2D3(exec);
       
  2939     if ((exec->argumentCount() == 7 && (exec->argument(6).isNull() || exec->argument(6).isObject() && asObject(exec->argument(6))->inherits(&JSHTMLCanvasElement::s_info))))
       
  2940         return jsWebGLRenderingContextPrototypeFunctionTexSubImage2D4(exec);
       
  2941     if ((exec->argumentCount() == 7 && (exec->argument(6).isNull() || exec->argument(6).isObject() && asObject(exec->argument(6))->inherits(&JSHTMLVideoElement::s_info))))
       
  2942         return jsWebGLRenderingContextPrototypeFunctionTexSubImage2D5(exec);
       
  2943     if ((exec->argumentCount() == 5 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSImageData::s_info))) || (exec->argumentCount() == 6 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSImageData::s_info))) || (exec->argumentCount() == 7 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSImageData::s_info))))
       
  2944         return jsWebGLRenderingContextPrototypeFunctionTexSubImage2D6(exec);
       
  2945     if ((exec->argumentCount() == 5 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSHTMLImageElement::s_info))) || (exec->argumentCount() == 6 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSHTMLImageElement::s_info))) || (exec->argumentCount() == 7 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSHTMLImageElement::s_info))))
       
  2946         return jsWebGLRenderingContextPrototypeFunctionTexSubImage2D7(exec);
       
  2947     if ((exec->argumentCount() == 5 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSHTMLCanvasElement::s_info))) || (exec->argumentCount() == 6 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSHTMLCanvasElement::s_info))) || (exec->argumentCount() == 7 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSHTMLCanvasElement::s_info))))
       
  2948         return jsWebGLRenderingContextPrototypeFunctionTexSubImage2D8(exec);
       
  2949     if ((exec->argumentCount() == 5 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSHTMLVideoElement::s_info))) || (exec->argumentCount() == 6 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSHTMLVideoElement::s_info))) || (exec->argumentCount() == 7 && (exec->argument(4).isNull() || exec->argument(4).isObject() && asObject(exec->argument(4))->inherits(&JSHTMLVideoElement::s_info))))
       
  2950         return jsWebGLRenderingContextPrototypeFunctionTexSubImage2D9(exec);
       
  2951     return throwVMTypeError(exec);
       
  2952 }
       
  2953 
       
  2954 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform1f(ExecState* exec)
       
  2955 {
       
  2956     JSValue thisValue = exec->hostThisValue();
       
  2957     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2958         return throwVMTypeError(exec);
       
  2959     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2960     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2961     ExceptionCode ec = 0;
       
  2962     WebGLUniformLocation* location = toWebGLUniformLocation(exec->argument(0));
       
  2963     float x = exec->argument(1).toFloat(exec);
       
  2964 
       
  2965     imp->uniform1f(location, x, ec);
       
  2966     setDOMException(exec, ec);
       
  2967     return JSValue::encode(jsUndefined());
       
  2968 }
       
  2969 
       
  2970 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform1fv(ExecState* exec)
       
  2971 {
       
  2972     JSValue thisValue = exec->hostThisValue();
       
  2973     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2974         return throwVMTypeError(exec);
       
  2975     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2976     return JSValue::encode(castedThis->uniform1fv(exec));
       
  2977 }
       
  2978 
       
  2979 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform1i(ExecState* exec)
       
  2980 {
       
  2981     JSValue thisValue = exec->hostThisValue();
       
  2982     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2983         return throwVMTypeError(exec);
       
  2984     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  2985     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  2986     ExceptionCode ec = 0;
       
  2987     WebGLUniformLocation* location = toWebGLUniformLocation(exec->argument(0));
       
  2988     int x = exec->argument(1).toInt32(exec);
       
  2989 
       
  2990     imp->uniform1i(location, x, ec);
       
  2991     setDOMException(exec, ec);
       
  2992     return JSValue::encode(jsUndefined());
       
  2993 }
       
  2994 
       
  2995 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform1iv(ExecState* exec)
       
  2996 {
       
  2997     JSValue thisValue = exec->hostThisValue();
       
  2998     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  2999         return throwVMTypeError(exec);
       
  3000     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3001     return JSValue::encode(castedThis->uniform1iv(exec));
       
  3002 }
       
  3003 
       
  3004 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform2f(ExecState* exec)
       
  3005 {
       
  3006     JSValue thisValue = exec->hostThisValue();
       
  3007     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3008         return throwVMTypeError(exec);
       
  3009     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3010     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3011     ExceptionCode ec = 0;
       
  3012     WebGLUniformLocation* location = toWebGLUniformLocation(exec->argument(0));
       
  3013     float x = exec->argument(1).toFloat(exec);
       
  3014     float y = exec->argument(2).toFloat(exec);
       
  3015 
       
  3016     imp->uniform2f(location, x, y, ec);
       
  3017     setDOMException(exec, ec);
       
  3018     return JSValue::encode(jsUndefined());
       
  3019 }
       
  3020 
       
  3021 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform2fv(ExecState* exec)
       
  3022 {
       
  3023     JSValue thisValue = exec->hostThisValue();
       
  3024     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3025         return throwVMTypeError(exec);
       
  3026     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3027     return JSValue::encode(castedThis->uniform2fv(exec));
       
  3028 }
       
  3029 
       
  3030 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform2i(ExecState* exec)
       
  3031 {
       
  3032     JSValue thisValue = exec->hostThisValue();
       
  3033     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3034         return throwVMTypeError(exec);
       
  3035     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3036     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3037     ExceptionCode ec = 0;
       
  3038     WebGLUniformLocation* location = toWebGLUniformLocation(exec->argument(0));
       
  3039     int x = exec->argument(1).toInt32(exec);
       
  3040     int y = exec->argument(2).toInt32(exec);
       
  3041 
       
  3042     imp->uniform2i(location, x, y, ec);
       
  3043     setDOMException(exec, ec);
       
  3044     return JSValue::encode(jsUndefined());
       
  3045 }
       
  3046 
       
  3047 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform2iv(ExecState* exec)
       
  3048 {
       
  3049     JSValue thisValue = exec->hostThisValue();
       
  3050     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3051         return throwVMTypeError(exec);
       
  3052     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3053     return JSValue::encode(castedThis->uniform2iv(exec));
       
  3054 }
       
  3055 
       
  3056 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform3f(ExecState* exec)
       
  3057 {
       
  3058     JSValue thisValue = exec->hostThisValue();
       
  3059     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3060         return throwVMTypeError(exec);
       
  3061     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3062     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3063     ExceptionCode ec = 0;
       
  3064     WebGLUniformLocation* location = toWebGLUniformLocation(exec->argument(0));
       
  3065     float x = exec->argument(1).toFloat(exec);
       
  3066     float y = exec->argument(2).toFloat(exec);
       
  3067     float z = exec->argument(3).toFloat(exec);
       
  3068 
       
  3069     imp->uniform3f(location, x, y, z, ec);
       
  3070     setDOMException(exec, ec);
       
  3071     return JSValue::encode(jsUndefined());
       
  3072 }
       
  3073 
       
  3074 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform3fv(ExecState* exec)
       
  3075 {
       
  3076     JSValue thisValue = exec->hostThisValue();
       
  3077     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3078         return throwVMTypeError(exec);
       
  3079     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3080     return JSValue::encode(castedThis->uniform3fv(exec));
       
  3081 }
       
  3082 
       
  3083 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform3i(ExecState* exec)
       
  3084 {
       
  3085     JSValue thisValue = exec->hostThisValue();
       
  3086     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3087         return throwVMTypeError(exec);
       
  3088     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3089     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3090     ExceptionCode ec = 0;
       
  3091     WebGLUniformLocation* location = toWebGLUniformLocation(exec->argument(0));
       
  3092     int x = exec->argument(1).toInt32(exec);
       
  3093     int y = exec->argument(2).toInt32(exec);
       
  3094     int z = exec->argument(3).toInt32(exec);
       
  3095 
       
  3096     imp->uniform3i(location, x, y, z, ec);
       
  3097     setDOMException(exec, ec);
       
  3098     return JSValue::encode(jsUndefined());
       
  3099 }
       
  3100 
       
  3101 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform3iv(ExecState* exec)
       
  3102 {
       
  3103     JSValue thisValue = exec->hostThisValue();
       
  3104     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3105         return throwVMTypeError(exec);
       
  3106     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3107     return JSValue::encode(castedThis->uniform3iv(exec));
       
  3108 }
       
  3109 
       
  3110 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform4f(ExecState* exec)
       
  3111 {
       
  3112     JSValue thisValue = exec->hostThisValue();
       
  3113     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3114         return throwVMTypeError(exec);
       
  3115     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3116     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3117     ExceptionCode ec = 0;
       
  3118     WebGLUniformLocation* location = toWebGLUniformLocation(exec->argument(0));
       
  3119     float x = exec->argument(1).toFloat(exec);
       
  3120     float y = exec->argument(2).toFloat(exec);
       
  3121     float z = exec->argument(3).toFloat(exec);
       
  3122     float w = exec->argument(4).toFloat(exec);
       
  3123 
       
  3124     imp->uniform4f(location, x, y, z, w, ec);
       
  3125     setDOMException(exec, ec);
       
  3126     return JSValue::encode(jsUndefined());
       
  3127 }
       
  3128 
       
  3129 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform4fv(ExecState* exec)
       
  3130 {
       
  3131     JSValue thisValue = exec->hostThisValue();
       
  3132     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3133         return throwVMTypeError(exec);
       
  3134     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3135     return JSValue::encode(castedThis->uniform4fv(exec));
       
  3136 }
       
  3137 
       
  3138 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform4i(ExecState* exec)
       
  3139 {
       
  3140     JSValue thisValue = exec->hostThisValue();
       
  3141     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3142         return throwVMTypeError(exec);
       
  3143     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3144     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3145     ExceptionCode ec = 0;
       
  3146     WebGLUniformLocation* location = toWebGLUniformLocation(exec->argument(0));
       
  3147     int x = exec->argument(1).toInt32(exec);
       
  3148     int y = exec->argument(2).toInt32(exec);
       
  3149     int z = exec->argument(3).toInt32(exec);
       
  3150     int w = exec->argument(4).toInt32(exec);
       
  3151 
       
  3152     imp->uniform4i(location, x, y, z, w, ec);
       
  3153     setDOMException(exec, ec);
       
  3154     return JSValue::encode(jsUndefined());
       
  3155 }
       
  3156 
       
  3157 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniform4iv(ExecState* exec)
       
  3158 {
       
  3159     JSValue thisValue = exec->hostThisValue();
       
  3160     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3161         return throwVMTypeError(exec);
       
  3162     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3163     return JSValue::encode(castedThis->uniform4iv(exec));
       
  3164 }
       
  3165 
       
  3166 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniformMatrix2fv(ExecState* exec)
       
  3167 {
       
  3168     JSValue thisValue = exec->hostThisValue();
       
  3169     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3170         return throwVMTypeError(exec);
       
  3171     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3172     return JSValue::encode(castedThis->uniformMatrix2fv(exec));
       
  3173 }
       
  3174 
       
  3175 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniformMatrix3fv(ExecState* exec)
       
  3176 {
       
  3177     JSValue thisValue = exec->hostThisValue();
       
  3178     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3179         return throwVMTypeError(exec);
       
  3180     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3181     return JSValue::encode(castedThis->uniformMatrix3fv(exec));
       
  3182 }
       
  3183 
       
  3184 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUniformMatrix4fv(ExecState* exec)
       
  3185 {
       
  3186     JSValue thisValue = exec->hostThisValue();
       
  3187     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3188         return throwVMTypeError(exec);
       
  3189     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3190     return JSValue::encode(castedThis->uniformMatrix4fv(exec));
       
  3191 }
       
  3192 
       
  3193 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionUseProgram(ExecState* exec)
       
  3194 {
       
  3195     JSValue thisValue = exec->hostThisValue();
       
  3196     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3197         return throwVMTypeError(exec);
       
  3198     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3199     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3200     ExceptionCode ec = 0;
       
  3201     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  3202 
       
  3203     imp->useProgram(program, ec);
       
  3204     setDOMException(exec, ec);
       
  3205     return JSValue::encode(jsUndefined());
       
  3206 }
       
  3207 
       
  3208 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionValidateProgram(ExecState* exec)
       
  3209 {
       
  3210     JSValue thisValue = exec->hostThisValue();
       
  3211     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3212         return throwVMTypeError(exec);
       
  3213     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3214     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3215     ExceptionCode ec = 0;
       
  3216     WebGLProgram* program = toWebGLProgram(exec->argument(0));
       
  3217 
       
  3218     imp->validateProgram(program, ec);
       
  3219     setDOMException(exec, ec);
       
  3220     return JSValue::encode(jsUndefined());
       
  3221 }
       
  3222 
       
  3223 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionVertexAttrib1f(ExecState* exec)
       
  3224 {
       
  3225     JSValue thisValue = exec->hostThisValue();
       
  3226     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3227         return throwVMTypeError(exec);
       
  3228     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3229     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3230     unsigned indx = exec->argument(0).toInt32(exec);
       
  3231     float x = exec->argument(1).toFloat(exec);
       
  3232 
       
  3233     imp->vertexAttrib1f(indx, x);
       
  3234     return JSValue::encode(jsUndefined());
       
  3235 }
       
  3236 
       
  3237 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionVertexAttrib1fv(ExecState* exec)
       
  3238 {
       
  3239     JSValue thisValue = exec->hostThisValue();
       
  3240     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3241         return throwVMTypeError(exec);
       
  3242     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3243     return JSValue::encode(castedThis->vertexAttrib1fv(exec));
       
  3244 }
       
  3245 
       
  3246 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionVertexAttrib2f(ExecState* exec)
       
  3247 {
       
  3248     JSValue thisValue = exec->hostThisValue();
       
  3249     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3250         return throwVMTypeError(exec);
       
  3251     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3252     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3253     unsigned indx = exec->argument(0).toInt32(exec);
       
  3254     float x = exec->argument(1).toFloat(exec);
       
  3255     float y = exec->argument(2).toFloat(exec);
       
  3256 
       
  3257     imp->vertexAttrib2f(indx, x, y);
       
  3258     return JSValue::encode(jsUndefined());
       
  3259 }
       
  3260 
       
  3261 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionVertexAttrib2fv(ExecState* exec)
       
  3262 {
       
  3263     JSValue thisValue = exec->hostThisValue();
       
  3264     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3265         return throwVMTypeError(exec);
       
  3266     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3267     return JSValue::encode(castedThis->vertexAttrib2fv(exec));
       
  3268 }
       
  3269 
       
  3270 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionVertexAttrib3f(ExecState* exec)
       
  3271 {
       
  3272     JSValue thisValue = exec->hostThisValue();
       
  3273     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3274         return throwVMTypeError(exec);
       
  3275     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3276     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3277     unsigned indx = exec->argument(0).toInt32(exec);
       
  3278     float x = exec->argument(1).toFloat(exec);
       
  3279     float y = exec->argument(2).toFloat(exec);
       
  3280     float z = exec->argument(3).toFloat(exec);
       
  3281 
       
  3282     imp->vertexAttrib3f(indx, x, y, z);
       
  3283     return JSValue::encode(jsUndefined());
       
  3284 }
       
  3285 
       
  3286 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionVertexAttrib3fv(ExecState* exec)
       
  3287 {
       
  3288     JSValue thisValue = exec->hostThisValue();
       
  3289     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3290         return throwVMTypeError(exec);
       
  3291     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3292     return JSValue::encode(castedThis->vertexAttrib3fv(exec));
       
  3293 }
       
  3294 
       
  3295 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionVertexAttrib4f(ExecState* exec)
       
  3296 {
       
  3297     JSValue thisValue = exec->hostThisValue();
       
  3298     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3299         return throwVMTypeError(exec);
       
  3300     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3301     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3302     unsigned indx = exec->argument(0).toInt32(exec);
       
  3303     float x = exec->argument(1).toFloat(exec);
       
  3304     float y = exec->argument(2).toFloat(exec);
       
  3305     float z = exec->argument(3).toFloat(exec);
       
  3306     float w = exec->argument(4).toFloat(exec);
       
  3307 
       
  3308     imp->vertexAttrib4f(indx, x, y, z, w);
       
  3309     return JSValue::encode(jsUndefined());
       
  3310 }
       
  3311 
       
  3312 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionVertexAttrib4fv(ExecState* exec)
       
  3313 {
       
  3314     JSValue thisValue = exec->hostThisValue();
       
  3315     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3316         return throwVMTypeError(exec);
       
  3317     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3318     return JSValue::encode(castedThis->vertexAttrib4fv(exec));
       
  3319 }
       
  3320 
       
  3321 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionVertexAttribPointer(ExecState* exec)
       
  3322 {
       
  3323     JSValue thisValue = exec->hostThisValue();
       
  3324     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3325         return throwVMTypeError(exec);
       
  3326     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3327     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3328     ExceptionCode ec = 0;
       
  3329     unsigned indx = exec->argument(0).toInt32(exec);
       
  3330     int size = exec->argument(1).toInt32(exec);
       
  3331     unsigned type = exec->argument(2).toInt32(exec);
       
  3332     bool normalized = exec->argument(3).toBoolean(exec);
       
  3333     int stride = exec->argument(4).toInt32(exec);
       
  3334     unsigned offset = exec->argument(5).toInt32(exec);
       
  3335 
       
  3336     imp->vertexAttribPointer(indx, size, type, normalized, stride, offset, ec);
       
  3337     setDOMException(exec, ec);
       
  3338     return JSValue::encode(jsUndefined());
       
  3339 }
       
  3340 
       
  3341 EncodedJSValue JSC_HOST_CALL jsWebGLRenderingContextPrototypeFunctionViewport(ExecState* exec)
       
  3342 {
       
  3343     JSValue thisValue = exec->hostThisValue();
       
  3344     if (!thisValue.inherits(&JSWebGLRenderingContext::s_info))
       
  3345         return throwVMTypeError(exec);
       
  3346     JSWebGLRenderingContext* castedThis = static_cast<JSWebGLRenderingContext*>(asObject(thisValue));
       
  3347     WebGLRenderingContext* imp = static_cast<WebGLRenderingContext*>(castedThis->impl());
       
  3348     int x = exec->argument(0).toInt32(exec);
       
  3349     int y = exec->argument(1).toInt32(exec);
       
  3350     unsigned width = exec->argument(2).toInt32(exec);
       
  3351     unsigned height = exec->argument(3).toInt32(exec);
       
  3352 
       
  3353     imp->viewport(x, y, width, height);
       
  3354     return JSValue::encode(jsUndefined());
       
  3355 }
       
  3356 
       
  3357 // Constant getters
       
  3358 
       
  3359 JSValue jsWebGLRenderingContextDEPTH_BUFFER_BIT(ExecState* exec, JSValue, const Identifier&)
       
  3360 {
       
  3361     return jsNumber(exec, static_cast<int>(0x00000100));
       
  3362 }
       
  3363 
       
  3364 JSValue jsWebGLRenderingContextSTENCIL_BUFFER_BIT(ExecState* exec, JSValue, const Identifier&)
       
  3365 {
       
  3366     return jsNumber(exec, static_cast<int>(0x00000400));
       
  3367 }
       
  3368 
       
  3369 JSValue jsWebGLRenderingContextCOLOR_BUFFER_BIT(ExecState* exec, JSValue, const Identifier&)
       
  3370 {
       
  3371     return jsNumber(exec, static_cast<int>(0x00004000));
       
  3372 }
       
  3373 
       
  3374 JSValue jsWebGLRenderingContextFALSE(ExecState* exec, JSValue, const Identifier&)
       
  3375 {
       
  3376     return jsNumber(exec, static_cast<int>(0));
       
  3377 }
       
  3378 
       
  3379 JSValue jsWebGLRenderingContextTRUE(ExecState* exec, JSValue, const Identifier&)
       
  3380 {
       
  3381     return jsNumber(exec, static_cast<int>(1));
       
  3382 }
       
  3383 
       
  3384 JSValue jsWebGLRenderingContextPOINTS(ExecState* exec, JSValue, const Identifier&)
       
  3385 {
       
  3386     return jsNumber(exec, static_cast<int>(0x0000));
       
  3387 }
       
  3388 
       
  3389 JSValue jsWebGLRenderingContextLINES(ExecState* exec, JSValue, const Identifier&)
       
  3390 {
       
  3391     return jsNumber(exec, static_cast<int>(0x0001));
       
  3392 }
       
  3393 
       
  3394 JSValue jsWebGLRenderingContextLINE_LOOP(ExecState* exec, JSValue, const Identifier&)
       
  3395 {
       
  3396     return jsNumber(exec, static_cast<int>(0x0002));
       
  3397 }
       
  3398 
       
  3399 JSValue jsWebGLRenderingContextLINE_STRIP(ExecState* exec, JSValue, const Identifier&)
       
  3400 {
       
  3401     return jsNumber(exec, static_cast<int>(0x0003));
       
  3402 }
       
  3403 
       
  3404 JSValue jsWebGLRenderingContextTRIANGLES(ExecState* exec, JSValue, const Identifier&)
       
  3405 {
       
  3406     return jsNumber(exec, static_cast<int>(0x0004));
       
  3407 }
       
  3408 
       
  3409 JSValue jsWebGLRenderingContextTRIANGLE_STRIP(ExecState* exec, JSValue, const Identifier&)
       
  3410 {
       
  3411     return jsNumber(exec, static_cast<int>(0x0005));
       
  3412 }
       
  3413 
       
  3414 JSValue jsWebGLRenderingContextTRIANGLE_FAN(ExecState* exec, JSValue, const Identifier&)
       
  3415 {
       
  3416     return jsNumber(exec, static_cast<int>(0x0006));
       
  3417 }
       
  3418 
       
  3419 JSValue jsWebGLRenderingContextZERO(ExecState* exec, JSValue, const Identifier&)
       
  3420 {
       
  3421     return jsNumber(exec, static_cast<int>(0));
       
  3422 }
       
  3423 
       
  3424 JSValue jsWebGLRenderingContextONE(ExecState* exec, JSValue, const Identifier&)
       
  3425 {
       
  3426     return jsNumber(exec, static_cast<int>(1));
       
  3427 }
       
  3428 
       
  3429 JSValue jsWebGLRenderingContextSRC_COLOR(ExecState* exec, JSValue, const Identifier&)
       
  3430 {
       
  3431     return jsNumber(exec, static_cast<int>(0x0300));
       
  3432 }
       
  3433 
       
  3434 JSValue jsWebGLRenderingContextONE_MINUS_SRC_COLOR(ExecState* exec, JSValue, const Identifier&)
       
  3435 {
       
  3436     return jsNumber(exec, static_cast<int>(0x0301));
       
  3437 }
       
  3438 
       
  3439 JSValue jsWebGLRenderingContextSRC_ALPHA(ExecState* exec, JSValue, const Identifier&)
       
  3440 {
       
  3441     return jsNumber(exec, static_cast<int>(0x0302));
       
  3442 }
       
  3443 
       
  3444 JSValue jsWebGLRenderingContextONE_MINUS_SRC_ALPHA(ExecState* exec, JSValue, const Identifier&)
       
  3445 {
       
  3446     return jsNumber(exec, static_cast<int>(0x0303));
       
  3447 }
       
  3448 
       
  3449 JSValue jsWebGLRenderingContextDST_ALPHA(ExecState* exec, JSValue, const Identifier&)
       
  3450 {
       
  3451     return jsNumber(exec, static_cast<int>(0x0304));
       
  3452 }
       
  3453 
       
  3454 JSValue jsWebGLRenderingContextONE_MINUS_DST_ALPHA(ExecState* exec, JSValue, const Identifier&)
       
  3455 {
       
  3456     return jsNumber(exec, static_cast<int>(0x0305));
       
  3457 }
       
  3458 
       
  3459 JSValue jsWebGLRenderingContextDST_COLOR(ExecState* exec, JSValue, const Identifier&)
       
  3460 {
       
  3461     return jsNumber(exec, static_cast<int>(0x0306));
       
  3462 }
       
  3463 
       
  3464 JSValue jsWebGLRenderingContextONE_MINUS_DST_COLOR(ExecState* exec, JSValue, const Identifier&)
       
  3465 {
       
  3466     return jsNumber(exec, static_cast<int>(0x0307));
       
  3467 }
       
  3468 
       
  3469 JSValue jsWebGLRenderingContextSRC_ALPHA_SATURATE(ExecState* exec, JSValue, const Identifier&)
       
  3470 {
       
  3471     return jsNumber(exec, static_cast<int>(0x0308));
       
  3472 }
       
  3473 
       
  3474 JSValue jsWebGLRenderingContextFUNC_ADD(ExecState* exec, JSValue, const Identifier&)
       
  3475 {
       
  3476     return jsNumber(exec, static_cast<int>(0x8006));
       
  3477 }
       
  3478 
       
  3479 JSValue jsWebGLRenderingContextBLEND_EQUATION(ExecState* exec, JSValue, const Identifier&)
       
  3480 {
       
  3481     return jsNumber(exec, static_cast<int>(0x8009));
       
  3482 }
       
  3483 
       
  3484 JSValue jsWebGLRenderingContextBLEND_EQUATION_RGB(ExecState* exec, JSValue, const Identifier&)
       
  3485 {
       
  3486     return jsNumber(exec, static_cast<int>(0x8009));
       
  3487 }
       
  3488 
       
  3489 JSValue jsWebGLRenderingContextBLEND_EQUATION_ALPHA(ExecState* exec, JSValue, const Identifier&)
       
  3490 {
       
  3491     return jsNumber(exec, static_cast<int>(0x883D));
       
  3492 }
       
  3493 
       
  3494 JSValue jsWebGLRenderingContextFUNC_SUBTRACT(ExecState* exec, JSValue, const Identifier&)
       
  3495 {
       
  3496     return jsNumber(exec, static_cast<int>(0x800A));
       
  3497 }
       
  3498 
       
  3499 JSValue jsWebGLRenderingContextFUNC_REVERSE_SUBTRACT(ExecState* exec, JSValue, const Identifier&)
       
  3500 {
       
  3501     return jsNumber(exec, static_cast<int>(0x800B));
       
  3502 }
       
  3503 
       
  3504 JSValue jsWebGLRenderingContextBLEND_DST_RGB(ExecState* exec, JSValue, const Identifier&)
       
  3505 {
       
  3506     return jsNumber(exec, static_cast<int>(0x80C8));
       
  3507 }
       
  3508 
       
  3509 JSValue jsWebGLRenderingContextBLEND_SRC_RGB(ExecState* exec, JSValue, const Identifier&)
       
  3510 {
       
  3511     return jsNumber(exec, static_cast<int>(0x80C9));
       
  3512 }
       
  3513 
       
  3514 JSValue jsWebGLRenderingContextBLEND_DST_ALPHA(ExecState* exec, JSValue, const Identifier&)
       
  3515 {
       
  3516     return jsNumber(exec, static_cast<int>(0x80CA));
       
  3517 }
       
  3518 
       
  3519 JSValue jsWebGLRenderingContextBLEND_SRC_ALPHA(ExecState* exec, JSValue, const Identifier&)
       
  3520 {
       
  3521     return jsNumber(exec, static_cast<int>(0x80CB));
       
  3522 }
       
  3523 
       
  3524 JSValue jsWebGLRenderingContextCONSTANT_COLOR(ExecState* exec, JSValue, const Identifier&)
       
  3525 {
       
  3526     return jsNumber(exec, static_cast<int>(0x8001));
       
  3527 }
       
  3528 
       
  3529 JSValue jsWebGLRenderingContextONE_MINUS_CONSTANT_COLOR(ExecState* exec, JSValue, const Identifier&)
       
  3530 {
       
  3531     return jsNumber(exec, static_cast<int>(0x8002));
       
  3532 }
       
  3533 
       
  3534 JSValue jsWebGLRenderingContextCONSTANT_ALPHA(ExecState* exec, JSValue, const Identifier&)
       
  3535 {
       
  3536     return jsNumber(exec, static_cast<int>(0x8003));
       
  3537 }
       
  3538 
       
  3539 JSValue jsWebGLRenderingContextONE_MINUS_CONSTANT_ALPHA(ExecState* exec, JSValue, const Identifier&)
       
  3540 {
       
  3541     return jsNumber(exec, static_cast<int>(0x8004));
       
  3542 }
       
  3543 
       
  3544 JSValue jsWebGLRenderingContextBLEND_COLOR(ExecState* exec, JSValue, const Identifier&)
       
  3545 {
       
  3546     return jsNumber(exec, static_cast<int>(0x8005));
       
  3547 }
       
  3548 
       
  3549 JSValue jsWebGLRenderingContextARRAY_BUFFER(ExecState* exec, JSValue, const Identifier&)
       
  3550 {
       
  3551     return jsNumber(exec, static_cast<int>(0x8892));
       
  3552 }
       
  3553 
       
  3554 JSValue jsWebGLRenderingContextELEMENT_ARRAY_BUFFER(ExecState* exec, JSValue, const Identifier&)
       
  3555 {
       
  3556     return jsNumber(exec, static_cast<int>(0x8893));
       
  3557 }
       
  3558 
       
  3559 JSValue jsWebGLRenderingContextARRAY_BUFFER_BINDING(ExecState* exec, JSValue, const Identifier&)
       
  3560 {
       
  3561     return jsNumber(exec, static_cast<int>(0x8894));
       
  3562 }
       
  3563 
       
  3564 JSValue jsWebGLRenderingContextELEMENT_ARRAY_BUFFER_BINDING(ExecState* exec, JSValue, const Identifier&)
       
  3565 {
       
  3566     return jsNumber(exec, static_cast<int>(0x8895));
       
  3567 }
       
  3568 
       
  3569 JSValue jsWebGLRenderingContextSTREAM_DRAW(ExecState* exec, JSValue, const Identifier&)
       
  3570 {
       
  3571     return jsNumber(exec, static_cast<int>(0x88E0));
       
  3572 }
       
  3573 
       
  3574 JSValue jsWebGLRenderingContextSTATIC_DRAW(ExecState* exec, JSValue, const Identifier&)
       
  3575 {
       
  3576     return jsNumber(exec, static_cast<int>(0x88E4));
       
  3577 }
       
  3578 
       
  3579 JSValue jsWebGLRenderingContextDYNAMIC_DRAW(ExecState* exec, JSValue, const Identifier&)
       
  3580 {
       
  3581     return jsNumber(exec, static_cast<int>(0x88E8));
       
  3582 }
       
  3583 
       
  3584 JSValue jsWebGLRenderingContextBUFFER_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  3585 {
       
  3586     return jsNumber(exec, static_cast<int>(0x8764));
       
  3587 }
       
  3588 
       
  3589 JSValue jsWebGLRenderingContextBUFFER_USAGE(ExecState* exec, JSValue, const Identifier&)
       
  3590 {
       
  3591     return jsNumber(exec, static_cast<int>(0x8765));
       
  3592 }
       
  3593 
       
  3594 JSValue jsWebGLRenderingContextCURRENT_VERTEX_ATTRIB(ExecState* exec, JSValue, const Identifier&)
       
  3595 {
       
  3596     return jsNumber(exec, static_cast<int>(0x8626));
       
  3597 }
       
  3598 
       
  3599 JSValue jsWebGLRenderingContextFRONT(ExecState* exec, JSValue, const Identifier&)
       
  3600 {
       
  3601     return jsNumber(exec, static_cast<int>(0x0404));
       
  3602 }
       
  3603 
       
  3604 JSValue jsWebGLRenderingContextBACK(ExecState* exec, JSValue, const Identifier&)
       
  3605 {
       
  3606     return jsNumber(exec, static_cast<int>(0x0405));
       
  3607 }
       
  3608 
       
  3609 JSValue jsWebGLRenderingContextFRONT_AND_BACK(ExecState* exec, JSValue, const Identifier&)
       
  3610 {
       
  3611     return jsNumber(exec, static_cast<int>(0x0408));
       
  3612 }
       
  3613 
       
  3614 JSValue jsWebGLRenderingContextTEXTURE_2D(ExecState* exec, JSValue, const Identifier&)
       
  3615 {
       
  3616     return jsNumber(exec, static_cast<int>(0x0DE1));
       
  3617 }
       
  3618 
       
  3619 JSValue jsWebGLRenderingContextCULL_FACE(ExecState* exec, JSValue, const Identifier&)
       
  3620 {
       
  3621     return jsNumber(exec, static_cast<int>(0x0B44));
       
  3622 }
       
  3623 
       
  3624 JSValue jsWebGLRenderingContextBLEND(ExecState* exec, JSValue, const Identifier&)
       
  3625 {
       
  3626     return jsNumber(exec, static_cast<int>(0x0BE2));
       
  3627 }
       
  3628 
       
  3629 JSValue jsWebGLRenderingContextDITHER(ExecState* exec, JSValue, const Identifier&)
       
  3630 {
       
  3631     return jsNumber(exec, static_cast<int>(0x0BD0));
       
  3632 }
       
  3633 
       
  3634 JSValue jsWebGLRenderingContextSTENCIL_TEST(ExecState* exec, JSValue, const Identifier&)
       
  3635 {
       
  3636     return jsNumber(exec, static_cast<int>(0x0B90));
       
  3637 }
       
  3638 
       
  3639 JSValue jsWebGLRenderingContextDEPTH_TEST(ExecState* exec, JSValue, const Identifier&)
       
  3640 {
       
  3641     return jsNumber(exec, static_cast<int>(0x0B71));
       
  3642 }
       
  3643 
       
  3644 JSValue jsWebGLRenderingContextSCISSOR_TEST(ExecState* exec, JSValue, const Identifier&)
       
  3645 {
       
  3646     return jsNumber(exec, static_cast<int>(0x0C11));
       
  3647 }
       
  3648 
       
  3649 JSValue jsWebGLRenderingContextPOLYGON_OFFSET_FILL(ExecState* exec, JSValue, const Identifier&)
       
  3650 {
       
  3651     return jsNumber(exec, static_cast<int>(0x8037));
       
  3652 }
       
  3653 
       
  3654 JSValue jsWebGLRenderingContextSAMPLE_ALPHA_TO_COVERAGE(ExecState* exec, JSValue, const Identifier&)
       
  3655 {
       
  3656     return jsNumber(exec, static_cast<int>(0x809E));
       
  3657 }
       
  3658 
       
  3659 JSValue jsWebGLRenderingContextSAMPLE_COVERAGE(ExecState* exec, JSValue, const Identifier&)
       
  3660 {
       
  3661     return jsNumber(exec, static_cast<int>(0x80A0));
       
  3662 }
       
  3663 
       
  3664 JSValue jsWebGLRenderingContextNO_ERROR(ExecState* exec, JSValue, const Identifier&)
       
  3665 {
       
  3666     return jsNumber(exec, static_cast<int>(0));
       
  3667 }
       
  3668 
       
  3669 JSValue jsWebGLRenderingContextINVALID_ENUM(ExecState* exec, JSValue, const Identifier&)
       
  3670 {
       
  3671     return jsNumber(exec, static_cast<int>(0x0500));
       
  3672 }
       
  3673 
       
  3674 JSValue jsWebGLRenderingContextINVALID_VALUE(ExecState* exec, JSValue, const Identifier&)
       
  3675 {
       
  3676     return jsNumber(exec, static_cast<int>(0x0501));
       
  3677 }
       
  3678 
       
  3679 JSValue jsWebGLRenderingContextINVALID_OPERATION(ExecState* exec, JSValue, const Identifier&)
       
  3680 {
       
  3681     return jsNumber(exec, static_cast<int>(0x0502));
       
  3682 }
       
  3683 
       
  3684 JSValue jsWebGLRenderingContextOUT_OF_MEMORY(ExecState* exec, JSValue, const Identifier&)
       
  3685 {
       
  3686     return jsNumber(exec, static_cast<int>(0x0505));
       
  3687 }
       
  3688 
       
  3689 JSValue jsWebGLRenderingContextCW(ExecState* exec, JSValue, const Identifier&)
       
  3690 {
       
  3691     return jsNumber(exec, static_cast<int>(0x0900));
       
  3692 }
       
  3693 
       
  3694 JSValue jsWebGLRenderingContextCCW(ExecState* exec, JSValue, const Identifier&)
       
  3695 {
       
  3696     return jsNumber(exec, static_cast<int>(0x0901));
       
  3697 }
       
  3698 
       
  3699 JSValue jsWebGLRenderingContextLINE_WIDTH(ExecState* exec, JSValue, const Identifier&)
       
  3700 {
       
  3701     return jsNumber(exec, static_cast<int>(0x0B21));
       
  3702 }
       
  3703 
       
  3704 JSValue jsWebGLRenderingContextALIASED_POINT_SIZE_RANGE(ExecState* exec, JSValue, const Identifier&)
       
  3705 {
       
  3706     return jsNumber(exec, static_cast<int>(0x846D));
       
  3707 }
       
  3708 
       
  3709 JSValue jsWebGLRenderingContextALIASED_LINE_WIDTH_RANGE(ExecState* exec, JSValue, const Identifier&)
       
  3710 {
       
  3711     return jsNumber(exec, static_cast<int>(0x846E));
       
  3712 }
       
  3713 
       
  3714 JSValue jsWebGLRenderingContextCULL_FACE_MODE(ExecState* exec, JSValue, const Identifier&)
       
  3715 {
       
  3716     return jsNumber(exec, static_cast<int>(0x0B45));
       
  3717 }
       
  3718 
       
  3719 JSValue jsWebGLRenderingContextFRONT_FACE(ExecState* exec, JSValue, const Identifier&)
       
  3720 {
       
  3721     return jsNumber(exec, static_cast<int>(0x0B46));
       
  3722 }
       
  3723 
       
  3724 JSValue jsWebGLRenderingContextDEPTH_RANGE(ExecState* exec, JSValue, const Identifier&)
       
  3725 {
       
  3726     return jsNumber(exec, static_cast<int>(0x0B70));
       
  3727 }
       
  3728 
       
  3729 JSValue jsWebGLRenderingContextDEPTH_WRITEMASK(ExecState* exec, JSValue, const Identifier&)
       
  3730 {
       
  3731     return jsNumber(exec, static_cast<int>(0x0B72));
       
  3732 }
       
  3733 
       
  3734 JSValue jsWebGLRenderingContextDEPTH_CLEAR_VALUE(ExecState* exec, JSValue, const Identifier&)
       
  3735 {
       
  3736     return jsNumber(exec, static_cast<int>(0x0B73));
       
  3737 }
       
  3738 
       
  3739 JSValue jsWebGLRenderingContextDEPTH_FUNC(ExecState* exec, JSValue, const Identifier&)
       
  3740 {
       
  3741     return jsNumber(exec, static_cast<int>(0x0B74));
       
  3742 }
       
  3743 
       
  3744 JSValue jsWebGLRenderingContextSTENCIL_CLEAR_VALUE(ExecState* exec, JSValue, const Identifier&)
       
  3745 {
       
  3746     return jsNumber(exec, static_cast<int>(0x0B91));
       
  3747 }
       
  3748 
       
  3749 JSValue jsWebGLRenderingContextSTENCIL_FUNC(ExecState* exec, JSValue, const Identifier&)
       
  3750 {
       
  3751     return jsNumber(exec, static_cast<int>(0x0B92));
       
  3752 }
       
  3753 
       
  3754 JSValue jsWebGLRenderingContextSTENCIL_FAIL(ExecState* exec, JSValue, const Identifier&)
       
  3755 {
       
  3756     return jsNumber(exec, static_cast<int>(0x0B94));
       
  3757 }
       
  3758 
       
  3759 JSValue jsWebGLRenderingContextSTENCIL_PASS_DEPTH_FAIL(ExecState* exec, JSValue, const Identifier&)
       
  3760 {
       
  3761     return jsNumber(exec, static_cast<int>(0x0B95));
       
  3762 }
       
  3763 
       
  3764 JSValue jsWebGLRenderingContextSTENCIL_PASS_DEPTH_PASS(ExecState* exec, JSValue, const Identifier&)
       
  3765 {
       
  3766     return jsNumber(exec, static_cast<int>(0x0B96));
       
  3767 }
       
  3768 
       
  3769 JSValue jsWebGLRenderingContextSTENCIL_REF(ExecState* exec, JSValue, const Identifier&)
       
  3770 {
       
  3771     return jsNumber(exec, static_cast<int>(0x0B97));
       
  3772 }
       
  3773 
       
  3774 JSValue jsWebGLRenderingContextSTENCIL_VALUE_MASK(ExecState* exec, JSValue, const Identifier&)
       
  3775 {
       
  3776     return jsNumber(exec, static_cast<int>(0x0B93));
       
  3777 }
       
  3778 
       
  3779 JSValue jsWebGLRenderingContextSTENCIL_WRITEMASK(ExecState* exec, JSValue, const Identifier&)
       
  3780 {
       
  3781     return jsNumber(exec, static_cast<int>(0x0B98));
       
  3782 }
       
  3783 
       
  3784 JSValue jsWebGLRenderingContextSTENCIL_BACK_FUNC(ExecState* exec, JSValue, const Identifier&)
       
  3785 {
       
  3786     return jsNumber(exec, static_cast<int>(0x8800));
       
  3787 }
       
  3788 
       
  3789 JSValue jsWebGLRenderingContextSTENCIL_BACK_FAIL(ExecState* exec, JSValue, const Identifier&)
       
  3790 {
       
  3791     return jsNumber(exec, static_cast<int>(0x8801));
       
  3792 }
       
  3793 
       
  3794 JSValue jsWebGLRenderingContextSTENCIL_BACK_PASS_DEPTH_FAIL(ExecState* exec, JSValue, const Identifier&)
       
  3795 {
       
  3796     return jsNumber(exec, static_cast<int>(0x8802));
       
  3797 }
       
  3798 
       
  3799 JSValue jsWebGLRenderingContextSTENCIL_BACK_PASS_DEPTH_PASS(ExecState* exec, JSValue, const Identifier&)
       
  3800 {
       
  3801     return jsNumber(exec, static_cast<int>(0x8803));
       
  3802 }
       
  3803 
       
  3804 JSValue jsWebGLRenderingContextSTENCIL_BACK_REF(ExecState* exec, JSValue, const Identifier&)
       
  3805 {
       
  3806     return jsNumber(exec, static_cast<int>(0x8CA3));
       
  3807 }
       
  3808 
       
  3809 JSValue jsWebGLRenderingContextSTENCIL_BACK_VALUE_MASK(ExecState* exec, JSValue, const Identifier&)
       
  3810 {
       
  3811     return jsNumber(exec, static_cast<int>(0x8CA4));
       
  3812 }
       
  3813 
       
  3814 JSValue jsWebGLRenderingContextSTENCIL_BACK_WRITEMASK(ExecState* exec, JSValue, const Identifier&)
       
  3815 {
       
  3816     return jsNumber(exec, static_cast<int>(0x8CA5));
       
  3817 }
       
  3818 
       
  3819 JSValue jsWebGLRenderingContextVIEWPORT(ExecState* exec, JSValue, const Identifier&)
       
  3820 {
       
  3821     return jsNumber(exec, static_cast<int>(0x0BA2));
       
  3822 }
       
  3823 
       
  3824 JSValue jsWebGLRenderingContextSCISSOR_BOX(ExecState* exec, JSValue, const Identifier&)
       
  3825 {
       
  3826     return jsNumber(exec, static_cast<int>(0x0C10));
       
  3827 }
       
  3828 
       
  3829 JSValue jsWebGLRenderingContextCOLOR_CLEAR_VALUE(ExecState* exec, JSValue, const Identifier&)
       
  3830 {
       
  3831     return jsNumber(exec, static_cast<int>(0x0C22));
       
  3832 }
       
  3833 
       
  3834 JSValue jsWebGLRenderingContextCOLOR_WRITEMASK(ExecState* exec, JSValue, const Identifier&)
       
  3835 {
       
  3836     return jsNumber(exec, static_cast<int>(0x0C23));
       
  3837 }
       
  3838 
       
  3839 JSValue jsWebGLRenderingContextUNPACK_ALIGNMENT(ExecState* exec, JSValue, const Identifier&)
       
  3840 {
       
  3841     return jsNumber(exec, static_cast<int>(0x0CF5));
       
  3842 }
       
  3843 
       
  3844 JSValue jsWebGLRenderingContextPACK_ALIGNMENT(ExecState* exec, JSValue, const Identifier&)
       
  3845 {
       
  3846     return jsNumber(exec, static_cast<int>(0x0D05));
       
  3847 }
       
  3848 
       
  3849 JSValue jsWebGLRenderingContextMAX_TEXTURE_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  3850 {
       
  3851     return jsNumber(exec, static_cast<int>(0x0D33));
       
  3852 }
       
  3853 
       
  3854 JSValue jsWebGLRenderingContextMAX_VIEWPORT_DIMS(ExecState* exec, JSValue, const Identifier&)
       
  3855 {
       
  3856     return jsNumber(exec, static_cast<int>(0x0D3A));
       
  3857 }
       
  3858 
       
  3859 JSValue jsWebGLRenderingContextSUBPIXEL_BITS(ExecState* exec, JSValue, const Identifier&)
       
  3860 {
       
  3861     return jsNumber(exec, static_cast<int>(0x0D50));
       
  3862 }
       
  3863 
       
  3864 JSValue jsWebGLRenderingContextRED_BITS(ExecState* exec, JSValue, const Identifier&)
       
  3865 {
       
  3866     return jsNumber(exec, static_cast<int>(0x0D52));
       
  3867 }
       
  3868 
       
  3869 JSValue jsWebGLRenderingContextGREEN_BITS(ExecState* exec, JSValue, const Identifier&)
       
  3870 {
       
  3871     return jsNumber(exec, static_cast<int>(0x0D53));
       
  3872 }
       
  3873 
       
  3874 JSValue jsWebGLRenderingContextBLUE_BITS(ExecState* exec, JSValue, const Identifier&)
       
  3875 {
       
  3876     return jsNumber(exec, static_cast<int>(0x0D54));
       
  3877 }
       
  3878 
       
  3879 JSValue jsWebGLRenderingContextALPHA_BITS(ExecState* exec, JSValue, const Identifier&)
       
  3880 {
       
  3881     return jsNumber(exec, static_cast<int>(0x0D55));
       
  3882 }
       
  3883 
       
  3884 JSValue jsWebGLRenderingContextDEPTH_BITS(ExecState* exec, JSValue, const Identifier&)
       
  3885 {
       
  3886     return jsNumber(exec, static_cast<int>(0x0D56));
       
  3887 }
       
  3888 
       
  3889 JSValue jsWebGLRenderingContextSTENCIL_BITS(ExecState* exec, JSValue, const Identifier&)
       
  3890 {
       
  3891     return jsNumber(exec, static_cast<int>(0x0D57));
       
  3892 }
       
  3893 
       
  3894 JSValue jsWebGLRenderingContextPOLYGON_OFFSET_UNITS(ExecState* exec, JSValue, const Identifier&)
       
  3895 {
       
  3896     return jsNumber(exec, static_cast<int>(0x2A00));
       
  3897 }
       
  3898 
       
  3899 JSValue jsWebGLRenderingContextPOLYGON_OFFSET_FACTOR(ExecState* exec, JSValue, const Identifier&)
       
  3900 {
       
  3901     return jsNumber(exec, static_cast<int>(0x8038));
       
  3902 }
       
  3903 
       
  3904 JSValue jsWebGLRenderingContextTEXTURE_BINDING_2D(ExecState* exec, JSValue, const Identifier&)
       
  3905 {
       
  3906     return jsNumber(exec, static_cast<int>(0x8069));
       
  3907 }
       
  3908 
       
  3909 JSValue jsWebGLRenderingContextSAMPLE_BUFFERS(ExecState* exec, JSValue, const Identifier&)
       
  3910 {
       
  3911     return jsNumber(exec, static_cast<int>(0x80A8));
       
  3912 }
       
  3913 
       
  3914 JSValue jsWebGLRenderingContextSAMPLES(ExecState* exec, JSValue, const Identifier&)
       
  3915 {
       
  3916     return jsNumber(exec, static_cast<int>(0x80A9));
       
  3917 }
       
  3918 
       
  3919 JSValue jsWebGLRenderingContextSAMPLE_COVERAGE_VALUE(ExecState* exec, JSValue, const Identifier&)
       
  3920 {
       
  3921     return jsNumber(exec, static_cast<int>(0x80AA));
       
  3922 }
       
  3923 
       
  3924 JSValue jsWebGLRenderingContextSAMPLE_COVERAGE_INVERT(ExecState* exec, JSValue, const Identifier&)
       
  3925 {
       
  3926     return jsNumber(exec, static_cast<int>(0x80AB));
       
  3927 }
       
  3928 
       
  3929 JSValue jsWebGLRenderingContextNUM_COMPRESSED_TEXTURE_FORMATS(ExecState* exec, JSValue, const Identifier&)
       
  3930 {
       
  3931     return jsNumber(exec, static_cast<int>(0x86A2));
       
  3932 }
       
  3933 
       
  3934 JSValue jsWebGLRenderingContextCOMPRESSED_TEXTURE_FORMATS(ExecState* exec, JSValue, const Identifier&)
       
  3935 {
       
  3936     return jsNumber(exec, static_cast<int>(0x86A3));
       
  3937 }
       
  3938 
       
  3939 JSValue jsWebGLRenderingContextDONT_CARE(ExecState* exec, JSValue, const Identifier&)
       
  3940 {
       
  3941     return jsNumber(exec, static_cast<int>(0x1100));
       
  3942 }
       
  3943 
       
  3944 JSValue jsWebGLRenderingContextFASTEST(ExecState* exec, JSValue, const Identifier&)
       
  3945 {
       
  3946     return jsNumber(exec, static_cast<int>(0x1101));
       
  3947 }
       
  3948 
       
  3949 JSValue jsWebGLRenderingContextNICEST(ExecState* exec, JSValue, const Identifier&)
       
  3950 {
       
  3951     return jsNumber(exec, static_cast<int>(0x1102));
       
  3952 }
       
  3953 
       
  3954 JSValue jsWebGLRenderingContextGENERATE_MIPMAP_HINT(ExecState* exec, JSValue, const Identifier&)
       
  3955 {
       
  3956     return jsNumber(exec, static_cast<int>(0x8192));
       
  3957 }
       
  3958 
       
  3959 JSValue jsWebGLRenderingContextBYTE(ExecState* exec, JSValue, const Identifier&)
       
  3960 {
       
  3961     return jsNumber(exec, static_cast<int>(0x1400));
       
  3962 }
       
  3963 
       
  3964 JSValue jsWebGLRenderingContextUNSIGNED_BYTE(ExecState* exec, JSValue, const Identifier&)
       
  3965 {
       
  3966     return jsNumber(exec, static_cast<int>(0x1401));
       
  3967 }
       
  3968 
       
  3969 JSValue jsWebGLRenderingContextSHORT(ExecState* exec, JSValue, const Identifier&)
       
  3970 {
       
  3971     return jsNumber(exec, static_cast<int>(0x1402));
       
  3972 }
       
  3973 
       
  3974 JSValue jsWebGLRenderingContextUNSIGNED_SHORT(ExecState* exec, JSValue, const Identifier&)
       
  3975 {
       
  3976     return jsNumber(exec, static_cast<int>(0x1403));
       
  3977 }
       
  3978 
       
  3979 JSValue jsWebGLRenderingContextINT(ExecState* exec, JSValue, const Identifier&)
       
  3980 {
       
  3981     return jsNumber(exec, static_cast<int>(0x1404));
       
  3982 }
       
  3983 
       
  3984 JSValue jsWebGLRenderingContextUNSIGNED_INT(ExecState* exec, JSValue, const Identifier&)
       
  3985 {
       
  3986     return jsNumber(exec, static_cast<int>(0x1405));
       
  3987 }
       
  3988 
       
  3989 JSValue jsWebGLRenderingContextFLOAT(ExecState* exec, JSValue, const Identifier&)
       
  3990 {
       
  3991     return jsNumber(exec, static_cast<int>(0x1406));
       
  3992 }
       
  3993 
       
  3994 JSValue jsWebGLRenderingContextFIXED(ExecState* exec, JSValue, const Identifier&)
       
  3995 {
       
  3996     return jsNumber(exec, static_cast<int>(0x140C));
       
  3997 }
       
  3998 
       
  3999 JSValue jsWebGLRenderingContextDEPTH_COMPONENT(ExecState* exec, JSValue, const Identifier&)
       
  4000 {
       
  4001     return jsNumber(exec, static_cast<int>(0x1902));
       
  4002 }
       
  4003 
       
  4004 JSValue jsWebGLRenderingContextALPHA(ExecState* exec, JSValue, const Identifier&)
       
  4005 {
       
  4006     return jsNumber(exec, static_cast<int>(0x1906));
       
  4007 }
       
  4008 
       
  4009 JSValue jsWebGLRenderingContextRGB(ExecState* exec, JSValue, const Identifier&)
       
  4010 {
       
  4011     return jsNumber(exec, static_cast<int>(0x1907));
       
  4012 }
       
  4013 
       
  4014 JSValue jsWebGLRenderingContextRGBA(ExecState* exec, JSValue, const Identifier&)
       
  4015 {
       
  4016     return jsNumber(exec, static_cast<int>(0x1908));
       
  4017 }
       
  4018 
       
  4019 JSValue jsWebGLRenderingContextLUMINANCE(ExecState* exec, JSValue, const Identifier&)
       
  4020 {
       
  4021     return jsNumber(exec, static_cast<int>(0x1909));
       
  4022 }
       
  4023 
       
  4024 JSValue jsWebGLRenderingContextLUMINANCE_ALPHA(ExecState* exec, JSValue, const Identifier&)
       
  4025 {
       
  4026     return jsNumber(exec, static_cast<int>(0x190A));
       
  4027 }
       
  4028 
       
  4029 JSValue jsWebGLRenderingContextUNSIGNED_SHORT_4_4_4_4(ExecState* exec, JSValue, const Identifier&)
       
  4030 {
       
  4031     return jsNumber(exec, static_cast<int>(0x8033));
       
  4032 }
       
  4033 
       
  4034 JSValue jsWebGLRenderingContextUNSIGNED_SHORT_5_5_5_1(ExecState* exec, JSValue, const Identifier&)
       
  4035 {
       
  4036     return jsNumber(exec, static_cast<int>(0x8034));
       
  4037 }
       
  4038 
       
  4039 JSValue jsWebGLRenderingContextUNSIGNED_SHORT_5_6_5(ExecState* exec, JSValue, const Identifier&)
       
  4040 {
       
  4041     return jsNumber(exec, static_cast<int>(0x8363));
       
  4042 }
       
  4043 
       
  4044 JSValue jsWebGLRenderingContextFRAGMENT_SHADER(ExecState* exec, JSValue, const Identifier&)
       
  4045 {
       
  4046     return jsNumber(exec, static_cast<int>(0x8B30));
       
  4047 }
       
  4048 
       
  4049 JSValue jsWebGLRenderingContextVERTEX_SHADER(ExecState* exec, JSValue, const Identifier&)
       
  4050 {
       
  4051     return jsNumber(exec, static_cast<int>(0x8B31));
       
  4052 }
       
  4053 
       
  4054 JSValue jsWebGLRenderingContextMAX_VERTEX_ATTRIBS(ExecState* exec, JSValue, const Identifier&)
       
  4055 {
       
  4056     return jsNumber(exec, static_cast<int>(0x8869));
       
  4057 }
       
  4058 
       
  4059 JSValue jsWebGLRenderingContextMAX_VERTEX_UNIFORM_VECTORS(ExecState* exec, JSValue, const Identifier&)
       
  4060 {
       
  4061     return jsNumber(exec, static_cast<int>(0x8DFB));
       
  4062 }
       
  4063 
       
  4064 JSValue jsWebGLRenderingContextMAX_VARYING_VECTORS(ExecState* exec, JSValue, const Identifier&)
       
  4065 {
       
  4066     return jsNumber(exec, static_cast<int>(0x8DFC));
       
  4067 }
       
  4068 
       
  4069 JSValue jsWebGLRenderingContextMAX_COMBINED_TEXTURE_IMAGE_UNITS(ExecState* exec, JSValue, const Identifier&)
       
  4070 {
       
  4071     return jsNumber(exec, static_cast<int>(0x8B4D));
       
  4072 }
       
  4073 
       
  4074 JSValue jsWebGLRenderingContextMAX_VERTEX_TEXTURE_IMAGE_UNITS(ExecState* exec, JSValue, const Identifier&)
       
  4075 {
       
  4076     return jsNumber(exec, static_cast<int>(0x8B4C));
       
  4077 }
       
  4078 
       
  4079 JSValue jsWebGLRenderingContextMAX_TEXTURE_IMAGE_UNITS(ExecState* exec, JSValue, const Identifier&)
       
  4080 {
       
  4081     return jsNumber(exec, static_cast<int>(0x8872));
       
  4082 }
       
  4083 
       
  4084 JSValue jsWebGLRenderingContextMAX_FRAGMENT_UNIFORM_VECTORS(ExecState* exec, JSValue, const Identifier&)
       
  4085 {
       
  4086     return jsNumber(exec, static_cast<int>(0x8DFD));
       
  4087 }
       
  4088 
       
  4089 JSValue jsWebGLRenderingContextSHADER_TYPE(ExecState* exec, JSValue, const Identifier&)
       
  4090 {
       
  4091     return jsNumber(exec, static_cast<int>(0x8B4F));
       
  4092 }
       
  4093 
       
  4094 JSValue jsWebGLRenderingContextDELETE_STATUS(ExecState* exec, JSValue, const Identifier&)
       
  4095 {
       
  4096     return jsNumber(exec, static_cast<int>(0x8B80));
       
  4097 }
       
  4098 
       
  4099 JSValue jsWebGLRenderingContextLINK_STATUS(ExecState* exec, JSValue, const Identifier&)
       
  4100 {
       
  4101     return jsNumber(exec, static_cast<int>(0x8B82));
       
  4102 }
       
  4103 
       
  4104 JSValue jsWebGLRenderingContextVALIDATE_STATUS(ExecState* exec, JSValue, const Identifier&)
       
  4105 {
       
  4106     return jsNumber(exec, static_cast<int>(0x8B83));
       
  4107 }
       
  4108 
       
  4109 JSValue jsWebGLRenderingContextATTACHED_SHADERS(ExecState* exec, JSValue, const Identifier&)
       
  4110 {
       
  4111     return jsNumber(exec, static_cast<int>(0x8B85));
       
  4112 }
       
  4113 
       
  4114 JSValue jsWebGLRenderingContextACTIVE_UNIFORMS(ExecState* exec, JSValue, const Identifier&)
       
  4115 {
       
  4116     return jsNumber(exec, static_cast<int>(0x8B86));
       
  4117 }
       
  4118 
       
  4119 JSValue jsWebGLRenderingContextACTIVE_UNIFORM_MAX_LENGTH(ExecState* exec, JSValue, const Identifier&)
       
  4120 {
       
  4121     return jsNumber(exec, static_cast<int>(0x8B87));
       
  4122 }
       
  4123 
       
  4124 JSValue jsWebGLRenderingContextACTIVE_ATTRIBUTES(ExecState* exec, JSValue, const Identifier&)
       
  4125 {
       
  4126     return jsNumber(exec, static_cast<int>(0x8B89));
       
  4127 }
       
  4128 
       
  4129 JSValue jsWebGLRenderingContextACTIVE_ATTRIBUTE_MAX_LENGTH(ExecState* exec, JSValue, const Identifier&)
       
  4130 {
       
  4131     return jsNumber(exec, static_cast<int>(0x8B8A));
       
  4132 }
       
  4133 
       
  4134 JSValue jsWebGLRenderingContextSHADING_LANGUAGE_VERSION(ExecState* exec, JSValue, const Identifier&)
       
  4135 {
       
  4136     return jsNumber(exec, static_cast<int>(0x8B8C));
       
  4137 }
       
  4138 
       
  4139 JSValue jsWebGLRenderingContextCURRENT_PROGRAM(ExecState* exec, JSValue, const Identifier&)
       
  4140 {
       
  4141     return jsNumber(exec, static_cast<int>(0x8B8D));
       
  4142 }
       
  4143 
       
  4144 JSValue jsWebGLRenderingContextNEVER(ExecState* exec, JSValue, const Identifier&)
       
  4145 {
       
  4146     return jsNumber(exec, static_cast<int>(0x0200));
       
  4147 }
       
  4148 
       
  4149 JSValue jsWebGLRenderingContextLESS(ExecState* exec, JSValue, const Identifier&)
       
  4150 {
       
  4151     return jsNumber(exec, static_cast<int>(0x0201));
       
  4152 }
       
  4153 
       
  4154 JSValue jsWebGLRenderingContextEQUAL(ExecState* exec, JSValue, const Identifier&)
       
  4155 {
       
  4156     return jsNumber(exec, static_cast<int>(0x0202));
       
  4157 }
       
  4158 
       
  4159 JSValue jsWebGLRenderingContextLEQUAL(ExecState* exec, JSValue, const Identifier&)
       
  4160 {
       
  4161     return jsNumber(exec, static_cast<int>(0x0203));
       
  4162 }
       
  4163 
       
  4164 JSValue jsWebGLRenderingContextGREATER(ExecState* exec, JSValue, const Identifier&)
       
  4165 {
       
  4166     return jsNumber(exec, static_cast<int>(0x0204));
       
  4167 }
       
  4168 
       
  4169 JSValue jsWebGLRenderingContextNOTEQUAL(ExecState* exec, JSValue, const Identifier&)
       
  4170 {
       
  4171     return jsNumber(exec, static_cast<int>(0x0205));
       
  4172 }
       
  4173 
       
  4174 JSValue jsWebGLRenderingContextGEQUAL(ExecState* exec, JSValue, const Identifier&)
       
  4175 {
       
  4176     return jsNumber(exec, static_cast<int>(0x0206));
       
  4177 }
       
  4178 
       
  4179 JSValue jsWebGLRenderingContextALWAYS(ExecState* exec, JSValue, const Identifier&)
       
  4180 {
       
  4181     return jsNumber(exec, static_cast<int>(0x0207));
       
  4182 }
       
  4183 
       
  4184 JSValue jsWebGLRenderingContextKEEP(ExecState* exec, JSValue, const Identifier&)
       
  4185 {
       
  4186     return jsNumber(exec, static_cast<int>(0x1E00));
       
  4187 }
       
  4188 
       
  4189 JSValue jsWebGLRenderingContextREPLACE(ExecState* exec, JSValue, const Identifier&)
       
  4190 {
       
  4191     return jsNumber(exec, static_cast<int>(0x1E01));
       
  4192 }
       
  4193 
       
  4194 JSValue jsWebGLRenderingContextINCR(ExecState* exec, JSValue, const Identifier&)
       
  4195 {
       
  4196     return jsNumber(exec, static_cast<int>(0x1E02));
       
  4197 }
       
  4198 
       
  4199 JSValue jsWebGLRenderingContextDECR(ExecState* exec, JSValue, const Identifier&)
       
  4200 {
       
  4201     return jsNumber(exec, static_cast<int>(0x1E03));
       
  4202 }
       
  4203 
       
  4204 JSValue jsWebGLRenderingContextINVERT(ExecState* exec, JSValue, const Identifier&)
       
  4205 {
       
  4206     return jsNumber(exec, static_cast<int>(0x150A));
       
  4207 }
       
  4208 
       
  4209 JSValue jsWebGLRenderingContextINCR_WRAP(ExecState* exec, JSValue, const Identifier&)
       
  4210 {
       
  4211     return jsNumber(exec, static_cast<int>(0x8507));
       
  4212 }
       
  4213 
       
  4214 JSValue jsWebGLRenderingContextDECR_WRAP(ExecState* exec, JSValue, const Identifier&)
       
  4215 {
       
  4216     return jsNumber(exec, static_cast<int>(0x8508));
       
  4217 }
       
  4218 
       
  4219 JSValue jsWebGLRenderingContextVENDOR(ExecState* exec, JSValue, const Identifier&)
       
  4220 {
       
  4221     return jsNumber(exec, static_cast<int>(0x1F00));
       
  4222 }
       
  4223 
       
  4224 JSValue jsWebGLRenderingContextRENDERER(ExecState* exec, JSValue, const Identifier&)
       
  4225 {
       
  4226     return jsNumber(exec, static_cast<int>(0x1F01));
       
  4227 }
       
  4228 
       
  4229 JSValue jsWebGLRenderingContextVERSION(ExecState* exec, JSValue, const Identifier&)
       
  4230 {
       
  4231     return jsNumber(exec, static_cast<int>(0x1F02));
       
  4232 }
       
  4233 
       
  4234 JSValue jsWebGLRenderingContextEXTENSIONS(ExecState* exec, JSValue, const Identifier&)
       
  4235 {
       
  4236     return jsNumber(exec, static_cast<int>(0x1F03));
       
  4237 }
       
  4238 
       
  4239 JSValue jsWebGLRenderingContextNEAREST(ExecState* exec, JSValue, const Identifier&)
       
  4240 {
       
  4241     return jsNumber(exec, static_cast<int>(0x2600));
       
  4242 }
       
  4243 
       
  4244 JSValue jsWebGLRenderingContextLINEAR(ExecState* exec, JSValue, const Identifier&)
       
  4245 {
       
  4246     return jsNumber(exec, static_cast<int>(0x2601));
       
  4247 }
       
  4248 
       
  4249 JSValue jsWebGLRenderingContextNEAREST_MIPMAP_NEAREST(ExecState* exec, JSValue, const Identifier&)
       
  4250 {
       
  4251     return jsNumber(exec, static_cast<int>(0x2700));
       
  4252 }
       
  4253 
       
  4254 JSValue jsWebGLRenderingContextLINEAR_MIPMAP_NEAREST(ExecState* exec, JSValue, const Identifier&)
       
  4255 {
       
  4256     return jsNumber(exec, static_cast<int>(0x2701));
       
  4257 }
       
  4258 
       
  4259 JSValue jsWebGLRenderingContextNEAREST_MIPMAP_LINEAR(ExecState* exec, JSValue, const Identifier&)
       
  4260 {
       
  4261     return jsNumber(exec, static_cast<int>(0x2702));
       
  4262 }
       
  4263 
       
  4264 JSValue jsWebGLRenderingContextLINEAR_MIPMAP_LINEAR(ExecState* exec, JSValue, const Identifier&)
       
  4265 {
       
  4266     return jsNumber(exec, static_cast<int>(0x2703));
       
  4267 }
       
  4268 
       
  4269 JSValue jsWebGLRenderingContextTEXTURE_MAG_FILTER(ExecState* exec, JSValue, const Identifier&)
       
  4270 {
       
  4271     return jsNumber(exec, static_cast<int>(0x2800));
       
  4272 }
       
  4273 
       
  4274 JSValue jsWebGLRenderingContextTEXTURE_MIN_FILTER(ExecState* exec, JSValue, const Identifier&)
       
  4275 {
       
  4276     return jsNumber(exec, static_cast<int>(0x2801));
       
  4277 }
       
  4278 
       
  4279 JSValue jsWebGLRenderingContextTEXTURE_WRAP_S(ExecState* exec, JSValue, const Identifier&)
       
  4280 {
       
  4281     return jsNumber(exec, static_cast<int>(0x2802));
       
  4282 }
       
  4283 
       
  4284 JSValue jsWebGLRenderingContextTEXTURE_WRAP_T(ExecState* exec, JSValue, const Identifier&)
       
  4285 {
       
  4286     return jsNumber(exec, static_cast<int>(0x2803));
       
  4287 }
       
  4288 
       
  4289 JSValue jsWebGLRenderingContextTEXTURE(ExecState* exec, JSValue, const Identifier&)
       
  4290 {
       
  4291     return jsNumber(exec, static_cast<int>(0x1702));
       
  4292 }
       
  4293 
       
  4294 JSValue jsWebGLRenderingContextTEXTURE_CUBE_MAP(ExecState* exec, JSValue, const Identifier&)
       
  4295 {
       
  4296     return jsNumber(exec, static_cast<int>(0x8513));
       
  4297 }
       
  4298 
       
  4299 JSValue jsWebGLRenderingContextTEXTURE_BINDING_CUBE_MAP(ExecState* exec, JSValue, const Identifier&)
       
  4300 {
       
  4301     return jsNumber(exec, static_cast<int>(0x8514));
       
  4302 }
       
  4303 
       
  4304 JSValue jsWebGLRenderingContextTEXTURE_CUBE_MAP_POSITIVE_X(ExecState* exec, JSValue, const Identifier&)
       
  4305 {
       
  4306     return jsNumber(exec, static_cast<int>(0x8515));
       
  4307 }
       
  4308 
       
  4309 JSValue jsWebGLRenderingContextTEXTURE_CUBE_MAP_NEGATIVE_X(ExecState* exec, JSValue, const Identifier&)
       
  4310 {
       
  4311     return jsNumber(exec, static_cast<int>(0x8516));
       
  4312 }
       
  4313 
       
  4314 JSValue jsWebGLRenderingContextTEXTURE_CUBE_MAP_POSITIVE_Y(ExecState* exec, JSValue, const Identifier&)
       
  4315 {
       
  4316     return jsNumber(exec, static_cast<int>(0x8517));
       
  4317 }
       
  4318 
       
  4319 JSValue jsWebGLRenderingContextTEXTURE_CUBE_MAP_NEGATIVE_Y(ExecState* exec, JSValue, const Identifier&)
       
  4320 {
       
  4321     return jsNumber(exec, static_cast<int>(0x8518));
       
  4322 }
       
  4323 
       
  4324 JSValue jsWebGLRenderingContextTEXTURE_CUBE_MAP_POSITIVE_Z(ExecState* exec, JSValue, const Identifier&)
       
  4325 {
       
  4326     return jsNumber(exec, static_cast<int>(0x8519));
       
  4327 }
       
  4328 
       
  4329 JSValue jsWebGLRenderingContextTEXTURE_CUBE_MAP_NEGATIVE_Z(ExecState* exec, JSValue, const Identifier&)
       
  4330 {
       
  4331     return jsNumber(exec, static_cast<int>(0x851A));
       
  4332 }
       
  4333 
       
  4334 JSValue jsWebGLRenderingContextMAX_CUBE_MAP_TEXTURE_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  4335 {
       
  4336     return jsNumber(exec, static_cast<int>(0x851C));
       
  4337 }
       
  4338 
       
  4339 JSValue jsWebGLRenderingContextTEXTURE0(ExecState* exec, JSValue, const Identifier&)
       
  4340 {
       
  4341     return jsNumber(exec, static_cast<int>(0x84C0));
       
  4342 }
       
  4343 
       
  4344 JSValue jsWebGLRenderingContextTEXTURE1(ExecState* exec, JSValue, const Identifier&)
       
  4345 {
       
  4346     return jsNumber(exec, static_cast<int>(0x84C1));
       
  4347 }
       
  4348 
       
  4349 JSValue jsWebGLRenderingContextTEXTURE2(ExecState* exec, JSValue, const Identifier&)
       
  4350 {
       
  4351     return jsNumber(exec, static_cast<int>(0x84C2));
       
  4352 }
       
  4353 
       
  4354 JSValue jsWebGLRenderingContextTEXTURE3(ExecState* exec, JSValue, const Identifier&)
       
  4355 {
       
  4356     return jsNumber(exec, static_cast<int>(0x84C3));
       
  4357 }
       
  4358 
       
  4359 JSValue jsWebGLRenderingContextTEXTURE4(ExecState* exec, JSValue, const Identifier&)
       
  4360 {
       
  4361     return jsNumber(exec, static_cast<int>(0x84C4));
       
  4362 }
       
  4363 
       
  4364 JSValue jsWebGLRenderingContextTEXTURE5(ExecState* exec, JSValue, const Identifier&)
       
  4365 {
       
  4366     return jsNumber(exec, static_cast<int>(0x84C5));
       
  4367 }
       
  4368 
       
  4369 JSValue jsWebGLRenderingContextTEXTURE6(ExecState* exec, JSValue, const Identifier&)
       
  4370 {
       
  4371     return jsNumber(exec, static_cast<int>(0x84C6));
       
  4372 }
       
  4373 
       
  4374 JSValue jsWebGLRenderingContextTEXTURE7(ExecState* exec, JSValue, const Identifier&)
       
  4375 {
       
  4376     return jsNumber(exec, static_cast<int>(0x84C7));
       
  4377 }
       
  4378 
       
  4379 JSValue jsWebGLRenderingContextTEXTURE8(ExecState* exec, JSValue, const Identifier&)
       
  4380 {
       
  4381     return jsNumber(exec, static_cast<int>(0x84C8));
       
  4382 }
       
  4383 
       
  4384 JSValue jsWebGLRenderingContextTEXTURE9(ExecState* exec, JSValue, const Identifier&)
       
  4385 {
       
  4386     return jsNumber(exec, static_cast<int>(0x84C9));
       
  4387 }
       
  4388 
       
  4389 JSValue jsWebGLRenderingContextTEXTURE10(ExecState* exec, JSValue, const Identifier&)
       
  4390 {
       
  4391     return jsNumber(exec, static_cast<int>(0x84CA));
       
  4392 }
       
  4393 
       
  4394 JSValue jsWebGLRenderingContextTEXTURE11(ExecState* exec, JSValue, const Identifier&)
       
  4395 {
       
  4396     return jsNumber(exec, static_cast<int>(0x84CB));
       
  4397 }
       
  4398 
       
  4399 JSValue jsWebGLRenderingContextTEXTURE12(ExecState* exec, JSValue, const Identifier&)
       
  4400 {
       
  4401     return jsNumber(exec, static_cast<int>(0x84CC));
       
  4402 }
       
  4403 
       
  4404 JSValue jsWebGLRenderingContextTEXTURE13(ExecState* exec, JSValue, const Identifier&)
       
  4405 {
       
  4406     return jsNumber(exec, static_cast<int>(0x84CD));
       
  4407 }
       
  4408 
       
  4409 JSValue jsWebGLRenderingContextTEXTURE14(ExecState* exec, JSValue, const Identifier&)
       
  4410 {
       
  4411     return jsNumber(exec, static_cast<int>(0x84CE));
       
  4412 }
       
  4413 
       
  4414 JSValue jsWebGLRenderingContextTEXTURE15(ExecState* exec, JSValue, const Identifier&)
       
  4415 {
       
  4416     return jsNumber(exec, static_cast<int>(0x84CF));
       
  4417 }
       
  4418 
       
  4419 JSValue jsWebGLRenderingContextTEXTURE16(ExecState* exec, JSValue, const Identifier&)
       
  4420 {
       
  4421     return jsNumber(exec, static_cast<int>(0x84D0));
       
  4422 }
       
  4423 
       
  4424 JSValue jsWebGLRenderingContextTEXTURE17(ExecState* exec, JSValue, const Identifier&)
       
  4425 {
       
  4426     return jsNumber(exec, static_cast<int>(0x84D1));
       
  4427 }
       
  4428 
       
  4429 JSValue jsWebGLRenderingContextTEXTURE18(ExecState* exec, JSValue, const Identifier&)
       
  4430 {
       
  4431     return jsNumber(exec, static_cast<int>(0x84D2));
       
  4432 }
       
  4433 
       
  4434 JSValue jsWebGLRenderingContextTEXTURE19(ExecState* exec, JSValue, const Identifier&)
       
  4435 {
       
  4436     return jsNumber(exec, static_cast<int>(0x84D3));
       
  4437 }
       
  4438 
       
  4439 JSValue jsWebGLRenderingContextTEXTURE20(ExecState* exec, JSValue, const Identifier&)
       
  4440 {
       
  4441     return jsNumber(exec, static_cast<int>(0x84D4));
       
  4442 }
       
  4443 
       
  4444 JSValue jsWebGLRenderingContextTEXTURE21(ExecState* exec, JSValue, const Identifier&)
       
  4445 {
       
  4446     return jsNumber(exec, static_cast<int>(0x84D5));
       
  4447 }
       
  4448 
       
  4449 JSValue jsWebGLRenderingContextTEXTURE22(ExecState* exec, JSValue, const Identifier&)
       
  4450 {
       
  4451     return jsNumber(exec, static_cast<int>(0x84D6));
       
  4452 }
       
  4453 
       
  4454 JSValue jsWebGLRenderingContextTEXTURE23(ExecState* exec, JSValue, const Identifier&)
       
  4455 {
       
  4456     return jsNumber(exec, static_cast<int>(0x84D7));
       
  4457 }
       
  4458 
       
  4459 JSValue jsWebGLRenderingContextTEXTURE24(ExecState* exec, JSValue, const Identifier&)
       
  4460 {
       
  4461     return jsNumber(exec, static_cast<int>(0x84D8));
       
  4462 }
       
  4463 
       
  4464 JSValue jsWebGLRenderingContextTEXTURE25(ExecState* exec, JSValue, const Identifier&)
       
  4465 {
       
  4466     return jsNumber(exec, static_cast<int>(0x84D9));
       
  4467 }
       
  4468 
       
  4469 JSValue jsWebGLRenderingContextTEXTURE26(ExecState* exec, JSValue, const Identifier&)
       
  4470 {
       
  4471     return jsNumber(exec, static_cast<int>(0x84DA));
       
  4472 }
       
  4473 
       
  4474 JSValue jsWebGLRenderingContextTEXTURE27(ExecState* exec, JSValue, const Identifier&)
       
  4475 {
       
  4476     return jsNumber(exec, static_cast<int>(0x84DB));
       
  4477 }
       
  4478 
       
  4479 JSValue jsWebGLRenderingContextTEXTURE28(ExecState* exec, JSValue, const Identifier&)
       
  4480 {
       
  4481     return jsNumber(exec, static_cast<int>(0x84DC));
       
  4482 }
       
  4483 
       
  4484 JSValue jsWebGLRenderingContextTEXTURE29(ExecState* exec, JSValue, const Identifier&)
       
  4485 {
       
  4486     return jsNumber(exec, static_cast<int>(0x84DD));
       
  4487 }
       
  4488 
       
  4489 JSValue jsWebGLRenderingContextTEXTURE30(ExecState* exec, JSValue, const Identifier&)
       
  4490 {
       
  4491     return jsNumber(exec, static_cast<int>(0x84DE));
       
  4492 }
       
  4493 
       
  4494 JSValue jsWebGLRenderingContextTEXTURE31(ExecState* exec, JSValue, const Identifier&)
       
  4495 {
       
  4496     return jsNumber(exec, static_cast<int>(0x84DF));
       
  4497 }
       
  4498 
       
  4499 JSValue jsWebGLRenderingContextACTIVE_TEXTURE(ExecState* exec, JSValue, const Identifier&)
       
  4500 {
       
  4501     return jsNumber(exec, static_cast<int>(0x84E0));
       
  4502 }
       
  4503 
       
  4504 JSValue jsWebGLRenderingContextREPEAT(ExecState* exec, JSValue, const Identifier&)
       
  4505 {
       
  4506     return jsNumber(exec, static_cast<int>(0x2901));
       
  4507 }
       
  4508 
       
  4509 JSValue jsWebGLRenderingContextCLAMP_TO_EDGE(ExecState* exec, JSValue, const Identifier&)
       
  4510 {
       
  4511     return jsNumber(exec, static_cast<int>(0x812F));
       
  4512 }
       
  4513 
       
  4514 JSValue jsWebGLRenderingContextMIRRORED_REPEAT(ExecState* exec, JSValue, const Identifier&)
       
  4515 {
       
  4516     return jsNumber(exec, static_cast<int>(0x8370));
       
  4517 }
       
  4518 
       
  4519 JSValue jsWebGLRenderingContextFLOAT_VEC2(ExecState* exec, JSValue, const Identifier&)
       
  4520 {
       
  4521     return jsNumber(exec, static_cast<int>(0x8B50));
       
  4522 }
       
  4523 
       
  4524 JSValue jsWebGLRenderingContextFLOAT_VEC3(ExecState* exec, JSValue, const Identifier&)
       
  4525 {
       
  4526     return jsNumber(exec, static_cast<int>(0x8B51));
       
  4527 }
       
  4528 
       
  4529 JSValue jsWebGLRenderingContextFLOAT_VEC4(ExecState* exec, JSValue, const Identifier&)
       
  4530 {
       
  4531     return jsNumber(exec, static_cast<int>(0x8B52));
       
  4532 }
       
  4533 
       
  4534 JSValue jsWebGLRenderingContextINT_VEC2(ExecState* exec, JSValue, const Identifier&)
       
  4535 {
       
  4536     return jsNumber(exec, static_cast<int>(0x8B53));
       
  4537 }
       
  4538 
       
  4539 JSValue jsWebGLRenderingContextINT_VEC3(ExecState* exec, JSValue, const Identifier&)
       
  4540 {
       
  4541     return jsNumber(exec, static_cast<int>(0x8B54));
       
  4542 }
       
  4543 
       
  4544 JSValue jsWebGLRenderingContextINT_VEC4(ExecState* exec, JSValue, const Identifier&)
       
  4545 {
       
  4546     return jsNumber(exec, static_cast<int>(0x8B55));
       
  4547 }
       
  4548 
       
  4549 JSValue jsWebGLRenderingContextBOOL(ExecState* exec, JSValue, const Identifier&)
       
  4550 {
       
  4551     return jsNumber(exec, static_cast<int>(0x8B56));
       
  4552 }
       
  4553 
       
  4554 JSValue jsWebGLRenderingContextBOOL_VEC2(ExecState* exec, JSValue, const Identifier&)
       
  4555 {
       
  4556     return jsNumber(exec, static_cast<int>(0x8B57));
       
  4557 }
       
  4558 
       
  4559 JSValue jsWebGLRenderingContextBOOL_VEC3(ExecState* exec, JSValue, const Identifier&)
       
  4560 {
       
  4561     return jsNumber(exec, static_cast<int>(0x8B58));
       
  4562 }
       
  4563 
       
  4564 JSValue jsWebGLRenderingContextBOOL_VEC4(ExecState* exec, JSValue, const Identifier&)
       
  4565 {
       
  4566     return jsNumber(exec, static_cast<int>(0x8B59));
       
  4567 }
       
  4568 
       
  4569 JSValue jsWebGLRenderingContextFLOAT_MAT2(ExecState* exec, JSValue, const Identifier&)
       
  4570 {
       
  4571     return jsNumber(exec, static_cast<int>(0x8B5A));
       
  4572 }
       
  4573 
       
  4574 JSValue jsWebGLRenderingContextFLOAT_MAT3(ExecState* exec, JSValue, const Identifier&)
       
  4575 {
       
  4576     return jsNumber(exec, static_cast<int>(0x8B5B));
       
  4577 }
       
  4578 
       
  4579 JSValue jsWebGLRenderingContextFLOAT_MAT4(ExecState* exec, JSValue, const Identifier&)
       
  4580 {
       
  4581     return jsNumber(exec, static_cast<int>(0x8B5C));
       
  4582 }
       
  4583 
       
  4584 JSValue jsWebGLRenderingContextSAMPLER_2D(ExecState* exec, JSValue, const Identifier&)
       
  4585 {
       
  4586     return jsNumber(exec, static_cast<int>(0x8B5E));
       
  4587 }
       
  4588 
       
  4589 JSValue jsWebGLRenderingContextSAMPLER_CUBE(ExecState* exec, JSValue, const Identifier&)
       
  4590 {
       
  4591     return jsNumber(exec, static_cast<int>(0x8B60));
       
  4592 }
       
  4593 
       
  4594 JSValue jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_ENABLED(ExecState* exec, JSValue, const Identifier&)
       
  4595 {
       
  4596     return jsNumber(exec, static_cast<int>(0x8622));
       
  4597 }
       
  4598 
       
  4599 JSValue jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  4600 {
       
  4601     return jsNumber(exec, static_cast<int>(0x8623));
       
  4602 }
       
  4603 
       
  4604 JSValue jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_STRIDE(ExecState* exec, JSValue, const Identifier&)
       
  4605 {
       
  4606     return jsNumber(exec, static_cast<int>(0x8624));
       
  4607 }
       
  4608 
       
  4609 JSValue jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_TYPE(ExecState* exec, JSValue, const Identifier&)
       
  4610 {
       
  4611     return jsNumber(exec, static_cast<int>(0x8625));
       
  4612 }
       
  4613 
       
  4614 JSValue jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_NORMALIZED(ExecState* exec, JSValue, const Identifier&)
       
  4615 {
       
  4616     return jsNumber(exec, static_cast<int>(0x886A));
       
  4617 }
       
  4618 
       
  4619 JSValue jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_POINTER(ExecState* exec, JSValue, const Identifier&)
       
  4620 {
       
  4621     return jsNumber(exec, static_cast<int>(0x8645));
       
  4622 }
       
  4623 
       
  4624 JSValue jsWebGLRenderingContextVERTEX_ATTRIB_ARRAY_BUFFER_BINDING(ExecState* exec, JSValue, const Identifier&)
       
  4625 {
       
  4626     return jsNumber(exec, static_cast<int>(0x889F));
       
  4627 }
       
  4628 
       
  4629 JSValue jsWebGLRenderingContextIMPLEMENTATION_COLOR_READ_TYPE(ExecState* exec, JSValue, const Identifier&)
       
  4630 {
       
  4631     return jsNumber(exec, static_cast<int>(0x8B9A));
       
  4632 }
       
  4633 
       
  4634 JSValue jsWebGLRenderingContextIMPLEMENTATION_COLOR_READ_FORMAT(ExecState* exec, JSValue, const Identifier&)
       
  4635 {
       
  4636     return jsNumber(exec, static_cast<int>(0x8B9B));
       
  4637 }
       
  4638 
       
  4639 JSValue jsWebGLRenderingContextCOMPILE_STATUS(ExecState* exec, JSValue, const Identifier&)
       
  4640 {
       
  4641     return jsNumber(exec, static_cast<int>(0x8B81));
       
  4642 }
       
  4643 
       
  4644 JSValue jsWebGLRenderingContextINFO_LOG_LENGTH(ExecState* exec, JSValue, const Identifier&)
       
  4645 {
       
  4646     return jsNumber(exec, static_cast<int>(0x8B84));
       
  4647 }
       
  4648 
       
  4649 JSValue jsWebGLRenderingContextSHADER_SOURCE_LENGTH(ExecState* exec, JSValue, const Identifier&)
       
  4650 {
       
  4651     return jsNumber(exec, static_cast<int>(0x8B88));
       
  4652 }
       
  4653 
       
  4654 JSValue jsWebGLRenderingContextSHADER_COMPILER(ExecState* exec, JSValue, const Identifier&)
       
  4655 {
       
  4656     return jsNumber(exec, static_cast<int>(0x8DFA));
       
  4657 }
       
  4658 
       
  4659 JSValue jsWebGLRenderingContextSHADER_BINARY_FORMATS(ExecState* exec, JSValue, const Identifier&)
       
  4660 {
       
  4661     return jsNumber(exec, static_cast<int>(0x8DF8));
       
  4662 }
       
  4663 
       
  4664 JSValue jsWebGLRenderingContextNUM_SHADER_BINARY_FORMATS(ExecState* exec, JSValue, const Identifier&)
       
  4665 {
       
  4666     return jsNumber(exec, static_cast<int>(0x8DF9));
       
  4667 }
       
  4668 
       
  4669 JSValue jsWebGLRenderingContextLOW_FLOAT(ExecState* exec, JSValue, const Identifier&)
       
  4670 {
       
  4671     return jsNumber(exec, static_cast<int>(0x8DF0));
       
  4672 }
       
  4673 
       
  4674 JSValue jsWebGLRenderingContextMEDIUM_FLOAT(ExecState* exec, JSValue, const Identifier&)
       
  4675 {
       
  4676     return jsNumber(exec, static_cast<int>(0x8DF1));
       
  4677 }
       
  4678 
       
  4679 JSValue jsWebGLRenderingContextHIGH_FLOAT(ExecState* exec, JSValue, const Identifier&)
       
  4680 {
       
  4681     return jsNumber(exec, static_cast<int>(0x8DF2));
       
  4682 }
       
  4683 
       
  4684 JSValue jsWebGLRenderingContextLOW_INT(ExecState* exec, JSValue, const Identifier&)
       
  4685 {
       
  4686     return jsNumber(exec, static_cast<int>(0x8DF3));
       
  4687 }
       
  4688 
       
  4689 JSValue jsWebGLRenderingContextMEDIUM_INT(ExecState* exec, JSValue, const Identifier&)
       
  4690 {
       
  4691     return jsNumber(exec, static_cast<int>(0x8DF4));
       
  4692 }
       
  4693 
       
  4694 JSValue jsWebGLRenderingContextHIGH_INT(ExecState* exec, JSValue, const Identifier&)
       
  4695 {
       
  4696     return jsNumber(exec, static_cast<int>(0x8DF5));
       
  4697 }
       
  4698 
       
  4699 JSValue jsWebGLRenderingContextFRAMEBUFFER(ExecState* exec, JSValue, const Identifier&)
       
  4700 {
       
  4701     return jsNumber(exec, static_cast<int>(0x8D40));
       
  4702 }
       
  4703 
       
  4704 JSValue jsWebGLRenderingContextRENDERBUFFER(ExecState* exec, JSValue, const Identifier&)
       
  4705 {
       
  4706     return jsNumber(exec, static_cast<int>(0x8D41));
       
  4707 }
       
  4708 
       
  4709 JSValue jsWebGLRenderingContextRGBA4(ExecState* exec, JSValue, const Identifier&)
       
  4710 {
       
  4711     return jsNumber(exec, static_cast<int>(0x8056));
       
  4712 }
       
  4713 
       
  4714 JSValue jsWebGLRenderingContextRGB5_A1(ExecState* exec, JSValue, const Identifier&)
       
  4715 {
       
  4716     return jsNumber(exec, static_cast<int>(0x8057));
       
  4717 }
       
  4718 
       
  4719 JSValue jsWebGLRenderingContextRGB565(ExecState* exec, JSValue, const Identifier&)
       
  4720 {
       
  4721     return jsNumber(exec, static_cast<int>(0x8D62));
       
  4722 }
       
  4723 
       
  4724 JSValue jsWebGLRenderingContextDEPTH_COMPONENT16(ExecState* exec, JSValue, const Identifier&)
       
  4725 {
       
  4726     return jsNumber(exec, static_cast<int>(0x81A5));
       
  4727 }
       
  4728 
       
  4729 JSValue jsWebGLRenderingContextSTENCIL_INDEX(ExecState* exec, JSValue, const Identifier&)
       
  4730 {
       
  4731     return jsNumber(exec, static_cast<int>(0x1901));
       
  4732 }
       
  4733 
       
  4734 JSValue jsWebGLRenderingContextSTENCIL_INDEX8(ExecState* exec, JSValue, const Identifier&)
       
  4735 {
       
  4736     return jsNumber(exec, static_cast<int>(0x8D48));
       
  4737 }
       
  4738 
       
  4739 JSValue jsWebGLRenderingContextDEPTH_STENCIL(ExecState* exec, JSValue, const Identifier&)
       
  4740 {
       
  4741     return jsNumber(exec, static_cast<int>(0x84F9));
       
  4742 }
       
  4743 
       
  4744 JSValue jsWebGLRenderingContextRENDERBUFFER_WIDTH(ExecState* exec, JSValue, const Identifier&)
       
  4745 {
       
  4746     return jsNumber(exec, static_cast<int>(0x8D42));
       
  4747 }
       
  4748 
       
  4749 JSValue jsWebGLRenderingContextRENDERBUFFER_HEIGHT(ExecState* exec, JSValue, const Identifier&)
       
  4750 {
       
  4751     return jsNumber(exec, static_cast<int>(0x8D43));
       
  4752 }
       
  4753 
       
  4754 JSValue jsWebGLRenderingContextRENDERBUFFER_INTERNAL_FORMAT(ExecState* exec, JSValue, const Identifier&)
       
  4755 {
       
  4756     return jsNumber(exec, static_cast<int>(0x8D44));
       
  4757 }
       
  4758 
       
  4759 JSValue jsWebGLRenderingContextRENDERBUFFER_RED_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  4760 {
       
  4761     return jsNumber(exec, static_cast<int>(0x8D50));
       
  4762 }
       
  4763 
       
  4764 JSValue jsWebGLRenderingContextRENDERBUFFER_GREEN_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  4765 {
       
  4766     return jsNumber(exec, static_cast<int>(0x8D51));
       
  4767 }
       
  4768 
       
  4769 JSValue jsWebGLRenderingContextRENDERBUFFER_BLUE_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  4770 {
       
  4771     return jsNumber(exec, static_cast<int>(0x8D52));
       
  4772 }
       
  4773 
       
  4774 JSValue jsWebGLRenderingContextRENDERBUFFER_ALPHA_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  4775 {
       
  4776     return jsNumber(exec, static_cast<int>(0x8D53));
       
  4777 }
       
  4778 
       
  4779 JSValue jsWebGLRenderingContextRENDERBUFFER_DEPTH_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  4780 {
       
  4781     return jsNumber(exec, static_cast<int>(0x8D54));
       
  4782 }
       
  4783 
       
  4784 JSValue jsWebGLRenderingContextRENDERBUFFER_STENCIL_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  4785 {
       
  4786     return jsNumber(exec, static_cast<int>(0x8D55));
       
  4787 }
       
  4788 
       
  4789 JSValue jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_OBJECT_TYPE(ExecState* exec, JSValue, const Identifier&)
       
  4790 {
       
  4791     return jsNumber(exec, static_cast<int>(0x8CD0));
       
  4792 }
       
  4793 
       
  4794 JSValue jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_OBJECT_NAME(ExecState* exec, JSValue, const Identifier&)
       
  4795 {
       
  4796     return jsNumber(exec, static_cast<int>(0x8CD1));
       
  4797 }
       
  4798 
       
  4799 JSValue jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL(ExecState* exec, JSValue, const Identifier&)
       
  4800 {
       
  4801     return jsNumber(exec, static_cast<int>(0x8CD2));
       
  4802 }
       
  4803 
       
  4804 JSValue jsWebGLRenderingContextFRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE(ExecState* exec, JSValue, const Identifier&)
       
  4805 {
       
  4806     return jsNumber(exec, static_cast<int>(0x8CD3));
       
  4807 }
       
  4808 
       
  4809 JSValue jsWebGLRenderingContextCOLOR_ATTACHMENT0(ExecState* exec, JSValue, const Identifier&)
       
  4810 {
       
  4811     return jsNumber(exec, static_cast<int>(0x8CE0));
       
  4812 }
       
  4813 
       
  4814 JSValue jsWebGLRenderingContextDEPTH_ATTACHMENT(ExecState* exec, JSValue, const Identifier&)
       
  4815 {
       
  4816     return jsNumber(exec, static_cast<int>(0x8D00));
       
  4817 }
       
  4818 
       
  4819 JSValue jsWebGLRenderingContextSTENCIL_ATTACHMENT(ExecState* exec, JSValue, const Identifier&)
       
  4820 {
       
  4821     return jsNumber(exec, static_cast<int>(0x8D20));
       
  4822 }
       
  4823 
       
  4824 JSValue jsWebGLRenderingContextDEPTH_STENCIL_ATTACHMENT(ExecState* exec, JSValue, const Identifier&)
       
  4825 {
       
  4826     return jsNumber(exec, static_cast<int>(0x821A));
       
  4827 }
       
  4828 
       
  4829 JSValue jsWebGLRenderingContextNONE(ExecState* exec, JSValue, const Identifier&)
       
  4830 {
       
  4831     return jsNumber(exec, static_cast<int>(0));
       
  4832 }
       
  4833 
       
  4834 JSValue jsWebGLRenderingContextFRAMEBUFFER_COMPLETE(ExecState* exec, JSValue, const Identifier&)
       
  4835 {
       
  4836     return jsNumber(exec, static_cast<int>(0x8CD5));
       
  4837 }
       
  4838 
       
  4839 JSValue jsWebGLRenderingContextFRAMEBUFFER_INCOMPLETE_ATTACHMENT(ExecState* exec, JSValue, const Identifier&)
       
  4840 {
       
  4841     return jsNumber(exec, static_cast<int>(0x8CD6));
       
  4842 }
       
  4843 
       
  4844 JSValue jsWebGLRenderingContextFRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT(ExecState* exec, JSValue, const Identifier&)
       
  4845 {
       
  4846     return jsNumber(exec, static_cast<int>(0x8CD7));
       
  4847 }
       
  4848 
       
  4849 JSValue jsWebGLRenderingContextFRAMEBUFFER_INCOMPLETE_DIMENSIONS(ExecState* exec, JSValue, const Identifier&)
       
  4850 {
       
  4851     return jsNumber(exec, static_cast<int>(0x8CD9));
       
  4852 }
       
  4853 
       
  4854 JSValue jsWebGLRenderingContextFRAMEBUFFER_UNSUPPORTED(ExecState* exec, JSValue, const Identifier&)
       
  4855 {
       
  4856     return jsNumber(exec, static_cast<int>(0x8CDD));
       
  4857 }
       
  4858 
       
  4859 JSValue jsWebGLRenderingContextFRAMEBUFFER_BINDING(ExecState* exec, JSValue, const Identifier&)
       
  4860 {
       
  4861     return jsNumber(exec, static_cast<int>(0x8CA6));
       
  4862 }
       
  4863 
       
  4864 JSValue jsWebGLRenderingContextRENDERBUFFER_BINDING(ExecState* exec, JSValue, const Identifier&)
       
  4865 {
       
  4866     return jsNumber(exec, static_cast<int>(0x8CA7));
       
  4867 }
       
  4868 
       
  4869 JSValue jsWebGLRenderingContextMAX_RENDERBUFFER_SIZE(ExecState* exec, JSValue, const Identifier&)
       
  4870 {
       
  4871     return jsNumber(exec, static_cast<int>(0x84E8));
       
  4872 }
       
  4873 
       
  4874 JSValue jsWebGLRenderingContextINVALID_FRAMEBUFFER_OPERATION(ExecState* exec, JSValue, const Identifier&)
       
  4875 {
       
  4876     return jsNumber(exec, static_cast<int>(0x0506));
       
  4877 }
       
  4878 
       
  4879 JSValue jsWebGLRenderingContextUNPACK_FLIP_Y_WEBGL(ExecState* exec, JSValue, const Identifier&)
       
  4880 {
       
  4881     return jsNumber(exec, static_cast<int>(0x9240));
       
  4882 }
       
  4883 
       
  4884 JSValue jsWebGLRenderingContextUNPACK_PREMULTIPLY_ALPHA_WEBGL(ExecState* exec, JSValue, const Identifier&)
       
  4885 {
       
  4886     return jsNumber(exec, static_cast<int>(0x9241));
       
  4887 }
       
  4888 
       
  4889 
       
  4890 }
       
  4891 
       
  4892 #endif // ENABLE(3D_CANVAS)