Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp

Issue 2430223006: Bindings: Rebaseline run-bindings-tests results (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 // clang-format off 7 // clang-format off
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/AnyCallbackFunctionOptionalAnyArg.h" 10 #include "bindings/core/v8/AnyCallbackFunctionOptionalAnyArg.h"
(...skipping 6045 matching lines...) Expand 10 before | Expand all | Expand 10 after
6056 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); 6056 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info);
6057 } 6057 }
6058 6058
6059 static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 6059 static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
6060 { 6060 {
6061 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6061 TestObject* impl = V8TestObject::toImpl(info.Holder());
6062 6062
6063 impl->unscopableVoidMethod(); 6063 impl->unscopableVoidMethod();
6064 } 6064 }
6065 6065
6066 static void unscopableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6066 void unscopableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
6067 { 6067 {
6068 TestObjectV8Internal::unscopableVoidMethodMethod(info); 6068 TestObjectV8Internal::unscopableVoidMethodMethod(info);
6069 } 6069 }
6070 6070
6071 static void unscopableRuntimeEnabledVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 6071 static void unscopableRuntimeEnabledVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
6072 { 6072 {
6073 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6073 TestObject* impl = V8TestObject::toImpl(info.Holder());
6074 6074
6075 impl->unscopableRuntimeEnabledVoidMethod(); 6075 impl->unscopableRuntimeEnabledVoidMethod();
6076 } 6076 }
6077 6077
6078 static void unscopableRuntimeEnabledVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 6078 void unscopableRuntimeEnabledVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6079 { 6079 {
6080 TestObjectV8Internal::unscopableRuntimeEnabledVoidMethodMethod(info); 6080 TestObjectV8Internal::unscopableRuntimeEnabledVoidMethodMethod(info);
6081 } 6081 }
6082 6082
6083 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6083 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6084 { 6084 {
6085 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6085 TestObject* impl = V8TestObject::toImpl(info.Holder());
6086 6086
6087 impl->voidMethod(); 6087 impl->voidMethod();
6088 } 6088 }
6089 6089
6090 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6090 void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6091 { 6091 {
6092 TestObjectV8Internal::voidMethodMethod(info); 6092 TestObjectV8Internal::voidMethodMethod(info);
6093 } 6093 }
6094 6094
6095 static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 6095 static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6096 { 6096 {
6097 TestObject::staticVoidMethod(); 6097 TestObject::staticVoidMethod();
6098 } 6098 }
6099 6099
6100 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6100 void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6101 { 6101 {
6102 TestObjectV8Internal::staticVoidMethodMethod(info); 6102 TestObjectV8Internal::staticVoidMethodMethod(info);
6103 } 6103 }
6104 6104
6105 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6105 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6106 { 6106 {
6107 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6107 TestObject* impl = V8TestObject::toImpl(info.Holder());
6108 6108
6109 v8SetReturnValue(info, v8DateOrNaN(info.GetIsolate(), impl->dateMethod())); 6109 v8SetReturnValue(info, v8DateOrNaN(info.GetIsolate(), impl->dateMethod()));
6110 } 6110 }
6111 6111
6112 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6112 void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6113 { 6113 {
6114 TestObjectV8Internal::dateMethodMethod(info); 6114 TestObjectV8Internal::dateMethodMethod(info);
6115 } 6115 }
6116 6116
6117 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6117 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6118 { 6118 {
6119 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6119 TestObject* impl = V8TestObject::toImpl(info.Holder());
6120 6120
6121 v8SetReturnValueString(info, impl->stringMethod(), info.GetIsolate()); 6121 v8SetReturnValueString(info, impl->stringMethod(), info.GetIsolate());
6122 } 6122 }
6123 6123
6124 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) 6124 void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6125 { 6125 {
6126 TestObjectV8Internal::stringMethodMethod(info); 6126 TestObjectV8Internal::stringMethodMethod(info);
6127 } 6127 }
6128 6128
6129 static void byteStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 6129 static void byteStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6130 { 6130 {
6131 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6131 TestObject* impl = V8TestObject::toImpl(info.Holder());
6132 6132
6133 v8SetReturnValueString(info, impl->byteStringMethod(), info.GetIsolate()); 6133 v8SetReturnValueString(info, impl->byteStringMethod(), info.GetIsolate());
6134 } 6134 }
6135 6135
6136 static void byteStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6136 void byteStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6137 { 6137 {
6138 TestObjectV8Internal::byteStringMethodMethod(info); 6138 TestObjectV8Internal::byteStringMethodMethod(info);
6139 } 6139 }
6140 6140
6141 static void usvStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf o) 6141 static void usvStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf o)
6142 { 6142 {
6143 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6143 TestObject* impl = V8TestObject::toImpl(info.Holder());
6144 6144
6145 v8SetReturnValueString(info, impl->usvStringMethod(), info.GetIsolate()); 6145 v8SetReturnValueString(info, impl->usvStringMethod(), info.GetIsolate());
6146 } 6146 }
6147 6147
6148 static void usvStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6148 void usvStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6149 { 6149 {
6150 TestObjectV8Internal::usvStringMethodMethod(info); 6150 TestObjectV8Internal::usvStringMethodMethod(info);
6151 } 6151 }
6152 6152
6153 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6153 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6154 { 6154 {
6155 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6155 TestObject* impl = V8TestObject::toImpl(info.Holder());
6156 6156
6157 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod( ))); 6157 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod( )));
6158 } 6158 }
6159 6159
6160 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6160 void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
6161 { 6161 {
6162 TestObjectV8Internal::readonlyDOMTimeStampMethodMethod(info); 6162 TestObjectV8Internal::readonlyDOMTimeStampMethodMethod(info);
6163 } 6163 }
6164 6164
6165 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6165 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6166 { 6166 {
6167 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6167 TestObject* impl = V8TestObject::toImpl(info.Holder());
6168 6168
6169 v8SetReturnValueBool(info, impl->booleanMethod()); 6169 v8SetReturnValueBool(info, impl->booleanMethod());
6170 } 6170 }
6171 6171
6172 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) 6172 void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info )
6173 { 6173 {
6174 TestObjectV8Internal::booleanMethodMethod(info); 6174 TestObjectV8Internal::booleanMethodMethod(info);
6175 } 6175 }
6176 6176
6177 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6177 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6178 { 6178 {
6179 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6179 TestObject* impl = V8TestObject::toImpl(info.Holder());
6180 6180
6181 v8SetReturnValueInt(info, impl->byteMethod()); 6181 v8SetReturnValueInt(info, impl->byteMethod());
6182 } 6182 }
6183 6183
6184 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6184 void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6185 { 6185 {
6186 TestObjectV8Internal::byteMethodMethod(info); 6186 TestObjectV8Internal::byteMethodMethod(info);
6187 } 6187 }
6188 6188
6189 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6189 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6190 { 6190 {
6191 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6191 TestObject* impl = V8TestObject::toImpl(info.Holder());
6192 6192
6193 v8SetReturnValue(info, impl->doubleMethod()); 6193 v8SetReturnValue(info, impl->doubleMethod());
6194 } 6194 }
6195 6195
6196 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) 6196 void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6197 { 6197 {
6198 TestObjectV8Internal::doubleMethodMethod(info); 6198 TestObjectV8Internal::doubleMethodMethod(info);
6199 } 6199 }
6200 6200
6201 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6201 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6202 { 6202 {
6203 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6203 TestObject* impl = V8TestObject::toImpl(info.Holder());
6204 6204
6205 v8SetReturnValue(info, impl->floatMethod()); 6205 v8SetReturnValue(info, impl->floatMethod());
6206 } 6206 }
6207 6207
6208 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6208 void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6209 { 6209 {
6210 TestObjectV8Internal::floatMethodMethod(info); 6210 TestObjectV8Internal::floatMethodMethod(info);
6211 } 6211 }
6212 6212
6213 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6213 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6214 { 6214 {
6215 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6215 TestObject* impl = V8TestObject::toImpl(info.Holder());
6216 6216
6217 v8SetReturnValueInt(info, impl->longMethod()); 6217 v8SetReturnValueInt(info, impl->longMethod());
6218 } 6218 }
6219 6219
6220 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6220 void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6221 { 6221 {
6222 TestObjectV8Internal::longMethodMethod(info); 6222 TestObjectV8Internal::longMethodMethod(info);
6223 } 6223 }
6224 6224
6225 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info ) 6225 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info )
6226 { 6226 {
6227 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6227 TestObject* impl = V8TestObject::toImpl(info.Holder());
6228 6228
6229 v8SetReturnValue(info, static_cast<double>(impl->longLongMethod())); 6229 v8SetReturnValue(info, static_cast<double>(impl->longLongMethod()));
6230 } 6230 }
6231 6231
6232 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) 6232 void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o)
6233 { 6233 {
6234 TestObjectV8Internal::longLongMethodMethod(info); 6234 TestObjectV8Internal::longLongMethodMethod(info);
6235 } 6235 }
6236 6236
6237 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6237 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6238 { 6238 {
6239 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6239 TestObject* impl = V8TestObject::toImpl(info.Holder());
6240 6240
6241 v8SetReturnValueUnsigned(info, impl->octetMethod()); 6241 v8SetReturnValueUnsigned(info, impl->octetMethod());
6242 } 6242 }
6243 6243
6244 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6244 void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6245 { 6245 {
6246 TestObjectV8Internal::octetMethodMethod(info); 6246 TestObjectV8Internal::octetMethodMethod(info);
6247 } 6247 }
6248 6248
6249 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6249 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6250 { 6250 {
6251 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6251 TestObject* impl = V8TestObject::toImpl(info.Holder());
6252 6252
6253 v8SetReturnValueInt(info, impl->shortMethod()); 6253 v8SetReturnValueInt(info, impl->shortMethod());
6254 } 6254 }
6255 6255
6256 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6256 void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6257 { 6257 {
6258 TestObjectV8Internal::shortMethodMethod(info); 6258 TestObjectV8Internal::shortMethodMethod(info);
6259 } 6259 }
6260 6260
6261 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6261 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6262 { 6262 {
6263 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6263 TestObject* impl = V8TestObject::toImpl(info.Holder());
6264 6264
6265 v8SetReturnValueUnsigned(info, impl->unsignedLongMethod()); 6265 v8SetReturnValueUnsigned(info, impl->unsignedLongMethod());
6266 } 6266 }
6267 6267
6268 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 6268 void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6269 { 6269 {
6270 TestObjectV8Internal::unsignedLongMethodMethod(info); 6270 TestObjectV8Internal::unsignedLongMethodMethod(info);
6271 } 6271 }
6272 6272
6273 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 6273 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
6274 { 6274 {
6275 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6275 TestObject* impl = V8TestObject::toImpl(info.Holder());
6276 6276
6277 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongMethod())); 6277 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongMethod()));
6278 } 6278 }
6279 6279
6280 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 6280 void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6281 { 6281 {
6282 TestObjectV8Internal::unsignedLongLongMethodMethod(info); 6282 TestObjectV8Internal::unsignedLongLongMethodMethod(info);
6283 } 6283 }
6284 6284
6285 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6285 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6286 { 6286 {
6287 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6287 TestObject* impl = V8TestObject::toImpl(info.Holder());
6288 6288
6289 v8SetReturnValueUnsigned(info, impl->unsignedShortMethod()); 6289 v8SetReturnValueUnsigned(info, impl->unsignedShortMethod());
6290 } 6290 }
6291 6291
6292 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 6292 void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info)
6293 { 6293 {
6294 TestObjectV8Internal::unsignedShortMethodMethod(info); 6294 TestObjectV8Internal::unsignedShortMethodMethod(info);
6295 } 6295 }
6296 6296
6297 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6297 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6298 { 6298 {
6299 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDateArg"); 6299 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDateArg");
6300 6300
6301 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6301 TestObject* impl = V8TestObject::toImpl(info.Holder());
6302 6302
6303 if (UNLIKELY(info.Length() < 1)) { 6303 if (UNLIKELY(info.Length() < 1)) {
6304 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6304 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6305 return; 6305 return;
6306 } 6306 }
6307 6307
6308 double dateArg; 6308 double dateArg;
6309 dateArg = toCoreDate(info.GetIsolate(), info[0], exceptionState); 6309 dateArg = toCoreDate(info.GetIsolate(), info[0], exceptionState);
6310 if (exceptionState.hadException()) 6310 if (exceptionState.hadException())
6311 return; 6311 return;
6312 6312
6313 impl->voidMethodDateArg(dateArg); 6313 impl->voidMethodDateArg(dateArg);
6314 } 6314 }
6315 6315
6316 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6316 void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6317 { 6317 {
6318 TestObjectV8Internal::voidMethodDateArgMethod(info); 6318 TestObjectV8Internal::voidMethodDateArgMethod(info);
6319 } 6319 }
6320 6320
6321 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6321 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6322 { 6322 {
6323 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6323 TestObject* impl = V8TestObject::toImpl(info.Holder());
6324 6324
6325 if (UNLIKELY(info.Length() < 1)) { 6325 if (UNLIKELY(info.Length() < 1)) {
6326 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodStringArg", "TestObject", ExceptionMessages::notEnough Arguments(1, info.Length()))); 6326 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodStringArg", "TestObject", ExceptionMessages::notEnough Arguments(1, info.Length())));
6327 return; 6327 return;
6328 } 6328 }
6329 6329
6330 V8StringResource<> stringArg; 6330 V8StringResource<> stringArg;
6331 stringArg = info[0]; 6331 stringArg = info[0];
6332 if (!stringArg.prepare()) 6332 if (!stringArg.prepare())
6333 return; 6333 return;
6334 6334
6335 impl->voidMethodStringArg(stringArg); 6335 impl->voidMethodStringArg(stringArg);
6336 } 6336 }
6337 6337
6338 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 6338 void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info)
6339 { 6339 {
6340 TestObjectV8Internal::voidMethodStringArgMethod(info); 6340 TestObjectV8Internal::voidMethodStringArgMethod(info);
6341 } 6341 }
6342 6342
6343 static void voidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6343 static void voidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6344 { 6344 {
6345 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodByteStringArg"); 6345 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodByteStringArg");
6346 6346
6347 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6347 TestObject* impl = V8TestObject::toImpl(info.Holder());
6348 6348
6349 if (UNLIKELY(info.Length() < 1)) { 6349 if (UNLIKELY(info.Length() < 1)) {
6350 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6350 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6351 return; 6351 return;
6352 } 6352 }
6353 6353
6354 V8StringResource<> stringArg; 6354 V8StringResource<> stringArg;
6355 stringArg = toByteString(info.GetIsolate(), info[0], exceptionState); 6355 stringArg = toByteString(info.GetIsolate(), info[0], exceptionState);
6356 if (exceptionState.hadException()) 6356 if (exceptionState.hadException())
6357 return; 6357 return;
6358 6358
6359 impl->voidMethodByteStringArg(stringArg); 6359 impl->voidMethodByteStringArg(stringArg);
6360 } 6360 }
6361 6361
6362 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6362 void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6363 { 6363 {
6364 TestObjectV8Internal::voidMethodByteStringArgMethod(info); 6364 TestObjectV8Internal::voidMethodByteStringArgMethod(info);
6365 } 6365 }
6366 6366
6367 static void voidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 6367 static void voidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
6368 { 6368 {
6369 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodUSVStringArg"); 6369 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodUSVStringArg");
6370 6370
6371 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6371 TestObject* impl = V8TestObject::toImpl(info.Holder());
6372 6372
6373 if (UNLIKELY(info.Length() < 1)) { 6373 if (UNLIKELY(info.Length() < 1)) {
6374 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6374 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6375 return; 6375 return;
6376 } 6376 }
6377 6377
6378 V8StringResource<> usvStringArg; 6378 V8StringResource<> usvStringArg;
6379 usvStringArg = toUSVString(info.GetIsolate(), info[0], exceptionState); 6379 usvStringArg = toUSVString(info.GetIsolate(), info[0], exceptionState);
6380 if (exceptionState.hadException()) 6380 if (exceptionState.hadException())
6381 return; 6381 return;
6382 6382
6383 impl->voidMethodUSVStringArg(usvStringArg); 6383 impl->voidMethodUSVStringArg(usvStringArg);
6384 } 6384 }
6385 6385
6386 static void voidMethodUSVStringArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 6386 void voidMethodUSVStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6387 { 6387 {
6388 TestObjectV8Internal::voidMethodUSVStringArgMethod(info); 6388 TestObjectV8Internal::voidMethodUSVStringArgMethod(info);
6389 } 6389 }
6390 6390
6391 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6391 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6392 { 6392 {
6393 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDOMTimeStampArg"); 6393 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDOMTimeStampArg");
6394 6394
6395 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6395 TestObject* impl = V8TestObject::toImpl(info.Holder());
6396 6396
6397 if (UNLIKELY(info.Length() < 1)) { 6397 if (UNLIKELY(info.Length() < 1)) {
6398 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6398 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6399 return; 6399 return;
6400 } 6400 }
6401 6401
6402 unsigned long long domTimeStampArg; 6402 unsigned long long domTimeStampArg;
6403 domTimeStampArg = toUInt64(info.GetIsolate(), info[0], NormalConversion, exc eptionState); 6403 domTimeStampArg = toUInt64(info.GetIsolate(), info[0], NormalConversion, exc eptionState);
6404 if (exceptionState.hadException()) 6404 if (exceptionState.hadException())
6405 return; 6405 return;
6406 6406
6407 impl->voidMethodDOMTimeStampArg(domTimeStampArg); 6407 impl->voidMethodDOMTimeStampArg(domTimeStampArg);
6408 } 6408 }
6409 6409
6410 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6410 void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
6411 { 6411 {
6412 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); 6412 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info);
6413 } 6413 }
6414 6414
6415 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 6415 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
6416 { 6416 {
6417 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodBooleanArg"); 6417 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodBooleanArg");
6418 6418
6419 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6419 TestObject* impl = V8TestObject::toImpl(info.Holder());
6420 6420
6421 if (UNLIKELY(info.Length() < 1)) { 6421 if (UNLIKELY(info.Length() < 1)) {
6422 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6422 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6423 return; 6423 return;
6424 } 6424 }
6425 6425
6426 bool booleanArg; 6426 bool booleanArg;
6427 booleanArg = toBoolean(info.GetIsolate(), info[0], exceptionState); 6427 booleanArg = toBoolean(info.GetIsolate(), info[0], exceptionState);
6428 if (exceptionState.hadException()) 6428 if (exceptionState.hadException())
6429 return; 6429 return;
6430 6430
6431 impl->voidMethodBooleanArg(booleanArg); 6431 impl->voidMethodBooleanArg(booleanArg);
6432 } 6432 }
6433 6433
6434 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6434 void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
6435 { 6435 {
6436 TestObjectV8Internal::voidMethodBooleanArgMethod(info); 6436 TestObjectV8Internal::voidMethodBooleanArgMethod(info);
6437 } 6437 }
6438 6438
6439 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6439 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6440 { 6440 {
6441 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodByteArg"); 6441 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodByteArg");
6442 6442
6443 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6443 TestObject* impl = V8TestObject::toImpl(info.Holder());
6444 6444
6445 if (UNLIKELY(info.Length() < 1)) { 6445 if (UNLIKELY(info.Length() < 1)) {
6446 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6446 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6447 return; 6447 return;
6448 } 6448 }
6449 6449
6450 int byteArg; 6450 int byteArg;
6451 byteArg = toInt8(info.GetIsolate(), info[0], NormalConversion, exceptionStat e); 6451 byteArg = toInt8(info.GetIsolate(), info[0], NormalConversion, exceptionStat e);
6452 if (exceptionState.hadException()) 6452 if (exceptionState.hadException())
6453 return; 6453 return;
6454 6454
6455 impl->voidMethodByteArg(byteArg); 6455 impl->voidMethodByteArg(byteArg);
6456 } 6456 }
6457 6457
6458 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6458 void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6459 { 6459 {
6460 TestObjectV8Internal::voidMethodByteArgMethod(info); 6460 TestObjectV8Internal::voidMethodByteArgMethod(info);
6461 } 6461 }
6462 6462
6463 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6463 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6464 { 6464 {
6465 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDoubleArg"); 6465 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDoubleArg");
6466 6466
6467 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6467 TestObject* impl = V8TestObject::toImpl(info.Holder());
6468 6468
6469 if (UNLIKELY(info.Length() < 1)) { 6469 if (UNLIKELY(info.Length() < 1)) {
6470 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6470 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6471 return; 6471 return;
6472 } 6472 }
6473 6473
6474 double doubleArg; 6474 double doubleArg;
6475 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState); 6475 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState);
6476 if (exceptionState.hadException()) 6476 if (exceptionState.hadException())
6477 return; 6477 return;
6478 6478
6479 impl->voidMethodDoubleArg(doubleArg); 6479 impl->voidMethodDoubleArg(doubleArg);
6480 } 6480 }
6481 6481
6482 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 6482 void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info)
6483 { 6483 {
6484 TestObjectV8Internal::voidMethodDoubleArgMethod(info); 6484 TestObjectV8Internal::voidMethodDoubleArgMethod(info);
6485 } 6485 }
6486 6486
6487 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6487 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6488 { 6488 {
6489 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodFloatArg"); 6489 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodFloatArg");
6490 6490
6491 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6491 TestObject* impl = V8TestObject::toImpl(info.Holder());
6492 6492
6493 if (UNLIKELY(info.Length() < 1)) { 6493 if (UNLIKELY(info.Length() < 1)) {
6494 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6494 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6495 return; 6495 return;
6496 } 6496 }
6497 6497
6498 float floatArg; 6498 float floatArg;
6499 floatArg = toRestrictedFloat(info.GetIsolate(), info[0], exceptionState); 6499 floatArg = toRestrictedFloat(info.GetIsolate(), info[0], exceptionState);
6500 if (exceptionState.hadException()) 6500 if (exceptionState.hadException())
6501 return; 6501 return;
6502 6502
6503 impl->voidMethodFloatArg(floatArg); 6503 impl->voidMethodFloatArg(floatArg);
6504 } 6504 }
6505 6505
6506 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 6506 void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6507 { 6507 {
6508 TestObjectV8Internal::voidMethodFloatArgMethod(info); 6508 TestObjectV8Internal::voidMethodFloatArgMethod(info);
6509 } 6509 }
6510 6510
6511 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6511 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6512 { 6512 {
6513 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongArg"); 6513 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongArg");
6514 6514
6515 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6515 TestObject* impl = V8TestObject::toImpl(info.Holder());
6516 6516
6517 if (UNLIKELY(info.Length() < 1)) { 6517 if (UNLIKELY(info.Length() < 1)) {
6518 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6518 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6519 return; 6519 return;
6520 } 6520 }
6521 6521
6522 int longArg; 6522 int longArg;
6523 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te); 6523 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
6524 if (exceptionState.hadException()) 6524 if (exceptionState.hadException())
6525 return; 6525 return;
6526 6526
6527 impl->voidMethodLongArg(longArg); 6527 impl->voidMethodLongArg(longArg);
6528 } 6528 }
6529 6529
6530 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6530 void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6531 { 6531 {
6532 TestObjectV8Internal::voidMethodLongArgMethod(info); 6532 TestObjectV8Internal::voidMethodLongArgMethod(info);
6533 } 6533 }
6534 6534
6535 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 6535 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
6536 { 6536 {
6537 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongLongArg"); 6537 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongLongArg");
6538 6538
6539 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6539 TestObject* impl = V8TestObject::toImpl(info.Holder());
6540 6540
6541 if (UNLIKELY(info.Length() < 1)) { 6541 if (UNLIKELY(info.Length() < 1)) {
6542 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6542 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6543 return; 6543 return;
6544 } 6544 }
6545 6545
6546 long long longLongArg; 6546 long long longLongArg;
6547 longLongArg = toInt64(info.GetIsolate(), info[0], NormalConversion, exceptio nState); 6547 longLongArg = toInt64(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
6548 if (exceptionState.hadException()) 6548 if (exceptionState.hadException())
6549 return; 6549 return;
6550 6550
6551 impl->voidMethodLongLongArg(longLongArg); 6551 impl->voidMethodLongLongArg(longLongArg);
6552 } 6552 }
6553 6553
6554 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 6554 void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
6555 { 6555 {
6556 TestObjectV8Internal::voidMethodLongLongArgMethod(info); 6556 TestObjectV8Internal::voidMethodLongLongArgMethod(info);
6557 } 6557 }
6558 6558
6559 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6559 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6560 { 6560 {
6561 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodOctetArg"); 6561 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodOctetArg");
6562 6562
6563 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6563 TestObject* impl = V8TestObject::toImpl(info.Holder());
6564 6564
6565 if (UNLIKELY(info.Length() < 1)) { 6565 if (UNLIKELY(info.Length() < 1)) {
6566 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6566 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6567 return; 6567 return;
6568 } 6568 }
6569 6569
6570 unsigned octetArg; 6570 unsigned octetArg;
6571 octetArg = toUInt8(info.GetIsolate(), info[0], NormalConversion, exceptionSt ate); 6571 octetArg = toUInt8(info.GetIsolate(), info[0], NormalConversion, exceptionSt ate);
6572 if (exceptionState.hadException()) 6572 if (exceptionState.hadException())
6573 return; 6573 return;
6574 6574
6575 impl->voidMethodOctetArg(octetArg); 6575 impl->voidMethodOctetArg(octetArg);
6576 } 6576 }
6577 6577
6578 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 6578 void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6579 { 6579 {
6580 TestObjectV8Internal::voidMethodOctetArgMethod(info); 6580 TestObjectV8Internal::voidMethodOctetArgMethod(info);
6581 } 6581 }
6582 6582
6583 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6583 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6584 { 6584 {
6585 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodShortArg"); 6585 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodShortArg");
6586 6586
6587 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6587 TestObject* impl = V8TestObject::toImpl(info.Holder());
6588 6588
6589 if (UNLIKELY(info.Length() < 1)) { 6589 if (UNLIKELY(info.Length() < 1)) {
6590 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6590 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6591 return; 6591 return;
6592 } 6592 }
6593 6593
6594 int shortArg; 6594 int shortArg;
6595 shortArg = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionSt ate); 6595 shortArg = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionSt ate);
6596 if (exceptionState.hadException()) 6596 if (exceptionState.hadException())
6597 return; 6597 return;
6598 6598
6599 impl->voidMethodShortArg(shortArg); 6599 impl->voidMethodShortArg(shortArg);
6600 } 6600 }
6601 6601
6602 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 6602 void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6603 { 6603 {
6604 TestObjectV8Internal::voidMethodShortArgMethod(info); 6604 TestObjectV8Internal::voidMethodShortArgMethod(info);
6605 } 6605 }
6606 6606
6607 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6607 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6608 { 6608 {
6609 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodUnsignedLongArg"); 6609 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodUnsignedLongArg");
6610 6610
6611 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6611 TestObject* impl = V8TestObject::toImpl(info.Holder());
6612 6612
6613 if (UNLIKELY(info.Length() < 1)) { 6613 if (UNLIKELY(info.Length() < 1)) {
6614 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6614 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6615 return; 6615 return;
6616 } 6616 }
6617 6617
6618 unsigned unsignedLongArg; 6618 unsigned unsignedLongArg;
6619 unsignedLongArg = toUInt32(info.GetIsolate(), info[0], NormalConversion, exc eptionState); 6619 unsignedLongArg = toUInt32(info.GetIsolate(), info[0], NormalConversion, exc eptionState);
6620 if (exceptionState.hadException()) 6620 if (exceptionState.hadException())
6621 return; 6621 return;
6622 6622
6623 impl->voidMethodUnsignedLongArg(unsignedLongArg); 6623 impl->voidMethodUnsignedLongArg(unsignedLongArg);
6624 } 6624 }
6625 6625
6626 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6626 void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
6627 { 6627 {
6628 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); 6628 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info);
6629 } 6629 }
6630 6630
6631 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 6631 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
6632 { 6632 {
6633 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodUnsignedLongLongArg"); 6633 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodUnsignedLongLongArg");
6634 6634
6635 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6635 TestObject* impl = V8TestObject::toImpl(info.Holder());
6636 6636
6637 if (UNLIKELY(info.Length() < 1)) { 6637 if (UNLIKELY(info.Length() < 1)) {
6638 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6638 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6639 return; 6639 return;
6640 } 6640 }
6641 6641
6642 unsigned long long unsignedLongLongArg; 6642 unsigned long long unsignedLongLongArg;
6643 unsignedLongLongArg = toUInt64(info.GetIsolate(), info[0], NormalConversion, exceptionState); 6643 unsignedLongLongArg = toUInt64(info.GetIsolate(), info[0], NormalConversion, exceptionState);
6644 if (exceptionState.hadException()) 6644 if (exceptionState.hadException())
6645 return; 6645 return;
6646 6646
6647 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); 6647 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg);
6648 } 6648 }
6649 6649
6650 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 6650 void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
6651 { 6651 {
6652 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); 6652 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info);
6653 } 6653 }
6654 6654
6655 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6655 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6656 { 6656 {
6657 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodUnsignedShortArg"); 6657 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodUnsignedShortArg");
6658 6658
6659 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6659 TestObject* impl = V8TestObject::toImpl(info.Holder());
6660 6660
6661 if (UNLIKELY(info.Length() < 1)) { 6661 if (UNLIKELY(info.Length() < 1)) {
6662 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6662 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6663 return; 6663 return;
6664 } 6664 }
6665 6665
6666 unsigned unsignedShortArg; 6666 unsigned unsignedShortArg;
6667 unsignedShortArg = toUInt16(info.GetIsolate(), info[0], NormalConversion, ex ceptionState); 6667 unsignedShortArg = toUInt16(info.GetIsolate(), info[0], NormalConversion, ex ceptionState);
6668 if (exceptionState.hadException()) 6668 if (exceptionState.hadException())
6669 return; 6669 return;
6670 6670
6671 impl->voidMethodUnsignedShortArg(unsignedShortArg); 6671 impl->voidMethodUnsignedShortArg(unsignedShortArg);
6672 } 6672 }
6673 6673
6674 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6674 void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
6675 { 6675 {
6676 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); 6676 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info);
6677 } 6677 }
6678 6678
6679 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6679 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6680 { 6680 {
6681 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6681 TestObject* impl = V8TestObject::toImpl(info.Holder());
6682 6682
6683 v8SetReturnValue(info, impl->testInterfaceEmptyMethod()); 6683 v8SetReturnValue(info, impl->testInterfaceEmptyMethod());
6684 } 6684 }
6685 6685
6686 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 6686 void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6687 { 6687 {
6688 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info); 6688 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info);
6689 } 6689 }
6690 6690
6691 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6691 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6692 { 6692 {
6693 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6693 TestObject* impl = V8TestObject::toImpl(info.Holder());
6694 6694
6695 if (UNLIKELY(info.Length() < 1)) { 6695 if (UNLIKELY(info.Length() < 1)) {
6696 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessage s::notEnoughArguments(1, info.Length()))); 6696 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessage s::notEnoughArguments(1, info.Length())));
6697 return; 6697 return;
6698 } 6698 }
6699 6699
6700 TestInterfaceEmpty* testInterfaceEmptyArg; 6700 TestInterfaceEmpty* testInterfaceEmptyArg;
6701 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]); 6701 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]);
6702 if (!testInterfaceEmptyArg) { 6702 if (!testInterfaceEmptyArg) {
6703 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); 6703 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."));
6704 6704
6705 return; 6705 return;
6706 } 6706 }
6707 6707
6708 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 6708 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
6709 } 6709 }
6710 6710
6711 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6711 void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
6712 { 6712 {
6713 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); 6713 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info);
6714 } 6714 }
6715 6715
6716 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 6716 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
6717 { 6717 {
6718 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongArgTestInterfaceEmptyArg"); 6718 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongArgTestInterfaceEmptyArg");
6719 6719
6720 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6720 TestObject* impl = V8TestObject::toImpl(info.Holder());
6721 6721
(...skipping 11 matching lines...) Expand all
6733 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[1]); 6733 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[1]);
6734 if (!testInterfaceEmptyArg) { 6734 if (!testInterfaceEmptyArg) {
6735 exceptionState.throwTypeError("parameter 2 is not of type 'TestInterface Empty'."); 6735 exceptionState.throwTypeError("parameter 2 is not of type 'TestInterface Empty'.");
6736 6736
6737 return; 6737 return;
6738 } 6738 }
6739 6739
6740 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ; 6740 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ;
6741 } 6741 }
6742 6742
6743 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 6743 void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6744 { 6744 {
6745 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); 6745 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info);
6746 } 6746 }
6747 6747
6748 static void voidCallbackFunctionMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6748 static void voidCallbackFunctionMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6749 { 6749 {
6750 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6750 TestObject* impl = V8TestObject::toImpl(info.Holder());
6751 6751
6752 v8SetReturnValue(info, impl->voidCallbackFunctionMethod()); 6752 v8SetReturnValue(info, impl->voidCallbackFunctionMethod());
6753 } 6753 }
6754 6754
6755 static void voidCallbackFunctionMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6755 void voidCallbackFunctionMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
6756 { 6756 {
6757 TestObjectV8Internal::voidCallbackFunctionMethodMethod(info); 6757 TestObjectV8Internal::voidCallbackFunctionMethodMethod(info);
6758 } 6758 }
6759 6759
6760 static void anyCallbackFunctionOptionalAnyArgMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) 6760 static void anyCallbackFunctionOptionalAnyArgMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info)
6761 { 6761 {
6762 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6762 TestObject* impl = V8TestObject::toImpl(info.Holder());
6763 6763
6764 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgMethod()); 6764 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgMethod());
6765 } 6765 }
6766 6766
6767 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6767 void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
6768 { 6768 {
6769 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info); 6769 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info);
6770 } 6770 }
6771 6771
6772 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 6772 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
6773 { 6773 {
6774 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6774 TestObject* impl = V8TestObject::toImpl(info.Holder());
6775 6775
6776 if (UNLIKELY(info.Length() < 1)) { 6776 if (UNLIKELY(info.Length() < 1)) {
6777 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionArg", "TestObject", ExceptionMessa ges::notEnoughArguments(1, info.Length()))); 6777 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionArg", "TestObject", ExceptionMessa ges::notEnoughArguments(1, info.Length())));
6778 return; 6778 return;
6779 } 6779 }
6780 6780
6781 VoidCallbackFunction* voidCallbackFunctionArg; 6781 VoidCallbackFunction* voidCallbackFunctionArg;
6782 if (!info[0]->IsFunction()) { 6782 if (!info[0]->IsFunction()) {
6783 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionArg", "TestObject", "The callback provided as parameter 1 is not a function.")); 6783 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionArg", "TestObject", "The callback provided as parameter 1 is not a function."));
6784 6784
6785 return; 6785 return;
6786 } 6786 }
6787 voidCallbackFunctionArg = VoidCallbackFunction::create(info.GetIsolate(), v8 ::Local<v8::Function>::Cast(info[0])); 6787 voidCallbackFunctionArg = VoidCallbackFunction::create(info.GetIsolate(), v8 ::Local<v8::Function>::Cast(info[0]));
6788 6788
6789 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); 6789 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg);
6790 } 6790 }
6791 6791
6792 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 6792 void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6793 { 6793 {
6794 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); 6794 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info);
6795 } 6795 }
6796 6796
6797 static void voidMethodOptionalVoidCallbackFunctionArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 6797 static void voidMethodOptionalVoidCallbackFunctionArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
6798 { 6798 {
6799 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6799 TestObject* impl = V8TestObject::toImpl(info.Holder());
6800 6800
6801 VoidCallbackFunction* voidCallbackFunctionArg; 6801 VoidCallbackFunction* voidCallbackFunctionArg;
6802 int numArgsPassed = info.Length(); 6802 int numArgsPassed = info.Length();
6803 while (numArgsPassed > 0) { 6803 while (numArgsPassed > 0) {
6804 if (!info[numArgsPassed - 1]->IsUndefined()) 6804 if (!info[numArgsPassed - 1]->IsUndefined())
6805 break; 6805 break;
6806 --numArgsPassed; 6806 --numArgsPassed;
6807 } 6807 }
6808 if (UNLIKELY(numArgsPassed <= 0)) { 6808 if (UNLIKELY(numArgsPassed <= 0)) {
6809 impl->voidMethodOptionalVoidCallbackFunctionArg(); 6809 impl->voidMethodOptionalVoidCallbackFunctionArg();
6810 return; 6810 return;
6811 } 6811 }
6812 if (!info[0]->IsFunction()) { 6812 if (!info[0]->IsFunction()) {
6813 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodOptionalVoidCallbackFunctionArg", "TestObject", "The c allback provided as parameter 1 is not a function.")); 6813 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodOptionalVoidCallbackFunctionArg", "TestObject", "The c allback provided as parameter 1 is not a function."));
6814 6814
6815 return; 6815 return;
6816 } 6816 }
6817 voidCallbackFunctionArg = VoidCallbackFunction::create(info.GetIsolate(), v8 ::Local<v8::Function>::Cast(info[0])); 6817 voidCallbackFunctionArg = VoidCallbackFunction::create(info.GetIsolate(), v8 ::Local<v8::Function>::Cast(info[0]));
6818 6818
6819 impl->voidMethodOptionalVoidCallbackFunctionArg(voidCallbackFunctionArg); 6819 impl->voidMethodOptionalVoidCallbackFunctionArg(voidCallbackFunctionArg);
6820 } 6820 }
6821 6821
6822 static void voidMethodOptionalVoidCallbackFunctionArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 6822 void voidMethodOptionalVoidCallbackFunctionArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
6823 { 6823 {
6824 TestObjectV8Internal::voidMethodOptionalVoidCallbackFunctionArgMethod(info); 6824 TestObjectV8Internal::voidMethodOptionalVoidCallbackFunctionArgMethod(info);
6825 } 6825 }
6826 6826
6827 static void voidMethodNullableVoidCallbackFunctionArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 6827 static void voidMethodNullableVoidCallbackFunctionArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
6828 { 6828 {
6829 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6829 TestObject* impl = V8TestObject::toImpl(info.Holder());
6830 6830
6831 if (UNLIKELY(info.Length() < 1)) { 6831 if (UNLIKELY(info.Length() < 1)) {
6832 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodNullableVoidCallbackFunctionArg", "TestObject", Except ionMessages::notEnoughArguments(1, info.Length()))); 6832 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodNullableVoidCallbackFunctionArg", "TestObject", Except ionMessages::notEnoughArguments(1, info.Length())));
6833 return; 6833 return;
6834 } 6834 }
6835 6835
6836 Nullable<VoidCallbackFunction*> voidCallbackFunctionArg; 6836 Nullable<VoidCallbackFunction*> voidCallbackFunctionArg;
6837 if (!info[0]->IsFunction() && !info[0]->IsNull()) { 6837 if (!info[0]->IsFunction() && !info[0]->IsNull()) {
6838 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodNullableVoidCallbackFunctionArg", "TestObject", "The c allback provided as parameter 1 is not a function.")); 6838 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodNullableVoidCallbackFunctionArg", "TestObject", "The c allback provided as parameter 1 is not a function."));
6839 6839
6840 return; 6840 return;
6841 } 6841 }
6842 voidCallbackFunctionArg = VoidCallbackFunction::create(info.GetIsolate(), v8 ::Local<v8::Function>::Cast(info[0])); 6842 voidCallbackFunctionArg = VoidCallbackFunction::create(info.GetIsolate(), v8 ::Local<v8::Function>::Cast(info[0]));
6843 6843
6844 impl->voidMethodNullableVoidCallbackFunctionArg(voidCallbackFunctionArg); 6844 impl->voidMethodNullableVoidCallbackFunctionArg(voidCallbackFunctionArg);
6845 } 6845 }
6846 6846
6847 static void voidMethodNullableVoidCallbackFunctionArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 6847 void voidMethodNullableVoidCallbackFunctionArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
6848 { 6848 {
6849 TestObjectV8Internal::voidMethodNullableVoidCallbackFunctionArgMethod(info); 6849 TestObjectV8Internal::voidMethodNullableVoidCallbackFunctionArgMethod(info);
6850 } 6850 }
6851 6851
6852 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info) 6852 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info)
6853 { 6853 {
6854 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6854 TestObject* impl = V8TestObject::toImpl(info.Holder());
6855 6855
6856 if (UNLIKELY(info.Length() < 1)) { 6856 if (UNLIKELY(info.Length() < 1)) {
6857 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodAnyCallbackFunctionOptionalAnyArg", "TestObject", Exce ptionMessages::notEnoughArguments(1, info.Length()))); 6857 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodAnyCallbackFunctionOptionalAnyArg", "TestObject", Exce ptionMessages::notEnoughArguments(1, info.Length())));
6858 return; 6858 return;
6859 } 6859 }
6860 6860
6861 AnyCallbackFunctionOptionalAnyArg* anyCallbackFunctionOptionalAnyArgArg; 6861 AnyCallbackFunctionOptionalAnyArg* anyCallbackFunctionOptionalAnyArgArg;
6862 if (!info[0]->IsFunction()) { 6862 if (!info[0]->IsFunction()) {
6863 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodAnyCallbackFunctionOptionalAnyArg", "TestObject", "The callback provided as parameter 1 is not a function.")); 6863 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodAnyCallbackFunctionOptionalAnyArg", "TestObject", "The callback provided as parameter 1 is not a function."));
6864 6864
6865 return; 6865 return;
6866 } 6866 }
6867 anyCallbackFunctionOptionalAnyArgArg = AnyCallbackFunctionOptionalAnyArg::cr eate(info.GetIsolate(), v8::Local<v8::Function>::Cast(info[0])); 6867 anyCallbackFunctionOptionalAnyArgArg = AnyCallbackFunctionOptionalAnyArg::cr eate(info.GetIsolate(), v8::Local<v8::Function>::Cast(info[0]));
6868 6868
6869 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg); 6869 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg);
6870 } 6870 }
6871 6871
6872 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 6872 void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6873 { 6873 {
6874 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info ); 6874 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info );
6875 } 6875 }
6876 6876
6877 static void voidMethodLongCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 6877 static void voidMethodLongCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
6878 { 6878 {
6879 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6879 TestObject* impl = V8TestObject::toImpl(info.Holder());
6880 6880
6881 if (UNLIKELY(info.Length() < 1)) { 6881 if (UNLIKELY(info.Length() < 1)) {
6882 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodLongCallbackFunctionArg", "TestObject", ExceptionMessa ges::notEnoughArguments(1, info.Length()))); 6882 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodLongCallbackFunctionArg", "TestObject", ExceptionMessa ges::notEnoughArguments(1, info.Length())));
6883 return; 6883 return;
6884 } 6884 }
6885 6885
6886 LongCallbackFunction* longCallbackFunctionArg; 6886 LongCallbackFunction* longCallbackFunctionArg;
6887 if (!info[0]->IsFunction()) { 6887 if (!info[0]->IsFunction()) {
6888 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodLongCallbackFunctionArg", "TestObject", "The callback provided as parameter 1 is not a function.")); 6888 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodLongCallbackFunctionArg", "TestObject", "The callback provided as parameter 1 is not a function."));
6889 6889
6890 return; 6890 return;
6891 } 6891 }
6892 longCallbackFunctionArg = LongCallbackFunction::create(info.GetIsolate(), v8 ::Local<v8::Function>::Cast(info[0])); 6892 longCallbackFunctionArg = LongCallbackFunction::create(info.GetIsolate(), v8 ::Local<v8::Function>::Cast(info[0]));
6893 6893
6894 impl->voidMethodLongCallbackFunctionArg(longCallbackFunctionArg); 6894 impl->voidMethodLongCallbackFunctionArg(longCallbackFunctionArg);
6895 } 6895 }
6896 6896
6897 static void voidMethodLongCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 6897 void voidMethodLongCallbackFunctionArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6898 { 6898 {
6899 TestObjectV8Internal::voidMethodLongCallbackFunctionArgMethod(info); 6899 TestObjectV8Internal::voidMethodLongCallbackFunctionArgMethod(info);
6900 } 6900 }
6901 6901
6902 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6902 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6903 { 6903 {
6904 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6904 TestObject* impl = V8TestObject::toImpl(info.Holder());
6905 6905
6906 v8SetReturnValue(info, impl->anyMethod().v8Value()); 6906 v8SetReturnValue(info, impl->anyMethod().v8Value());
6907 } 6907 }
6908 6908
6909 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6909 void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6910 { 6910 {
6911 TestObjectV8Internal::anyMethodMethod(info); 6911 TestObjectV8Internal::anyMethodMethod(info);
6912 } 6912 }
6913 6913
6914 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6914 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6915 { 6915 {
6916 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6916 TestObject* impl = V8TestObject::toImpl(info.Holder());
6917 6917
6918 if (UNLIKELY(info.Length() < 1)) { 6918 if (UNLIKELY(info.Length() < 1)) {
6919 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodEventTargetArg", "TestObject", ExceptionMessages::notE noughArguments(1, info.Length()))); 6919 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodEventTargetArg", "TestObject", ExceptionMessages::notE noughArguments(1, info.Length())));
6920 return; 6920 return;
6921 } 6921 }
6922 6922
6923 EventTarget* eventTargetArg; 6923 EventTarget* eventTargetArg;
6924 eventTargetArg = toEventTarget(info.GetIsolate(), info[0]); 6924 eventTargetArg = toEventTarget(info.GetIsolate(), info[0]);
6925 if (!eventTargetArg) { 6925 if (!eventTargetArg) {
6926 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodEventTargetArg", "TestObject", "parameter 1 is not of type 'EventTarget'.")); 6926 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodEventTargetArg", "TestObject", "parameter 1 is not of type 'EventTarget'."));
6927 6927
6928 return; 6928 return;
6929 } 6929 }
6930 6930
6931 impl->voidMethodEventTargetArg(eventTargetArg); 6931 impl->voidMethodEventTargetArg(eventTargetArg);
6932 } 6932 }
6933 6933
6934 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 6934 void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6935 { 6935 {
6936 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); 6936 TestObjectV8Internal::voidMethodEventTargetArgMethod(info);
6937 } 6937 }
6938 6938
6939 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 6939 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6940 { 6940 {
6941 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6941 TestObject* impl = V8TestObject::toImpl(info.Holder());
6942 6942
6943 if (UNLIKELY(info.Length() < 1)) { 6943 if (UNLIKELY(info.Length() < 1)) {
6944 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodAnyArg", "TestObject", ExceptionMessages::notEnoughArg uments(1, info.Length()))); 6944 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodAnyArg", "TestObject", ExceptionMessages::notEnoughArg uments(1, info.Length())));
6945 return; 6945 return;
6946 } 6946 }
6947 6947
6948 ScriptValue anyArg; 6948 ScriptValue anyArg;
6949 anyArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); 6949 anyArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]);
6950 6950
6951 impl->voidMethodAnyArg(anyArg); 6951 impl->voidMethodAnyArg(anyArg);
6952 } 6952 }
6953 6953
6954 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6954 void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6955 { 6955 {
6956 TestObjectV8Internal::voidMethodAnyArgMethod(info); 6956 TestObjectV8Internal::voidMethodAnyArgMethod(info);
6957 } 6957 }
6958 6958
6959 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6959 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6960 { 6960 {
6961 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6961 TestObject* impl = V8TestObject::toImpl(info.Holder());
6962 6962
6963 if (UNLIKELY(info.Length() < 1)) { 6963 if (UNLIKELY(info.Length() < 1)) {
6964 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodAttrArg", "TestObject", ExceptionMessages::notEnoughAr guments(1, info.Length()))); 6964 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodAttrArg", "TestObject", ExceptionMessages::notEnoughAr guments(1, info.Length())));
6965 return; 6965 return;
6966 } 6966 }
6967 6967
6968 Attr* attrArg; 6968 Attr* attrArg;
6969 attrArg = V8Attr::toImplWithTypeCheck(info.GetIsolate(), info[0]); 6969 attrArg = V8Attr::toImplWithTypeCheck(info.GetIsolate(), info[0]);
6970 if (!attrArg) { 6970 if (!attrArg) {
6971 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodAttrArg", "TestObject", "parameter 1 is not of type 'A ttr'.")); 6971 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodAttrArg", "TestObject", "parameter 1 is not of type 'A ttr'."));
6972 6972
6973 return; 6973 return;
6974 } 6974 }
6975 6975
6976 impl->voidMethodAttrArg(attrArg); 6976 impl->voidMethodAttrArg(attrArg);
6977 } 6977 }
6978 6978
6979 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6979 void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6980 { 6980 {
6981 TestObjectV8Internal::voidMethodAttrArgMethod(info); 6981 TestObjectV8Internal::voidMethodAttrArgMethod(info);
6982 } 6982 }
6983 6983
6984 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 6984 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
6985 { 6985 {
6986 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6986 TestObject* impl = V8TestObject::toImpl(info.Holder());
6987 6987
6988 if (UNLIKELY(info.Length() < 1)) { 6988 if (UNLIKELY(info.Length() < 1)) {
6989 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocumentArg", "TestObject", ExceptionMessages::notEnou ghArguments(1, info.Length()))); 6989 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocumentArg", "TestObject", ExceptionMessages::notEnou ghArguments(1, info.Length())));
6990 return; 6990 return;
6991 } 6991 }
6992 6992
6993 Document* documentArg; 6993 Document* documentArg;
6994 documentArg = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); 6994 documentArg = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
6995 if (!documentArg) { 6995 if (!documentArg) {
6996 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocumentArg", "TestObject", "parameter 1 is not of typ e 'Document'.")); 6996 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocumentArg", "TestObject", "parameter 1 is not of typ e 'Document'."));
6997 6997
6998 return; 6998 return;
6999 } 6999 }
7000 7000
7001 impl->voidMethodDocumentArg(documentArg); 7001 impl->voidMethodDocumentArg(documentArg);
7002 } 7002 }
7003 7003
7004 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 7004 void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
7005 { 7005 {
7006 TestObjectV8Internal::voidMethodDocumentArgMethod(info); 7006 TestObjectV8Internal::voidMethodDocumentArgMethod(info);
7007 } 7007 }
7008 7008
7009 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 7009 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7010 { 7010 {
7011 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7011 TestObject* impl = V8TestObject::toImpl(info.Holder());
7012 7012
7013 if (UNLIKELY(info.Length() < 1)) { 7013 if (UNLIKELY(info.Length() < 1)) {
7014 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocumentTypeArg", "TestObject", ExceptionMessages::not EnoughArguments(1, info.Length()))); 7014 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocumentTypeArg", "TestObject", ExceptionMessages::not EnoughArguments(1, info.Length())));
7015 return; 7015 return;
7016 } 7016 }
7017 7017
7018 DocumentType* documentTypeArg; 7018 DocumentType* documentTypeArg;
7019 documentTypeArg = V8DocumentType::toImplWithTypeCheck(info.GetIsolate(), inf o[0]); 7019 documentTypeArg = V8DocumentType::toImplWithTypeCheck(info.GetIsolate(), inf o[0]);
7020 if (!documentTypeArg) { 7020 if (!documentTypeArg) {
7021 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocumentTypeArg", "TestObject", "parameter 1 is not of type 'DocumentType'.")); 7021 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocumentTypeArg", "TestObject", "parameter 1 is not of type 'DocumentType'."));
7022 7022
7023 return; 7023 return;
7024 } 7024 }
7025 7025
7026 impl->voidMethodDocumentTypeArg(documentTypeArg); 7026 impl->voidMethodDocumentTypeArg(documentTypeArg);
7027 } 7027 }
7028 7028
7029 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 7029 void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
7030 { 7030 {
7031 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); 7031 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info);
7032 } 7032 }
7033 7033
7034 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 7034 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
7035 { 7035 {
7036 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7036 TestObject* impl = V8TestObject::toImpl(info.Holder());
7037 7037
7038 if (UNLIKELY(info.Length() < 1)) { 7038 if (UNLIKELY(info.Length() < 1)) {
7039 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodElementArg", "TestObject", ExceptionMessages::notEnoug hArguments(1, info.Length()))); 7039 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodElementArg", "TestObject", ExceptionMessages::notEnoug hArguments(1, info.Length())));
7040 return; 7040 return;
7041 } 7041 }
7042 7042
7043 Element* elementArg; 7043 Element* elementArg;
7044 elementArg = V8Element::toImplWithTypeCheck(info.GetIsolate(), info[0]); 7044 elementArg = V8Element::toImplWithTypeCheck(info.GetIsolate(), info[0]);
7045 if (!elementArg) { 7045 if (!elementArg) {
7046 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodElementArg", "TestObject", "parameter 1 is not of type 'Element'.")); 7046 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodElementArg", "TestObject", "parameter 1 is not of type 'Element'."));
7047 7047
7048 return; 7048 return;
7049 } 7049 }
7050 7050
7051 impl->voidMethodElementArg(elementArg); 7051 impl->voidMethodElementArg(elementArg);
7052 } 7052 }
7053 7053
7054 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 7054 void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
7055 { 7055 {
7056 TestObjectV8Internal::voidMethodElementArgMethod(info); 7056 TestObjectV8Internal::voidMethodElementArgMethod(info);
7057 } 7057 }
7058 7058
7059 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7059 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7060 { 7060 {
7061 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7061 TestObject* impl = V8TestObject::toImpl(info.Holder());
7062 7062
7063 if (UNLIKELY(info.Length() < 1)) { 7063 if (UNLIKELY(info.Length() < 1)) {
7064 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodNodeArg", "TestObject", ExceptionMessages::notEnoughAr guments(1, info.Length()))); 7064 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodNodeArg", "TestObject", ExceptionMessages::notEnoughAr guments(1, info.Length())));
7065 return; 7065 return;
7066 } 7066 }
7067 7067
7068 Node* nodeArg; 7068 Node* nodeArg;
7069 nodeArg = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]); 7069 nodeArg = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
7070 if (!nodeArg) { 7070 if (!nodeArg) {
7071 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodNodeArg", "TestObject", "parameter 1 is not of type 'N ode'.")); 7071 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodNodeArg", "TestObject", "parameter 1 is not of type 'N ode'."));
7072 7072
7073 return; 7073 return;
7074 } 7074 }
7075 7075
7076 impl->voidMethodNodeArg(nodeArg); 7076 impl->voidMethodNodeArg(nodeArg);
7077 } 7077 }
7078 7078
7079 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7079 void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7080 { 7080 {
7081 TestObjectV8Internal::voidMethodNodeArgMethod(info); 7081 TestObjectV8Internal::voidMethodNodeArgMethod(info);
7082 } 7082 }
7083 7083
7084 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7084 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7085 { 7085 {
7086 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7086 TestObject* impl = V8TestObject::toImpl(info.Holder());
7087 7087
7088 v8SetReturnValue(info, impl->arrayBufferMethod()); 7088 v8SetReturnValue(info, impl->arrayBufferMethod());
7089 } 7089 }
7090 7090
7091 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7091 void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7092 { 7092 {
7093 TestObjectV8Internal::arrayBufferMethodMethod(info); 7093 TestObjectV8Internal::arrayBufferMethodMethod(info);
7094 } 7094 }
7095 7095
7096 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 7096 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
7097 { 7097 {
7098 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7098 TestObject* impl = V8TestObject::toImpl(info.Holder());
7099 7099
7100 v8SetReturnValue(info, impl->arrayBufferViewMethod()); 7100 v8SetReturnValue(info, impl->arrayBufferViewMethod());
7101 } 7101 }
7102 7102
7103 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 7103 void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
7104 { 7104 {
7105 TestObjectV8Internal::arrayBufferViewMethodMethod(info); 7105 TestObjectV8Internal::arrayBufferViewMethodMethod(info);
7106 } 7106 }
7107 7107
7108 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7108 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7109 { 7109 {
7110 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7110 TestObject* impl = V8TestObject::toImpl(info.Holder());
7111 7111
7112 v8SetReturnValue(info, impl->float32ArrayMethod()); 7112 v8SetReturnValue(info, impl->float32ArrayMethod());
7113 } 7113 }
7114 7114
7115 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 7115 void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7116 { 7116 {
7117 TestObjectV8Internal::float32ArrayMethodMethod(info); 7117 TestObjectV8Internal::float32ArrayMethodMethod(info);
7118 } 7118 }
7119 7119
7120 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 7120 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
7121 { 7121 {
7122 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7122 TestObject* impl = V8TestObject::toImpl(info.Holder());
7123 7123
7124 v8SetReturnValue(info, impl->int32ArrayMethod()); 7124 v8SetReturnValue(info, impl->int32ArrayMethod());
7125 } 7125 }
7126 7126
7127 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 7127 void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7128 { 7128 {
7129 TestObjectV8Internal::int32ArrayMethodMethod(info); 7129 TestObjectV8Internal::int32ArrayMethodMethod(info);
7130 } 7130 }
7131 7131
7132 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 7132 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
7133 { 7133 {
7134 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7134 TestObject* impl = V8TestObject::toImpl(info.Holder());
7135 7135
7136 v8SetReturnValue(info, impl->uint8ArrayMethod()); 7136 v8SetReturnValue(info, impl->uint8ArrayMethod());
7137 } 7137 }
7138 7138
7139 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 7139 void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7140 { 7140 {
7141 TestObjectV8Internal::uint8ArrayMethodMethod(info); 7141 TestObjectV8Internal::uint8ArrayMethodMethod(info);
7142 } 7142 }
7143 7143
7144 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 7144 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
7145 { 7145 {
7146 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7146 TestObject* impl = V8TestObject::toImpl(info.Holder());
7147 7147
7148 if (UNLIKELY(info.Length() < 1)) { 7148 if (UNLIKELY(info.Length() < 1)) {
7149 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferArg", "TestObject", ExceptionMessages::notE noughArguments(1, info.Length()))); 7149 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferArg", "TestObject", ExceptionMessages::notE noughArguments(1, info.Length())));
7150 return; 7150 return;
7151 } 7151 }
7152 7152
7153 TestArrayBuffer* arrayBufferArg; 7153 TestArrayBuffer* arrayBufferArg;
7154 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Local< v8::ArrayBuffer>::Cast(info[0])) : 0; 7154 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Local< v8::ArrayBuffer>::Cast(info[0])) : 0;
7155 if (!arrayBufferArg) { 7155 if (!arrayBufferArg) {
7156 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferArg", "TestObject", "parameter 1 is not of type 'ArrayBuffer'.")); 7156 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferArg", "TestObject", "parameter 1 is not of type 'ArrayBuffer'."));
7157 7157
7158 return; 7158 return;
7159 } 7159 }
7160 7160
7161 impl->voidMethodArrayBufferArg(arrayBufferArg); 7161 impl->voidMethodArrayBufferArg(arrayBufferArg);
7162 } 7162 }
7163 7163
7164 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 7164 void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
7165 { 7165 {
7166 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); 7166 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info);
7167 } 7167 }
7168 7168
7169 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 7169 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
7170 { 7170 {
7171 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7171 TestObject* impl = V8TestObject::toImpl(info.Holder());
7172 7172
7173 if (UNLIKELY(info.Length() < 1)) { 7173 if (UNLIKELY(info.Length() < 1)) {
7174 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferOrNullArg", "TestObject", ExceptionMessages ::notEnoughArguments(1, info.Length()))); 7174 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferOrNullArg", "TestObject", ExceptionMessages ::notEnoughArguments(1, info.Length())));
7175 return; 7175 return;
7176 } 7176 }
7177 7177
7178 TestArrayBuffer* arrayBufferArg; 7178 TestArrayBuffer* arrayBufferArg;
7179 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Local< v8::ArrayBuffer>::Cast(info[0])) : 0; 7179 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Local< v8::ArrayBuffer>::Cast(info[0])) : 0;
7180 if (!arrayBufferArg && !isUndefinedOrNull(info[0])) { 7180 if (!arrayBufferArg && !isUndefinedOrNull(info[0])) {
7181 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferOrNullArg", "TestObject", "parameter 1 is n ot of type 'ArrayBuffer'.")); 7181 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferOrNullArg", "TestObject", "parameter 1 is n ot of type 'ArrayBuffer'."));
7182 7182
7183 return; 7183 return;
7184 } 7184 }
7185 7185
7186 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); 7186 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg);
7187 } 7187 }
7188 7188
7189 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 7189 void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
7190 { 7190 {
7191 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); 7191 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info);
7192 } 7192 }
7193 7193
7194 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 7194 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
7195 { 7195 {
7196 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7196 TestObject* impl = V8TestObject::toImpl(info.Holder());
7197 7197
7198 if (UNLIKELY(info.Length() < 1)) { 7198 if (UNLIKELY(info.Length() < 1)) {
7199 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferViewArg", "TestObject", ExceptionMessages:: notEnoughArguments(1, info.Length()))); 7199 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferViewArg", "TestObject", ExceptionMessages:: notEnoughArguments(1, info.Length())));
7200 return; 7200 return;
7201 } 7201 }
7202 7202
7203 TestArrayBufferView* arrayBufferViewArg; 7203 TestArrayBufferView* arrayBufferViewArg;
7204 arrayBufferViewArg = info[0]->IsArrayBufferView() ? V8ArrayBufferView::toImp l(v8::Local<v8::ArrayBufferView>::Cast(info[0])) : 0; 7204 arrayBufferViewArg = info[0]->IsArrayBufferView() ? V8ArrayBufferView::toImp l(v8::Local<v8::ArrayBufferView>::Cast(info[0])) : 0;
7205 if (!arrayBufferViewArg) { 7205 if (!arrayBufferViewArg) {
7206 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferViewArg", "TestObject", "parameter 1 is not of type 'ArrayBufferView'.")); 7206 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodArrayBufferViewArg", "TestObject", "parameter 1 is not of type 'ArrayBufferView'."));
7207 7207
7208 return; 7208 return;
7209 } 7209 }
7210 7210
7211 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); 7211 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
7212 } 7212 }
7213 7213
7214 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 7214 void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
7215 { 7215 {
7216 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); 7216 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info);
7217 } 7217 }
7218 7218
7219 static void voidMethodFlexibleArrayBufferViewArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 7219 static void voidMethodFlexibleArrayBufferViewArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7220 { 7220 {
7221 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7221 TestObject* impl = V8TestObject::toImpl(info.Holder());
7222 7222
7223 if (UNLIKELY(info.Length() < 1)) { 7223 if (UNLIKELY(info.Length() < 1)) {
7224 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFlexibleArrayBufferViewArg", "TestObject", ExceptionMe ssages::notEnoughArguments(1, info.Length()))); 7224 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFlexibleArrayBufferViewArg", "TestObject", ExceptionMe ssages::notEnoughArguments(1, info.Length())));
7225 return; 7225 return;
7226 } 7226 }
7227 7227
7228 FlexibleArrayBufferView arrayBufferViewArg; 7228 FlexibleArrayBufferView arrayBufferViewArg;
7229 toFlexibleArrayBufferView(info.GetIsolate(), info[0], arrayBufferViewArg, al locateFlexibleArrayBufferViewStorage(info[0])); 7229 toFlexibleArrayBufferView(info.GetIsolate(), info[0], arrayBufferViewArg, al locateFlexibleArrayBufferViewStorage(info[0]));
7230 if (!arrayBufferViewArg) { 7230 if (!arrayBufferViewArg) {
7231 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFlexibleArrayBufferViewArg", "TestObject", "parameter 1 is not of type 'ArrayBufferView'.")); 7231 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFlexibleArrayBufferViewArg", "TestObject", "parameter 1 is not of type 'ArrayBufferView'."));
7232 7232
7233 return; 7233 return;
7234 } 7234 }
7235 7235
7236 impl->voidMethodFlexibleArrayBufferViewArg(arrayBufferViewArg); 7236 impl->voidMethodFlexibleArrayBufferViewArg(arrayBufferViewArg);
7237 } 7237 }
7238 7238
7239 static void voidMethodFlexibleArrayBufferViewArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 7239 void voidMethodFlexibleArrayBufferViewArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
7240 { 7240 {
7241 TestObjectV8Internal::voidMethodFlexibleArrayBufferViewArgMethod(info); 7241 TestObjectV8Internal::voidMethodFlexibleArrayBufferViewArgMethod(info);
7242 } 7242 }
7243 7243
7244 static void voidMethodFlexibleArrayBufferViewTypedArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 7244 static void voidMethodFlexibleArrayBufferViewTypedArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
7245 { 7245 {
7246 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7246 TestObject* impl = V8TestObject::toImpl(info.Holder());
7247 7247
7248 if (UNLIKELY(info.Length() < 1)) { 7248 if (UNLIKELY(info.Length() < 1)) {
7249 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFlexibleArrayBufferViewTypedArg", "TestObject", Except ionMessages::notEnoughArguments(1, info.Length()))); 7249 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFlexibleArrayBufferViewTypedArg", "TestObject", Except ionMessages::notEnoughArguments(1, info.Length())));
7250 return; 7250 return;
7251 } 7251 }
7252 7252
7253 FlexibleFloat32ArrayView typedArrayBufferViewArg; 7253 FlexibleFloat32ArrayView typedArrayBufferViewArg;
7254 toFlexibleArrayBufferView(info.GetIsolate(), info[0], typedArrayBufferViewAr g, allocateFlexibleArrayBufferViewStorage(info[0])); 7254 toFlexibleArrayBufferView(info.GetIsolate(), info[0], typedArrayBufferViewAr g, allocateFlexibleArrayBufferViewStorage(info[0]));
7255 if (!typedArrayBufferViewArg) { 7255 if (!typedArrayBufferViewArg) {
7256 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFlexibleArrayBufferViewTypedArg", "TestObject", "param eter 1 is not of type 'Float32Array'.")); 7256 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFlexibleArrayBufferViewTypedArg", "TestObject", "param eter 1 is not of type 'Float32Array'."));
7257 7257
7258 return; 7258 return;
7259 } 7259 }
7260 7260
7261 impl->voidMethodFlexibleArrayBufferViewTypedArg(typedArrayBufferViewArg); 7261 impl->voidMethodFlexibleArrayBufferViewTypedArg(typedArrayBufferViewArg);
7262 } 7262 }
7263 7263
7264 static void voidMethodFlexibleArrayBufferViewTypedArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 7264 void voidMethodFlexibleArrayBufferViewTypedArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
7265 { 7265 {
7266 TestObjectV8Internal::voidMethodFlexibleArrayBufferViewTypedArgMethod(info); 7266 TestObjectV8Internal::voidMethodFlexibleArrayBufferViewTypedArgMethod(info);
7267 } 7267 }
7268 7268
7269 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 7269 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7270 { 7270 {
7271 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7271 TestObject* impl = V8TestObject::toImpl(info.Holder());
7272 7272
7273 if (UNLIKELY(info.Length() < 1)) { 7273 if (UNLIKELY(info.Length() < 1)) {
7274 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFloat32ArrayArg", "TestObject", ExceptionMessages::not EnoughArguments(1, info.Length()))); 7274 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFloat32ArrayArg", "TestObject", ExceptionMessages::not EnoughArguments(1, info.Length())));
7275 return; 7275 return;
7276 } 7276 }
7277 7277
7278 DOMFloat32Array* float32ArrayArg; 7278 DOMFloat32Array* float32ArrayArg;
7279 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8::Loc al<v8::Float32Array>::Cast(info[0])) : 0; 7279 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8::Loc al<v8::Float32Array>::Cast(info[0])) : 0;
7280 if (!float32ArrayArg) { 7280 if (!float32ArrayArg) {
7281 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFloat32ArrayArg", "TestObject", "parameter 1 is not of type 'Float32Array'.")); 7281 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodFloat32ArrayArg", "TestObject", "parameter 1 is not of type 'Float32Array'."));
7282 7282
7283 return; 7283 return;
7284 } 7284 }
7285 7285
7286 impl->voidMethodFloat32ArrayArg(float32ArrayArg); 7286 impl->voidMethodFloat32ArrayArg(float32ArrayArg);
7287 } 7287 }
7288 7288
7289 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 7289 void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
7290 { 7290 {
7291 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); 7291 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info);
7292 } 7292 }
7293 7293
7294 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 7294 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
7295 { 7295 {
7296 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7296 TestObject* impl = V8TestObject::toImpl(info.Holder());
7297 7297
7298 if (UNLIKELY(info.Length() < 1)) { 7298 if (UNLIKELY(info.Length() < 1)) {
7299 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodInt32ArrayArg", "TestObject", ExceptionMessages::notEn oughArguments(1, info.Length()))); 7299 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodInt32ArrayArg", "TestObject", ExceptionMessages::notEn oughArguments(1, info.Length())));
7300 return; 7300 return;
7301 } 7301 }
7302 7302
7303 DOMInt32Array* int32ArrayArg; 7303 DOMInt32Array* int32ArrayArg;
7304 int32ArrayArg = info[0]->IsInt32Array() ? V8Int32Array::toImpl(v8::Local<v8: :Int32Array>::Cast(info[0])) : 0; 7304 int32ArrayArg = info[0]->IsInt32Array() ? V8Int32Array::toImpl(v8::Local<v8: :Int32Array>::Cast(info[0])) : 0;
7305 if (!int32ArrayArg) { 7305 if (!int32ArrayArg) {
7306 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodInt32ArrayArg", "TestObject", "parameter 1 is not of t ype 'Int32Array'.")); 7306 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodInt32ArrayArg", "TestObject", "parameter 1 is not of t ype 'Int32Array'."));
7307 7307
7308 return; 7308 return;
7309 } 7309 }
7310 7310
7311 impl->voidMethodInt32ArrayArg(int32ArrayArg); 7311 impl->voidMethodInt32ArrayArg(int32ArrayArg);
7312 } 7312 }
7313 7313
7314 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 7314 void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
7315 { 7315 {
7316 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); 7316 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info);
7317 } 7317 }
7318 7318
7319 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 7319 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
7320 { 7320 {
7321 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7321 TestObject* impl = V8TestObject::toImpl(info.Holder());
7322 7322
7323 if (UNLIKELY(info.Length() < 1)) { 7323 if (UNLIKELY(info.Length() < 1)) {
7324 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodUint8ArrayArg", "TestObject", ExceptionMessages::notEn oughArguments(1, info.Length()))); 7324 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodUint8ArrayArg", "TestObject", ExceptionMessages::notEn oughArguments(1, info.Length())));
7325 return; 7325 return;
7326 } 7326 }
7327 7327
7328 DOMUint8Array* uint8ArrayArg; 7328 DOMUint8Array* uint8ArrayArg;
7329 uint8ArrayArg = info[0]->IsUint8Array() ? V8Uint8Array::toImpl(v8::Local<v8: :Uint8Array>::Cast(info[0])) : 0; 7329 uint8ArrayArg = info[0]->IsUint8Array() ? V8Uint8Array::toImpl(v8::Local<v8: :Uint8Array>::Cast(info[0])) : 0;
7330 if (!uint8ArrayArg) { 7330 if (!uint8ArrayArg) {
7331 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodUint8ArrayArg", "TestObject", "parameter 1 is not of t ype 'Uint8Array'.")); 7331 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodUint8ArrayArg", "TestObject", "parameter 1 is not of t ype 'Uint8Array'."));
7332 7332
7333 return; 7333 return;
7334 } 7334 }
7335 7335
7336 impl->voidMethodUint8ArrayArg(uint8ArrayArg); 7336 impl->voidMethodUint8ArrayArg(uint8ArrayArg);
7337 } 7337 }
7338 7338
7339 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 7339 void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
7340 { 7340 {
7341 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); 7341 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info);
7342 } 7342 }
7343 7343
7344 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf o) 7344 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf o)
7345 { 7345 {
7346 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7346 TestObject* impl = V8TestObject::toImpl(info.Holder());
7347 7347
7348 v8SetReturnValue(info, toV8(impl->longArrayMethod(), info.Holder(), info.Get Isolate())); 7348 v8SetReturnValue(info, toV8(impl->longArrayMethod(), info.Holder(), info.Get Isolate()));
7349 } 7349 }
7350 7350
7351 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info) 7351 void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
7352 { 7352 {
7353 TestObjectV8Internal::longArrayMethodMethod(info); 7353 TestObjectV8Internal::longArrayMethodMethod(info);
7354 } 7354 }
7355 7355
7356 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7356 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7357 { 7357 {
7358 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7358 TestObject* impl = V8TestObject::toImpl(info.Holder());
7359 7359
7360 v8SetReturnValue(info, toV8(impl->stringArrayMethod(), info.Holder(), info.G etIsolate())); 7360 v8SetReturnValue(info, toV8(impl->stringArrayMethod(), info.Holder(), info.G etIsolate()));
7361 } 7361 }
7362 7362
7363 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7363 void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7364 { 7364 {
7365 TestObjectV8Internal::stringArrayMethodMethod(info); 7365 TestObjectV8Internal::stringArrayMethodMethod(info);
7366 } 7366 }
7367 7367
7368 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 7368 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
7369 { 7369 {
7370 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7370 TestObject* impl = V8TestObject::toImpl(info.Holder());
7371 7371
7372 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayMethod(), info.Hold er(), info.GetIsolate())); 7372 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayMethod(), info.Hold er(), info.GetIsolate()));
7373 } 7373 }
7374 7374
7375 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 7375 void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
7376 { 7376 {
7377 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info); 7377 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info);
7378 } 7378 }
7379 7379
7380 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 7380 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
7381 { 7381 {
7382 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodArrayLongArg"); 7382 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodArrayLongArg");
7383 7383
7384 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7384 TestObject* impl = V8TestObject::toImpl(info.Holder());
7385 7385
7386 if (UNLIKELY(info.Length() < 1)) { 7386 if (UNLIKELY(info.Length() < 1)) {
7387 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7387 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7388 return; 7388 return;
7389 } 7389 }
7390 7390
7391 Vector<int> arrayLongArg; 7391 Vector<int> arrayLongArg;
7392 arrayLongArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), excep tionState); 7392 arrayLongArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), excep tionState);
7393 if (exceptionState.hadException()) 7393 if (exceptionState.hadException())
7394 return; 7394 return;
7395 7395
7396 impl->voidMethodArrayLongArg(arrayLongArg); 7396 impl->voidMethodArrayLongArg(arrayLongArg);
7397 } 7397 }
7398 7398
7399 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 7399 void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info)
7400 { 7400 {
7401 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); 7401 TestObjectV8Internal::voidMethodArrayLongArgMethod(info);
7402 } 7402 }
7403 7403
7404 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 7404 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
7405 { 7405 {
7406 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodArrayStringArg"); 7406 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodArrayStringArg");
7407 7407
7408 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7408 TestObject* impl = V8TestObject::toImpl(info.Holder());
7409 7409
7410 if (UNLIKELY(info.Length() < 1)) { 7410 if (UNLIKELY(info.Length() < 1)) {
7411 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7411 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7412 return; 7412 return;
7413 } 7413 }
7414 7414
7415 Vector<String> arrayStringArg; 7415 Vector<String> arrayStringArg;
7416 arrayStringArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState); 7416 arrayStringArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState);
7417 if (exceptionState.hadException()) 7417 if (exceptionState.hadException())
7418 return; 7418 return;
7419 7419
7420 impl->voidMethodArrayStringArg(arrayStringArg); 7420 impl->voidMethodArrayStringArg(arrayStringArg);
7421 } 7421 }
7422 7422
7423 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 7423 void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
7424 { 7424 {
7425 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); 7425 TestObjectV8Internal::voidMethodArrayStringArgMethod(info);
7426 } 7426 }
7427 7427
7428 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 7428 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7429 { 7429 {
7430 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodArrayTestInterfaceEmptyArg"); 7430 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodArrayTestInterfaceEmptyArg");
7431 7431
7432 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7432 TestObject* impl = V8TestObject::toImpl(info.Holder());
7433 7433
7434 if (UNLIKELY(info.Length() < 1)) { 7434 if (UNLIKELY(info.Length() < 1)) {
7435 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7435 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7436 return; 7436 return;
7437 } 7437 }
7438 7438
7439 HeapVector<Member<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg; 7439 HeapVector<Member<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg;
7440 arrayTestInterfaceEmptyArg = (toMemberNativeArray<TestInterfaceEmpty>(info[0 ], 1, info.GetIsolate(), exceptionState)); 7440 arrayTestInterfaceEmptyArg = (toMemberNativeArray<TestInterfaceEmpty>(info[0 ], 1, info.GetIsolate(), exceptionState));
7441 if (exceptionState.hadException()) 7441 if (exceptionState.hadException())
7442 return; 7442 return;
7443 7443
7444 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); 7444 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg);
7445 } 7445 }
7446 7446
7447 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 7447 void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
7448 { 7448 {
7449 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); 7449 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info);
7450 } 7450 }
7451 7451
7452 static void voidMethodNullableArrayLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 7452 static void voidMethodNullableArrayLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
7453 { 7453 {
7454 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodNullableArrayLongArg"); 7454 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodNullableArrayLongArg");
7455 7455
7456 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7456 TestObject* impl = V8TestObject::toImpl(info.Holder());
7457 7457
7458 if (UNLIKELY(info.Length() < 1)) { 7458 if (UNLIKELY(info.Length() < 1)) {
7459 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7459 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7460 return; 7460 return;
7461 } 7461 }
7462 7462
7463 Nullable<Vector<int>> arrayLongArg; 7463 Nullable<Vector<int>> arrayLongArg;
7464 if (!isUndefinedOrNull(info[0])) { 7464 if (!isUndefinedOrNull(info[0])) {
7465 arrayLongArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), e xceptionState); 7465 arrayLongArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), e xceptionState);
7466 if (exceptionState.hadException()) 7466 if (exceptionState.hadException())
7467 return; 7467 return;
7468 } 7468 }
7469 7469
7470 impl->voidMethodNullableArrayLongArg(arrayLongArg); 7470 impl->voidMethodNullableArrayLongArg(arrayLongArg);
7471 } 7471 }
7472 7472
7473 static void voidMethodNullableArrayLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 7473 void voidMethodNullableArrayLongArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
7474 { 7474 {
7475 TestObjectV8Internal::voidMethodNullableArrayLongArgMethod(info); 7475 TestObjectV8Internal::voidMethodNullableArrayLongArgMethod(info);
7476 } 7476 }
7477 7477
7478 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7478 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7479 { 7479 {
7480 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7480 TestObject* impl = V8TestObject::toImpl(info.Holder());
7481 7481
7482 v8SetReturnValue(info, toV8(impl->longSequenceMethod(), info.Holder(), info. GetIsolate())); 7482 v8SetReturnValue(info, toV8(impl->longSequenceMethod(), info.Holder(), info. GetIsolate()));
7483 } 7483 }
7484 7484
7485 static void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 7485 void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7486 { 7486 {
7487 TestObjectV8Internal::longSequenceMethodMethod(info); 7487 TestObjectV8Internal::longSequenceMethodMethod(info);
7488 } 7488 }
7489 7489
7490 static void stringSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 7490 static void stringSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
7491 { 7491 {
7492 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7492 TestObject* impl = V8TestObject::toImpl(info.Holder());
7493 7493
7494 v8SetReturnValue(info, toV8(impl->stringSequenceMethod(), info.Holder(), inf o.GetIsolate())); 7494 v8SetReturnValue(info, toV8(impl->stringSequenceMethod(), info.Holder(), inf o.GetIsolate()));
7495 } 7495 }
7496 7496
7497 static void stringSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 7497 void stringSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
7498 { 7498 {
7499 TestObjectV8Internal::stringSequenceMethodMethod(info); 7499 TestObjectV8Internal::stringSequenceMethodMethod(info);
7500 } 7500 }
7501 7501
7502 static void testInterfaceEmptySequenceMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 7502 static void testInterfaceEmptySequenceMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
7503 { 7503 {
7504 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7504 TestObject* impl = V8TestObject::toImpl(info.Holder());
7505 7505
7506 v8SetReturnValue(info, toV8(impl->testInterfaceEmptySequenceMethod(), info.H older(), info.GetIsolate())); 7506 v8SetReturnValue(info, toV8(impl->testInterfaceEmptySequenceMethod(), info.H older(), info.GetIsolate()));
7507 } 7507 }
7508 7508
7509 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 7509 void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
7510 { 7510 {
7511 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info); 7511 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info);
7512 } 7512 }
7513 7513
7514 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 7514 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7515 { 7515 {
7516 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodSequenceLongArg"); 7516 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodSequenceLongArg");
7517 7517
7518 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7518 TestObject* impl = V8TestObject::toImpl(info.Holder());
7519 7519
7520 if (UNLIKELY(info.Length() < 1)) { 7520 if (UNLIKELY(info.Length() < 1)) {
7521 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7521 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7522 return; 7522 return;
7523 } 7523 }
7524 7524
7525 Vector<int> longSequenceArg; 7525 Vector<int> longSequenceArg;
7526 longSequenceArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), ex ceptionState); 7526 longSequenceArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), ex ceptionState);
7527 if (exceptionState.hadException()) 7527 if (exceptionState.hadException())
7528 return; 7528 return;
7529 7529
7530 impl->voidMethodSequenceLongArg(longSequenceArg); 7530 impl->voidMethodSequenceLongArg(longSequenceArg);
7531 } 7531 }
7532 7532
7533 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 7533 void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
7534 { 7534 {
7535 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); 7535 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info);
7536 } 7536 }
7537 7537
7538 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 7538 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
7539 { 7539 {
7540 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodSequenceStringArg"); 7540 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodSequenceStringArg");
7541 7541
7542 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7542 TestObject* impl = V8TestObject::toImpl(info.Holder());
7543 7543
7544 if (UNLIKELY(info.Length() < 1)) { 7544 if (UNLIKELY(info.Length() < 1)) {
7545 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7545 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7546 return; 7546 return;
7547 } 7547 }
7548 7548
7549 Vector<String> stringSequenceArg; 7549 Vector<String> stringSequenceArg;
7550 stringSequenceArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate( ), exceptionState); 7550 stringSequenceArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate( ), exceptionState);
7551 if (exceptionState.hadException()) 7551 if (exceptionState.hadException())
7552 return; 7552 return;
7553 7553
7554 impl->voidMethodSequenceStringArg(stringSequenceArg); 7554 impl->voidMethodSequenceStringArg(stringSequenceArg);
7555 } 7555 }
7556 7556
7557 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 7557 void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
7558 { 7558 {
7559 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); 7559 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info);
7560 } 7560 }
7561 7561
7562 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 7562 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
7563 { 7563 {
7564 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodSequenceTestInterfaceEmptyArg"); 7564 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodSequenceTestInterfaceEmptyArg");
7565 7565
7566 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7566 TestObject* impl = V8TestObject::toImpl(info.Holder());
7567 7567
7568 if (UNLIKELY(info.Length() < 1)) { 7568 if (UNLIKELY(info.Length() < 1)) {
7569 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7569 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7570 return; 7570 return;
7571 } 7571 }
7572 7572
7573 HeapVector<Member<TestInterfaceEmpty>> testInterfaceEmptySequenceArg; 7573 HeapVector<Member<TestInterfaceEmpty>> testInterfaceEmptySequenceArg;
7574 testInterfaceEmptySequenceArg = (toMemberNativeArray<TestInterfaceEmpty>(inf o[0], 1, info.GetIsolate(), exceptionState)); 7574 testInterfaceEmptySequenceArg = (toMemberNativeArray<TestInterfaceEmpty>(inf o[0], 1, info.GetIsolate(), exceptionState));
7575 if (exceptionState.hadException()) 7575 if (exceptionState.hadException())
7576 return; 7576 return;
7577 7577
7578 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ; 7578 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ;
7579 } 7579 }
7580 7580
7581 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 7581 void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
7582 { 7582 {
7583 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); 7583 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info);
7584 } 7584 }
7585 7585
7586 static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 7586 static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
7587 { 7587 {
7588 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodSequenceSequenceDOMStringArg"); 7588 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodSequenceSequenceDOMStringArg");
7589 7589
7590 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7590 TestObject* impl = V8TestObject::toImpl(info.Holder());
7591 7591
7592 if (UNLIKELY(info.Length() < 1)) { 7592 if (UNLIKELY(info.Length() < 1)) {
7593 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7593 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7594 return; 7594 return;
7595 } 7595 }
7596 7596
7597 Vector<Vector<String>> stringSequenceSequenceArg; 7597 Vector<Vector<String>> stringSequenceSequenceArg;
7598 stringSequenceSequenceArg = toImplArray<Vector<Vector<String>>>(info[0], 1, info.GetIsolate(), exceptionState); 7598 stringSequenceSequenceArg = toImplArray<Vector<Vector<String>>>(info[0], 1, info.GetIsolate(), exceptionState);
7599 if (exceptionState.hadException()) 7599 if (exceptionState.hadException())
7600 return; 7600 return;
7601 7601
7602 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); 7602 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg);
7603 } 7603 }
7604 7604
7605 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 7605 void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
7606 { 7606 {
7607 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); 7607 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info);
7608 } 7608 }
7609 7609
7610 static void voidMethodNullableSequenceLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 7610 static void voidMethodNullableSequenceLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
7611 { 7611 {
7612 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodNullableSequenceLongArg"); 7612 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodNullableSequenceLongArg");
7613 7613
7614 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7614 TestObject* impl = V8TestObject::toImpl(info.Holder());
7615 7615
7616 if (UNLIKELY(info.Length() < 1)) { 7616 if (UNLIKELY(info.Length() < 1)) {
7617 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7617 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7618 return; 7618 return;
7619 } 7619 }
7620 7620
7621 Nullable<Vector<int>> longSequenceArg; 7621 Nullable<Vector<int>> longSequenceArg;
7622 if (!isUndefinedOrNull(info[0])) { 7622 if (!isUndefinedOrNull(info[0])) {
7623 longSequenceArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate() , exceptionState); 7623 longSequenceArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate() , exceptionState);
7624 if (exceptionState.hadException()) 7624 if (exceptionState.hadException())
7625 return; 7625 return;
7626 } 7626 }
7627 7627
7628 impl->voidMethodNullableSequenceLongArg(longSequenceArg); 7628 impl->voidMethodNullableSequenceLongArg(longSequenceArg);
7629 } 7629 }
7630 7630
7631 static void voidMethodNullableSequenceLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 7631 void voidMethodNullableSequenceLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
7632 { 7632 {
7633 TestObjectV8Internal::voidMethodNullableSequenceLongArgMethod(info); 7633 TestObjectV8Internal::voidMethodNullableSequenceLongArgMethod(info);
7634 } 7634 }
7635 7635
7636 static void longFrozenArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 7636 static void longFrozenArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
7637 { 7637 {
7638 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7638 TestObject* impl = V8TestObject::toImpl(info.Holder());
7639 7639
7640 v8SetReturnValue(info, freezeV8Object(toV8(impl->longFrozenArrayMethod(), in fo.Holder(), info.GetIsolate()), info.GetIsolate())); 7640 v8SetReturnValue(info, freezeV8Object(toV8(impl->longFrozenArrayMethod(), in fo.Holder(), info.GetIsolate()), info.GetIsolate()));
7641 } 7641 }
7642 7642
7643 static void longFrozenArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 7643 void longFrozenArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
7644 { 7644 {
7645 TestObjectV8Internal::longFrozenArrayMethodMethod(info); 7645 TestObjectV8Internal::longFrozenArrayMethodMethod(info);
7646 } 7646 }
7647 7647
7648 static void voidMethodStringFrozenArrayMethodMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 7648 static void voidMethodStringFrozenArrayMethodMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
7649 { 7649 {
7650 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodStringFrozenArrayMethod"); 7650 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodStringFrozenArrayMethod");
7651 7651
7652 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7652 TestObject* impl = V8TestObject::toImpl(info.Holder());
7653 7653
7654 if (UNLIKELY(info.Length() < 1)) { 7654 if (UNLIKELY(info.Length() < 1)) {
7655 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7655 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7656 return; 7656 return;
7657 } 7657 }
7658 7658
7659 Vector<String> stringFrozenArrayArg; 7659 Vector<String> stringFrozenArrayArg;
7660 stringFrozenArrayArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsola te(), exceptionState); 7660 stringFrozenArrayArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsola te(), exceptionState);
7661 if (exceptionState.hadException()) 7661 if (exceptionState.hadException())
7662 return; 7662 return;
7663 7663
7664 impl->voidMethodStringFrozenArrayMethod(stringFrozenArrayArg); 7664 impl->voidMethodStringFrozenArrayMethod(stringFrozenArrayArg);
7665 } 7665 }
7666 7666
7667 static void voidMethodStringFrozenArrayMethodMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 7667 void voidMethodStringFrozenArrayMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
7668 { 7668 {
7669 TestObjectV8Internal::voidMethodStringFrozenArrayMethodMethod(info); 7669 TestObjectV8Internal::voidMethodStringFrozenArrayMethodMethod(info);
7670 } 7670 }
7671 7671
7672 static void voidMethodTestInterfaceEmptyFrozenArrayMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 7672 static void voidMethodTestInterfaceEmptyFrozenArrayMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
7673 { 7673 {
7674 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestInterfaceEmptyFrozenArrayMethod"); 7674 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestInterfaceEmptyFrozenArrayMethod");
7675 7675
7676 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7676 TestObject* impl = V8TestObject::toImpl(info.Holder());
7677 7677
7678 if (UNLIKELY(info.Length() < 1)) { 7678 if (UNLIKELY(info.Length() < 1)) {
7679 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7679 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7680 return; 7680 return;
7681 } 7681 }
7682 7682
7683 HeapVector<Member<TestInterfaceEmpty>> testInterfaceEmptyFrozenArrayArg; 7683 HeapVector<Member<TestInterfaceEmpty>> testInterfaceEmptyFrozenArrayArg;
7684 testInterfaceEmptyFrozenArrayArg = (toMemberNativeArray<TestInterfaceEmpty>( info[0], 1, info.GetIsolate(), exceptionState)); 7684 testInterfaceEmptyFrozenArrayArg = (toMemberNativeArray<TestInterfaceEmpty>( info[0], 1, info.GetIsolate(), exceptionState));
7685 if (exceptionState.hadException()) 7685 if (exceptionState.hadException())
7686 return; 7686 return;
7687 7687
7688 impl->voidMethodTestInterfaceEmptyFrozenArrayMethod(testInterfaceEmptyFrozen ArrayArg); 7688 impl->voidMethodTestInterfaceEmptyFrozenArrayMethod(testInterfaceEmptyFrozen ArrayArg);
7689 } 7689 }
7690 7690
7691 static void voidMethodTestInterfaceEmptyFrozenArrayMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 7691 void voidMethodTestInterfaceEmptyFrozenArrayMethodMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
7692 { 7692 {
7693 TestObjectV8Internal::voidMethodTestInterfaceEmptyFrozenArrayMethodMethod(in fo); 7693 TestObjectV8Internal::voidMethodTestInterfaceEmptyFrozenArrayMethodMethod(in fo);
7694 } 7694 }
7695 7695
7696 static void nullableLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7696 static void nullableLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7697 { 7697 {
7698 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7698 TestObject* impl = V8TestObject::toImpl(info.Holder());
7699 7699
7700 Nullable<int> result = impl->nullableLongMethod(); 7700 Nullable<int> result = impl->nullableLongMethod();
7701 if (result.isNull()) 7701 if (result.isNull())
7702 v8SetReturnValueNull(info); 7702 v8SetReturnValueNull(info);
7703 else 7703 else
7704 v8SetReturnValueInt(info, result.get()); 7704 v8SetReturnValueInt(info, result.get());
7705 } 7705 }
7706 7706
7707 static void nullableLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 7707 void nullableLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7708 { 7708 {
7709 TestObjectV8Internal::nullableLongMethodMethod(info); 7709 TestObjectV8Internal::nullableLongMethodMethod(info);
7710 } 7710 }
7711 7711
7712 static void nullableStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 7712 static void nullableStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
7713 { 7713 {
7714 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7714 TestObject* impl = V8TestObject::toImpl(info.Holder());
7715 7715
7716 v8SetReturnValueStringOrNull(info, impl->nullableStringMethod(), info.GetIso late()); 7716 v8SetReturnValueStringOrNull(info, impl->nullableStringMethod(), info.GetIso late());
7717 } 7717 }
7718 7718
7719 static void nullableStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 7719 void nullableStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
7720 { 7720 {
7721 TestObjectV8Internal::nullableStringMethodMethod(info); 7721 TestObjectV8Internal::nullableStringMethodMethod(info);
7722 } 7722 }
7723 7723
7724 static void nullableTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 7724 static void nullableTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
7725 { 7725 {
7726 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7726 TestObject* impl = V8TestObject::toImpl(info.Holder());
7727 7727
7728 v8SetReturnValue(info, impl->nullableTestInterfaceMethod()); 7728 v8SetReturnValue(info, impl->nullableTestInterfaceMethod());
7729 } 7729 }
7730 7730
7731 static void nullableTestInterfaceMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 7731 void nullableTestInterfaceMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
7732 { 7732 {
7733 TestObjectV8Internal::nullableTestInterfaceMethodMethod(info); 7733 TestObjectV8Internal::nullableTestInterfaceMethodMethod(info);
7734 } 7734 }
7735 7735
7736 static void nullableLongSequenceMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 7736 static void nullableLongSequenceMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
7737 { 7737 {
7738 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7738 TestObject* impl = V8TestObject::toImpl(info.Holder());
7739 7739
7740 Nullable<Vector<int>> result = impl->nullableLongSequenceMethod(); 7740 Nullable<Vector<int>> result = impl->nullableLongSequenceMethod();
7741 if (result.isNull()) 7741 if (result.isNull())
7742 v8SetReturnValueNull(info); 7742 v8SetReturnValueNull(info);
7743 else 7743 else
7744 v8SetReturnValue(info, toV8(result.get(), info.Holder(), info.GetIsolate ())); 7744 v8SetReturnValue(info, toV8(result.get(), info.Holder(), info.GetIsolate ()));
7745 } 7745 }
7746 7746
7747 static void nullableLongSequenceMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 7747 void nullableLongSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
7748 { 7748 {
7749 TestObjectV8Internal::nullableLongSequenceMethodMethod(info); 7749 TestObjectV8Internal::nullableLongSequenceMethodMethod(info);
7750 } 7750 }
7751 7751
7752 static void testInterfaceGarbageCollectedOrDOMStringMethodMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 7752 static void testInterfaceGarbageCollectedOrDOMStringMethodMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
7753 { 7753 {
7754 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7754 TestObject* impl = V8TestObject::toImpl(info.Holder());
7755 7755
7756 TestInterfaceGarbageCollectedOrString result; 7756 TestInterfaceGarbageCollectedOrString result;
7757 impl->testInterfaceGarbageCollectedOrDOMStringMethod(result); 7757 impl->testInterfaceGarbageCollectedOrDOMStringMethod(result);
7758 v8SetReturnValue(info, result); 7758 v8SetReturnValue(info, result);
7759 } 7759 }
7760 7760
7761 static void testInterfaceGarbageCollectedOrDOMStringMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 7761 void testInterfaceGarbageCollectedOrDOMStringMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
7762 { 7762 {
7763 TestObjectV8Internal::testInterfaceGarbageCollectedOrDOMStringMethodMethod(i nfo); 7763 TestObjectV8Internal::testInterfaceGarbageCollectedOrDOMStringMethodMethod(i nfo);
7764 } 7764 }
7765 7765
7766 static void booleanOrDOMStringOrUnrestrictedDoubleMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info) 7766 static void booleanOrDOMStringOrUnrestrictedDoubleMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info)
7767 { 7767 {
7768 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7768 TestObject* impl = V8TestObject::toImpl(info.Holder());
7769 7769
7770 BooleanOrStringOrUnrestrictedDouble result; 7770 BooleanOrStringOrUnrestrictedDouble result;
7771 impl->booleanOrDOMStringOrUnrestrictedDoubleMethod(result); 7771 impl->booleanOrDOMStringOrUnrestrictedDoubleMethod(result);
7772 v8SetReturnValue(info, result); 7772 v8SetReturnValue(info, result);
7773 } 7773 }
7774 7774
7775 static void booleanOrDOMStringOrUnrestrictedDoubleMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 7775 void booleanOrDOMStringOrUnrestrictedDoubleMethodMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
7776 { 7776 {
7777 TestObjectV8Internal::booleanOrDOMStringOrUnrestrictedDoubleMethodMethod(inf o); 7777 TestObjectV8Internal::booleanOrDOMStringOrUnrestrictedDoubleMethodMethod(inf o);
7778 } 7778 }
7779 7779
7780 static void testInterfaceOrLongMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 7780 static void testInterfaceOrLongMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7781 { 7781 {
7782 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7782 TestObject* impl = V8TestObject::toImpl(info.Holder());
7783 7783
7784 TestInterfaceOrLong result; 7784 TestInterfaceOrLong result;
7785 impl->testInterfaceOrLongMethod(result); 7785 impl->testInterfaceOrLongMethod(result);
7786 v8SetReturnValue(info, result); 7786 v8SetReturnValue(info, result);
7787 } 7787 }
7788 7788
7789 static void testInterfaceOrLongMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 7789 void testInterfaceOrLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
7790 { 7790 {
7791 TestObjectV8Internal::testInterfaceOrLongMethodMethod(info); 7791 TestObjectV8Internal::testInterfaceOrLongMethodMethod(info);
7792 } 7792 }
7793 7793
7794 static void voidMethodDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 7794 static void voidMethodDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
7795 { 7795 {
7796 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDoubleOrDOMStringArg"); 7796 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDoubleOrDOMStringArg");
7797 7797
7798 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7798 TestObject* impl = V8TestObject::toImpl(info.Holder());
7799 7799
7800 if (UNLIKELY(info.Length() < 1)) { 7800 if (UNLIKELY(info.Length() < 1)) {
7801 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7801 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7802 return; 7802 return;
7803 } 7803 }
7804 7804
7805 DoubleOrString arg; 7805 DoubleOrString arg;
7806 V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversio nMode::NotNullable, exceptionState); 7806 V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversio nMode::NotNullable, exceptionState);
7807 if (exceptionState.hadException()) 7807 if (exceptionState.hadException())
7808 return; 7808 return;
7809 7809
7810 impl->voidMethodDoubleOrDOMStringArg(arg); 7810 impl->voidMethodDoubleOrDOMStringArg(arg);
7811 } 7811 }
7812 7812
7813 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 7813 void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
7814 { 7814 {
7815 TestObjectV8Internal::voidMethodDoubleOrDOMStringArgMethod(info); 7815 TestObjectV8Internal::voidMethodDoubleOrDOMStringArgMethod(info);
7816 } 7816 }
7817 7817
7818 static void voidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 7818 static void voidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7819 { 7819 {
7820 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDoubleOrDOMStringOrNullArg"); 7820 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDoubleOrDOMStringOrNullArg");
7821 7821
7822 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7822 TestObject* impl = V8TestObject::toImpl(info.Holder());
7823 7823
7824 if (UNLIKELY(info.Length() < 1)) { 7824 if (UNLIKELY(info.Length() < 1)) {
7825 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7825 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7826 return; 7826 return;
7827 } 7827 }
7828 7828
7829 DoubleOrString arg; 7829 DoubleOrString arg;
7830 V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversio nMode::Nullable, exceptionState); 7830 V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversio nMode::Nullable, exceptionState);
7831 if (exceptionState.hadException()) 7831 if (exceptionState.hadException())
7832 return; 7832 return;
7833 7833
7834 impl->voidMethodDoubleOrDOMStringOrNullArg(arg); 7834 impl->voidMethodDoubleOrDOMStringOrNullArg(arg);
7835 } 7835 }
7836 7836
7837 static void voidMethodDoubleOrDOMStringOrNullArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 7837 void voidMethodDoubleOrDOMStringOrNullArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
7838 { 7838 {
7839 TestObjectV8Internal::voidMethodDoubleOrDOMStringOrNullArgMethod(info); 7839 TestObjectV8Internal::voidMethodDoubleOrDOMStringOrNullArgMethod(info);
7840 } 7840 }
7841 7841
7842 static void voidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 7842 static void voidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7843 { 7843 {
7844 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDoubleOrNullOrDOMStringArg"); 7844 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDoubleOrNullOrDOMStringArg");
7845 7845
7846 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7846 TestObject* impl = V8TestObject::toImpl(info.Holder());
7847 7847
7848 if (UNLIKELY(info.Length() < 1)) { 7848 if (UNLIKELY(info.Length() < 1)) {
7849 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7849 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7850 return; 7850 return;
7851 } 7851 }
7852 7852
7853 DoubleOrString arg; 7853 DoubleOrString arg;
7854 V8DoubleOrNullOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeCon versionMode::Nullable, exceptionState); 7854 V8DoubleOrNullOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeCon versionMode::Nullable, exceptionState);
7855 if (exceptionState.hadException()) 7855 if (exceptionState.hadException())
7856 return; 7856 return;
7857 7857
7858 impl->voidMethodDoubleOrNullOrDOMStringArg(arg); 7858 impl->voidMethodDoubleOrNullOrDOMStringArg(arg);
7859 } 7859 }
7860 7860
7861 static void voidMethodDoubleOrNullOrDOMStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 7861 void voidMethodDoubleOrNullOrDOMStringArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
7862 { 7862 {
7863 TestObjectV8Internal::voidMethodDoubleOrNullOrDOMStringArgMethod(info); 7863 TestObjectV8Internal::voidMethodDoubleOrNullOrDOMStringArgMethod(info);
7864 } 7864 }
7865 7865
7866 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 7866 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
7867 { 7867 {
7868 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg"); 7868 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg");
7869 7869
7870 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7870 TestObject* impl = V8TestObject::toImpl(info.Holder());
7871 7871
7872 if (UNLIKELY(info.Length() < 1)) { 7872 if (UNLIKELY(info.Length() < 1)) {
7873 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7873 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7874 return; 7874 return;
7875 } 7875 }
7876 7876
7877 StringOrArrayBufferOrArrayBufferView arg; 7877 StringOrArrayBufferOrArrayBufferView arg;
7878 V8StringOrArrayBufferOrArrayBufferView::toImpl(info.GetIsolate(), info[0], a rg, UnionTypeConversionMode::NotNullable, exceptionState); 7878 V8StringOrArrayBufferOrArrayBufferView::toImpl(info.GetIsolate(), info[0], a rg, UnionTypeConversionMode::NotNullable, exceptionState);
7879 if (exceptionState.hadException()) 7879 if (exceptionState.hadException())
7880 return; 7880 return;
7881 7881
7882 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); 7882 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg);
7883 } 7883 }
7884 7884
7885 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 7885 void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
7886 { 7886 {
7887 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMe thod(info); 7887 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMe thod(info);
7888 } 7888 }
7889 7889
7890 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 7890 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
7891 { 7891 {
7892 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg"); 7892 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg");
7893 7893
7894 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7894 TestObject* impl = V8TestObject::toImpl(info.Holder());
7895 7895
7896 if (UNLIKELY(info.Length() < 1)) { 7896 if (UNLIKELY(info.Length() < 1)) {
7897 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7897 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7898 return; 7898 return;
7899 } 7899 }
7900 7900
7901 ArrayBufferOrArrayBufferViewOrDictionary arg; 7901 ArrayBufferOrArrayBufferViewOrDictionary arg;
7902 V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(info.GetIsolate(), info[0 ], arg, UnionTypeConversionMode::NotNullable, exceptionState); 7902 V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(info.GetIsolate(), info[0 ], arg, UnionTypeConversionMode::NotNullable, exceptionState);
7903 if (exceptionState.hadException()) 7903 if (exceptionState.hadException())
7904 return; 7904 return;
7905 7905
7906 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); 7906 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg);
7907 } 7907 }
7908 7908
7909 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 7909 void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
7910 { 7910 {
7911 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM ethod(info); 7911 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM ethod(info);
7912 } 7912 }
7913 7913
7914 static void voidMethodArrayOfDoubleOrDOMStringArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info) 7914 static void voidMethodArrayOfDoubleOrDOMStringArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info)
7915 { 7915 {
7916 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodArrayOfDoubleOrDOMStringArg"); 7916 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodArrayOfDoubleOrDOMStringArg");
7917 7917
7918 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7918 TestObject* impl = V8TestObject::toImpl(info.Holder());
7919 7919
7920 HeapVector<DoubleOrString> arg; 7920 HeapVector<DoubleOrString> arg;
7921 arg = toImplArguments<HeapVector<DoubleOrString>>(info, 0, exceptionState); 7921 arg = toImplArguments<HeapVector<DoubleOrString>>(info, 0, exceptionState);
7922 if (exceptionState.hadException()) 7922 if (exceptionState.hadException())
7923 return; 7923 return;
7924 7924
7925 impl->voidMethodArrayOfDoubleOrDOMStringArg(arg); 7925 impl->voidMethodArrayOfDoubleOrDOMStringArg(arg);
7926 } 7926 }
7927 7927
7928 static void voidMethodArrayOfDoubleOrDOMStringArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 7928 void voidMethodArrayOfDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
7929 { 7929 {
7930 TestObjectV8Internal::voidMethodArrayOfDoubleOrDOMStringArgMethod(info); 7930 TestObjectV8Internal::voidMethodArrayOfDoubleOrDOMStringArgMethod(info);
7931 } 7931 }
7932 7932
7933 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info) 7933 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info)
7934 { 7934 {
7935 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7935 TestObject* impl = V8TestObject::toImpl(info.Holder());
7936 7936
7937 if (UNLIKELY(info.Length() < 1)) { 7937 if (UNLIKELY(info.Length() < 1)) {
7938 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestInterfaceEmptyOrNullArg", "TestObject", ExceptionM essages::notEnoughArguments(1, info.Length()))); 7938 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestInterfaceEmptyOrNullArg", "TestObject", ExceptionM essages::notEnoughArguments(1, info.Length())));
7939 return; 7939 return;
7940 } 7940 }
7941 7941
7942 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; 7942 TestInterfaceEmpty* nullableTestInterfaceEmptyArg;
7943 nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(in fo.GetIsolate(), info[0]); 7943 nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(in fo.GetIsolate(), info[0]);
7944 if (!nullableTestInterfaceEmptyArg && !isUndefinedOrNull(info[0])) { 7944 if (!nullableTestInterfaceEmptyArg && !isUndefinedOrNull(info[0])) {
7945 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); 7945 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."));
7946 7946
7947 return; 7947 return;
7948 } 7948 }
7949 7949
7950 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); 7950 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg);
7951 } 7951 }
7952 7952
7953 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 7953 void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
7954 { 7954 {
7955 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); 7955 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info);
7956 } 7956 }
7957 7957
7958 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 7958 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
7959 { 7959 {
7960 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7960 TestObject* impl = V8TestObject::toImpl(info.Holder());
7961 7961
7962 if (UNLIKELY(info.Length() < 1)) { 7962 if (UNLIKELY(info.Length() < 1)) {
7963 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestCallbackInterfaceArg", "TestObject", ExceptionMess ages::notEnoughArguments(1, info.Length()))); 7963 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestCallbackInterfaceArg", "TestObject", ExceptionMess ages::notEnoughArguments(1, info.Length())));
7964 return; 7964 return;
7965 } 7965 }
7966 7966
7967 TestCallbackInterface* testCallbackInterfaceArg; 7967 TestCallbackInterface* testCallbackInterfaceArg;
7968 if (info.Length() <= 0 || !info[0]->IsFunction()) { 7968 if (info.Length() <= 0 || !info[0]->IsFunction()) {
7969 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestCallbackInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a function.")); 7969 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestCallbackInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a function."));
7970 7970
7971 return; 7971 return;
7972 } 7972 }
7973 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Local<v8::Fun ction>::Cast(info[0]), ScriptState::current(info.GetIsolate())); 7973 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Local<v8::Fun ction>::Cast(info[0]), ScriptState::current(info.GetIsolate()));
7974 7974
7975 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg); 7975 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg);
7976 } 7976 }
7977 7977
7978 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 7978 void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
7979 { 7979 {
7980 TestObjectV8Internal::voidMethodTestCallbackInterfaceArgMethod(info); 7980 TestObjectV8Internal::voidMethodTestCallbackInterfaceArgMethod(info);
7981 } 7981 }
7982 7982
7983 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC allbackInfo<v8::Value>& info) 7983 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC allbackInfo<v8::Value>& info)
7984 { 7984 {
7985 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7985 TestObject* impl = V8TestObject::toImpl(info.Holder());
7986 7986
7987 TestCallbackInterface* optionalTestCallbackInterfaceArg; 7987 TestCallbackInterface* optionalTestCallbackInterfaceArg;
7988 if (!isUndefinedOrNull(info[0])) { 7988 if (!isUndefinedOrNull(info[0])) {
7989 if (!info[0]->IsFunction()) { 7989 if (!info[0]->IsFunction()) {
7990 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodOptionalTestCallbackInterfaceArg", "TestObject", " The callback provided as parameter 1 is not a function.")); 7990 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodOptionalTestCallbackInterfaceArg", "TestObject", " The callback provided as parameter 1 is not a function."));
7991 7991
7992 return; 7992 return;
7993 } 7993 }
7994 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::L ocal<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); 7994 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::L ocal<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate()));
7995 } else { 7995 } else {
7996 optionalTestCallbackInterfaceArg = nullptr; 7996 optionalTestCallbackInterfaceArg = nullptr;
7997 } 7997 }
7998 7998
7999 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa ceArg); 7999 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa ceArg);
8000 } 8000 }
8001 8001
8002 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 8002 void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
8003 { 8003 {
8004 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info) ; 8004 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info) ;
8005 } 8005 }
8006 8006
8007 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 8007 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
8008 { 8008 {
8009 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8009 TestObject* impl = V8TestObject::toImpl(info.Holder());
8010 8010
8011 if (UNLIKELY(info.Length() < 1)) { 8011 if (UNLIKELY(info.Length() < 1)) {
8012 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestCallbackInterfaceOrNullArg", "TestObject", Excepti onMessages::notEnoughArguments(1, info.Length()))); 8012 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestCallbackInterfaceOrNullArg", "TestObject", Excepti onMessages::notEnoughArguments(1, info.Length())));
8013 return; 8013 return;
8014 } 8014 }
8015 8015
8016 TestCallbackInterface* testCallbackInterfaceArg; 8016 TestCallbackInterface* testCallbackInterfaceArg;
8017 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { 8017 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) {
8018 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestCallbackInterfaceOrNullArg", "TestObject", "The ca llback provided as parameter 1 is not a function.")); 8018 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestCallbackInterfaceOrNullArg", "TestObject", "The ca llback provided as parameter 1 is not a function."));
8019 8019
8020 return; 8020 return;
8021 } 8021 }
8022 testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackInter face::create(v8::Local<v8::Function>::Cast(info[0]), ScriptState::current(info.G etIsolate())); 8022 testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackInter face::create(v8::Local<v8::Function>::Cast(info[0]), ScriptState::current(info.G etIsolate()));
8023 8023
8024 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg); 8024 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg);
8025 } 8025 }
8026 8026
8027 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 8027 void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
8028 { 8028 {
8029 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info); 8029 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info);
8030 } 8030 }
8031 8031
8032 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info ) 8032 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info )
8033 { 8033 {
8034 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8034 TestObject* impl = V8TestObject::toImpl(info.Holder());
8035 8035
8036 v8SetReturnValueString(info, impl->testEnumMethod(), info.GetIsolate()); 8036 v8SetReturnValueString(info, impl->testEnumMethod(), info.GetIsolate());
8037 } 8037 }
8038 8038
8039 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) 8039 void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o)
8040 { 8040 {
8041 TestObjectV8Internal::testEnumMethodMethod(info); 8041 TestObjectV8Internal::testEnumMethodMethod(info);
8042 } 8042 }
8043 8043
8044 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 8044 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
8045 { 8045 {
8046 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestEnumArg"); 8046 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestEnumArg");
8047 8047
8048 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8048 TestObject* impl = V8TestObject::toImpl(info.Holder());
8049 8049
(...skipping 12 matching lines...) Expand all
8062 "EnumValue2", 8062 "EnumValue2",
8063 "EnumValue3", 8063 "EnumValue3",
8064 }; 8064 };
8065 if (!isValidEnum(testEnumTypeArg, validTestEnumTypeArgValues, WTF_ARRAY_LENG TH(validTestEnumTypeArgValues), "TestEnum", exceptionState)) { 8065 if (!isValidEnum(testEnumTypeArg, validTestEnumTypeArgValues, WTF_ARRAY_LENG TH(validTestEnumTypeArgValues), "TestEnum", exceptionState)) {
8066 return; 8066 return;
8067 } 8067 }
8068 8068
8069 impl->voidMethodTestEnumArg(testEnumTypeArg); 8069 impl->voidMethodTestEnumArg(testEnumTypeArg);
8070 } 8070 }
8071 8071
8072 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 8072 void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
8073 { 8073 {
8074 TestObjectV8Internal::voidMethodTestEnumArgMethod(info); 8074 TestObjectV8Internal::voidMethodTestEnumArgMethod(info);
8075 } 8075 }
8076 8076
8077 static void voidMethodTestMultipleEnumArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 8077 static void voidMethodTestMultipleEnumArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
8078 { 8078 {
8079 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestMultipleEnumArg"); 8079 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestMultipleEnumArg");
8080 8080
8081 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8081 TestObject* impl = V8TestObject::toImpl(info.Holder());
8082 8082
(...skipping 26 matching lines...) Expand all
8109 "EnumValue2", 8109 "EnumValue2",
8110 "EnumValue3", 8110 "EnumValue3",
8111 }; 8111 };
8112 if (!isValidEnum(testEnumTypeArg2, validTestEnumTypeArg2Values, WTF_ARRAY_LE NGTH(validTestEnumTypeArg2Values), "TestEnum2", exceptionState)) { 8112 if (!isValidEnum(testEnumTypeArg2, validTestEnumTypeArg2Values, WTF_ARRAY_LE NGTH(validTestEnumTypeArg2Values), "TestEnum2", exceptionState)) {
8113 return; 8113 return;
8114 } 8114 }
8115 8115
8116 impl->voidMethodTestMultipleEnumArg(testEnumTypeArg, testEnumTypeArg2); 8116 impl->voidMethodTestMultipleEnumArg(testEnumTypeArg, testEnumTypeArg2);
8117 } 8117 }
8118 8118
8119 static void voidMethodTestMultipleEnumArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 8119 void voidMethodTestMultipleEnumArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
8120 { 8120 {
8121 TestObjectV8Internal::voidMethodTestMultipleEnumArgMethod(info); 8121 TestObjectV8Internal::voidMethodTestMultipleEnumArgMethod(info);
8122 } 8122 }
8123 8123
8124 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 8124 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
8125 { 8125 {
8126 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8126 TestObject* impl = V8TestObject::toImpl(info.Holder());
8127 8127
8128 v8SetReturnValue(info, impl->dictionaryMethod()); 8128 v8SetReturnValue(info, impl->dictionaryMethod());
8129 } 8129 }
8130 8130
8131 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 8131 void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8132 { 8132 {
8133 TestObjectV8Internal::dictionaryMethodMethod(info); 8133 TestObjectV8Internal::dictionaryMethodMethod(info);
8134 } 8134 }
8135 8135
8136 static void testDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 8136 static void testDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
8137 { 8137 {
8138 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8138 TestObject* impl = V8TestObject::toImpl(info.Holder());
8139 8139
8140 TestDictionary result; 8140 TestDictionary result;
8141 impl->testDictionaryMethod(result); 8141 impl->testDictionaryMethod(result);
8142 v8SetReturnValue(info, result); 8142 v8SetReturnValue(info, result);
8143 } 8143 }
8144 8144
8145 static void testDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8145 void testDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
8146 { 8146 {
8147 TestObjectV8Internal::testDictionaryMethodMethod(info); 8147 TestObjectV8Internal::testDictionaryMethodMethod(info);
8148 } 8148 }
8149 8149
8150 static void nullableTestDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8150 static void nullableTestDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8151 { 8151 {
8152 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8152 TestObject* impl = V8TestObject::toImpl(info.Holder());
8153 8153
8154 Nullable<TestDictionary> result; 8154 Nullable<TestDictionary> result;
8155 impl->nullableTestDictionaryMethod(result); 8155 impl->nullableTestDictionaryMethod(result);
8156 if (result.isNull()) 8156 if (result.isNull())
8157 v8SetReturnValueNull(info); 8157 v8SetReturnValueNull(info);
8158 else 8158 else
8159 v8SetReturnValue(info, result.get()); 8159 v8SetReturnValue(info, result.get());
8160 } 8160 }
8161 8161
8162 static void nullableTestDictionaryMethodMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 8162 void nullableTestDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
8163 { 8163 {
8164 TestObjectV8Internal::nullableTestDictionaryMethodMethod(info); 8164 TestObjectV8Internal::nullableTestDictionaryMethodMethod(info);
8165 } 8165 }
8166 8166
8167 static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 8167 static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
8168 { 8168 {
8169 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "passPermissiveDictionaryMethod"); 8169 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "passPermissiveDictionaryMethod");
8170 8170
8171 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8171 TestObject* impl = V8TestObject::toImpl(info.Holder());
8172 8172
8173 TestDictionary arg; 8173 TestDictionary arg;
8174 V8TestDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState); 8174 V8TestDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState);
8175 if (exceptionState.hadException()) 8175 if (exceptionState.hadException())
8176 return; 8176 return;
8177 8177
8178 impl->passPermissiveDictionaryMethod(arg); 8178 impl->passPermissiveDictionaryMethod(arg);
8179 } 8179 }
8180 8180
8181 static void passPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 8181 void passPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
8182 { 8182 {
8183 TestObjectV8Internal::passPermissiveDictionaryMethodMethod(info); 8183 TestObjectV8Internal::passPermissiveDictionaryMethodMethod(info);
8184 } 8184 }
8185 8185
8186 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 8186 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
8187 { 8187 {
8188 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8188 TestObject* impl = V8TestObject::toImpl(info.Holder());
8189 8189
8190 v8SetReturnValue(info, impl->nodeFilterMethod()); 8190 v8SetReturnValue(info, impl->nodeFilterMethod());
8191 } 8191 }
8192 8192
8193 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 8193 void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8194 { 8194 {
8195 TestObjectV8Internal::nodeFilterMethodMethod(info); 8195 TestObjectV8Internal::nodeFilterMethodMethod(info);
8196 } 8196 }
8197 8197
8198 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 8198 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
8199 { 8199 {
8200 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "promiseMethod"); 8200 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "promiseMethod");
8201 ScriptState* scriptState = ScriptState::forReceiverObject(info); 8201 ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
8202 ExceptionToRejectPromiseScope rejectPromiseScope(info, scriptState, exceptio nState);
8203 8202
8204 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8203 TestObject* impl = V8TestObject::toImpl(info.Holder());
8205 8204
8206 if (UNLIKELY(info.Length() < 3)) { 8205 if (UNLIKELY(info.Length() < 3)) {
8207 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(3, i nfo.Length())); 8206 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(3, i nfo.Length()));
8208 return; 8207 return;
8209 } 8208 }
8210 8209
8211 int arg1; 8210 int arg1;
8212 Dictionary arg2; 8211 Dictionary arg2;
(...skipping 16 matching lines...) Expand all
8229 if (!arg3.prepare(exceptionState)) 8228 if (!arg3.prepare(exceptionState))
8230 return; 8229 return;
8231 8230
8232 variadic = toImplArguments<Vector<String>>(info, 3, exceptionState); 8231 variadic = toImplArguments<Vector<String>>(info, 3, exceptionState);
8233 if (exceptionState.hadException()) 8232 if (exceptionState.hadException())
8234 return; 8233 return;
8235 8234
8236 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val ue()); 8235 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val ue());
8237 } 8236 }
8238 8237
8239 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) 8238 void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info )
8240 { 8239 {
8241 TestObjectV8Internal::promiseMethodMethod(info); 8240 TestObjectV8Internal::promiseMethodMethod(info);
8242 } 8241 }
8243 8242
8244 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 8243 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
8245 { 8244 {
8246 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "promiseMethodWithoutExceptionState"); 8245 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "promiseMethodWithoutExceptionState");
8247 ScriptState* scriptState = ScriptState::forReceiverObject(info); 8246 ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
8248 ExceptionToRejectPromiseScope rejectPromiseScope(info, scriptState, exceptio nState);
8249 8247
8250 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8248 TestObject* impl = V8TestObject::toImpl(info.Holder());
8251 8249
8252 if (UNLIKELY(info.Length() < 1)) { 8250 if (UNLIKELY(info.Length() < 1)) {
8253 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 8251 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
8254 return; 8252 return;
8255 } 8253 }
8256 8254
8257 Dictionary arg1; 8255 Dictionary arg1;
8258 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { 8256 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
8259 exceptionState.throwTypeError("parameter 1 ('arg1') is not an object."); 8257 exceptionState.throwTypeError("parameter 1 ('arg1') is not an object.");
8260 8258
8261 return; 8259 return;
8262 } 8260 }
8263 arg1 = Dictionary(info[0], info.GetIsolate(), exceptionState); 8261 arg1 = Dictionary(info[0], info.GetIsolate(), exceptionState);
8264 if (exceptionState.hadException()) 8262 if (exceptionState.hadException())
8265 return; 8263 return;
8266 8264
8267 v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Valu e()); 8265 v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Valu e());
8268 } 8266 }
8269 8267
8270 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 8268 void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
8271 { 8269 {
8272 TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info); 8270 TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info);
8273 } 8271 }
8274 8272
8275 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 8273 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
8276 { 8274 {
8277 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8275 TestObject* impl = V8TestObject::toImpl(info.Holder());
8278 8276
8279 v8SetReturnValue(info, v8Deserialize(info.GetIsolate(), impl->serializedScri ptValueMethod())); 8277 v8SetReturnValue(info, v8Deserialize(info.GetIsolate(), impl->serializedScri ptValueMethod()));
8280 } 8278 }
8281 8279
8282 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 8280 void serializedScriptValueMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8283 { 8281 {
8284 TestObjectV8Internal::serializedScriptValueMethodMethod(info); 8282 TestObjectV8Internal::serializedScriptValueMethodMethod(info);
8285 } 8283 }
8286 8284
8287 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 8285 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
8288 { 8286 {
8289 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8287 TestObject* impl = V8TestObject::toImpl(info.Holder());
8290 8288
8291 v8SetReturnValue(info, impl->xPathNSResolverMethod()); 8289 v8SetReturnValue(info, impl->xPathNSResolverMethod());
8292 } 8290 }
8293 8291
8294 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 8292 void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
8295 { 8293 {
8296 TestObjectV8Internal::xPathNSResolverMethodMethod(info); 8294 TestObjectV8Internal::xPathNSResolverMethodMethod(info);
8297 } 8295 }
8298 8296
8299 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 8297 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
8300 { 8298 {
8301 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDictionaryArg"); 8299 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDictionaryArg");
8302 8300
8303 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8301 TestObject* impl = V8TestObject::toImpl(info.Holder());
8304 8302
8305 if (UNLIKELY(info.Length() < 1)) { 8303 if (UNLIKELY(info.Length() < 1)) {
8306 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 8304 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
8307 return; 8305 return;
8308 } 8306 }
8309 8307
8310 Dictionary dictionaryArg; 8308 Dictionary dictionaryArg;
8311 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { 8309 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
8312 exceptionState.throwTypeError("parameter 1 ('dictionaryArg') is not an o bject."); 8310 exceptionState.throwTypeError("parameter 1 ('dictionaryArg') is not an o bject.");
8313 8311
8314 return; 8312 return;
8315 } 8313 }
8316 dictionaryArg = Dictionary(info[0], info.GetIsolate(), exceptionState); 8314 dictionaryArg = Dictionary(info[0], info.GetIsolate(), exceptionState);
8317 if (exceptionState.hadException()) 8315 if (exceptionState.hadException())
8318 return; 8316 return;
8319 8317
8320 impl->voidMethodDictionaryArg(dictionaryArg); 8318 impl->voidMethodDictionaryArg(dictionaryArg);
8321 } 8319 }
8322 8320
8323 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 8321 void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
8324 { 8322 {
8325 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); 8323 TestObjectV8Internal::voidMethodDictionaryArgMethod(info);
8326 } 8324 }
8327 8325
8328 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 8326 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
8329 { 8327 {
8330 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8328 TestObject* impl = V8TestObject::toImpl(info.Holder());
8331 8329
8332 if (UNLIKELY(info.Length() < 1)) { 8330 if (UNLIKELY(info.Length() < 1)) {
8333 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodNodeFilterArg", "TestObject", ExceptionMessages::notEn oughArguments(1, info.Length()))); 8331 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodNodeFilterArg", "TestObject", ExceptionMessages::notEn oughArguments(1, info.Length())));
8334 return; 8332 return;
8335 } 8333 }
8336 8334
8337 NodeFilter* nodeFilterArg; 8335 NodeFilter* nodeFilterArg;
8338 nodeFilterArg = toNodeFilter(info[0], info.Holder(), ScriptState::current(in fo.GetIsolate())); 8336 nodeFilterArg = toNodeFilter(info[0], info.Holder(), ScriptState::current(in fo.GetIsolate()));
8339 8337
8340 impl->voidMethodNodeFilterArg(nodeFilterArg); 8338 impl->voidMethodNodeFilterArg(nodeFilterArg);
8341 } 8339 }
8342 8340
8343 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 8341 void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
8344 { 8342 {
8345 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); 8343 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info);
8346 } 8344 }
8347 8345
8348 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 8346 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
8349 { 8347 {
8350 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8348 TestObject* impl = V8TestObject::toImpl(info.Holder());
8351 8349
8352 if (UNLIKELY(info.Length() < 1)) { 8350 if (UNLIKELY(info.Length() < 1)) {
8353 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodPromiseArg", "TestObject", ExceptionMessages::notEnoug hArguments(1, info.Length()))); 8351 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodPromiseArg", "TestObject", ExceptionMessages::notEnoug hArguments(1, info.Length())));
8354 return; 8352 return;
8355 } 8353 }
8356 8354
8357 ScriptPromise promiseArg; 8355 ScriptPromise promiseArg;
8358 promiseArg = ScriptPromise::cast(ScriptState::current(info.GetIsolate()), in fo[0]); 8356 promiseArg = ScriptPromise::cast(ScriptState::current(info.GetIsolate()), in fo[0]);
8359 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { 8357 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) {
8360 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodPromiseArg", "TestObject", "parameter 1 ('promiseArg') is not an object.")); 8358 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodPromiseArg", "TestObject", "parameter 1 ('promiseArg') is not an object."));
8361 8359
8362 return; 8360 return;
8363 } 8361 }
8364 8362
8365 impl->voidMethodPromiseArg(promiseArg); 8363 impl->voidMethodPromiseArg(promiseArg);
8366 } 8364 }
8367 8365
8368 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8366 void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
8369 { 8367 {
8370 TestObjectV8Internal::voidMethodPromiseArgMethod(info); 8368 TestObjectV8Internal::voidMethodPromiseArgMethod(info);
8371 } 8369 }
8372 8370
8373 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 8371 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
8374 { 8372 {
8375 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodSerializedScriptValueArg"); 8373 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodSerializedScriptValueArg");
8376 8374
8377 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8375 TestObject* impl = V8TestObject::toImpl(info.Holder());
8378 8376
8379 if (UNLIKELY(info.Length() < 1)) { 8377 if (UNLIKELY(info.Length() < 1)) {
8380 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 8378 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
8381 return; 8379 return;
8382 } 8380 }
8383 8381
8384 RefPtr<SerializedScriptValue> serializedScriptValueArg; 8382 RefPtr<SerializedScriptValue> serializedScriptValueArg;
8385 serializedScriptValueArg = SerializedScriptValue::serialize(info.GetIsolate( ), info[0], nullptr, nullptr, exceptionState); 8383 serializedScriptValueArg = SerializedScriptValue::serialize(info.GetIsolate( ), info[0], nullptr, nullptr, exceptionState);
8386 if (exceptionState.hadException()) 8384 if (exceptionState.hadException())
8387 return; 8385 return;
8388 8386
8389 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); 8387 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg);
8390 } 8388 }
8391 8389
8392 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 8390 void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
8393 { 8391 {
8394 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); 8392 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info);
8395 } 8393 }
8396 8394
8397 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8395 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8398 { 8396 {
8399 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8397 TestObject* impl = V8TestObject::toImpl(info.Holder());
8400 8398
8401 if (UNLIKELY(info.Length() < 1)) { 8399 if (UNLIKELY(info.Length() < 1)) {
8402 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodXPathNSResolverArg", "TestObject", ExceptionMessages:: notEnoughArguments(1, info.Length()))); 8400 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodXPathNSResolverArg", "TestObject", ExceptionMessages:: notEnoughArguments(1, info.Length())));
8403 return; 8401 return;
8404 } 8402 }
8405 8403
8406 XPathNSResolver* xPathNSResolverArg; 8404 XPathNSResolver* xPathNSResolverArg;
8407 xPathNSResolverArg = toXPathNSResolver(ScriptState::current(info.GetIsolate( )), info[0]); 8405 xPathNSResolverArg = toXPathNSResolver(ScriptState::current(info.GetIsolate( )), info[0]);
8408 if (!xPathNSResolverArg) { 8406 if (!xPathNSResolverArg) {
8409 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodXPathNSResolverArg", "TestObject", "parameter 1 is not of type 'XPathNSResolver'.")); 8407 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodXPathNSResolverArg", "TestObject", "parameter 1 is not of type 'XPathNSResolver'."));
8410 8408
8411 return; 8409 return;
8412 } 8410 }
8413 8411
8414 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg); 8412 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg);
8415 } 8413 }
8416 8414
8417 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 8415 void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
8418 { 8416 {
8419 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); 8417 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info);
8420 } 8418 }
8421 8419
8422 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 8420 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
8423 { 8421 {
8424 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDictionarySequenceArg"); 8422 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDictionarySequenceArg");
8425 8423
8426 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8424 TestObject* impl = V8TestObject::toImpl(info.Holder());
8427 8425
8428 if (UNLIKELY(info.Length() < 1)) { 8426 if (UNLIKELY(info.Length() < 1)) {
8429 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 8427 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
8430 return; 8428 return;
8431 } 8429 }
8432 8430
8433 Vector<Dictionary> dictionarySequenceArg; 8431 Vector<Dictionary> dictionarySequenceArg;
8434 dictionarySequenceArg = toImplArray<Vector<Dictionary>>(info[0], 1, info.Get Isolate(), exceptionState); 8432 dictionarySequenceArg = toImplArray<Vector<Dictionary>>(info[0], 1, info.Get Isolate(), exceptionState);
8435 if (exceptionState.hadException()) 8433 if (exceptionState.hadException())
8436 return; 8434 return;
8437 8435
8438 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); 8436 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg);
8439 } 8437 }
8440 8438
8441 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 8439 void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
8442 { 8440 {
8443 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); 8441 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info);
8444 } 8442 }
8445 8443
8446 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 8444 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
8447 { 8445 {
8448 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodStringArgLongArg"); 8446 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodStringArgLongArg");
8449 8447
8450 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8448 TestObject* impl = V8TestObject::toImpl(info.Holder());
8451 8449
8452 if (UNLIKELY(info.Length() < 2)) { 8450 if (UNLIKELY(info.Length() < 2)) {
8453 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 8451 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
8454 return; 8452 return;
8455 } 8453 }
8456 8454
8457 V8StringResource<> stringArg; 8455 V8StringResource<> stringArg;
8458 int longArg; 8456 int longArg;
8459 stringArg = info[0]; 8457 stringArg = info[0];
8460 if (!stringArg.prepare()) 8458 if (!stringArg.prepare())
8461 return; 8459 return;
8462 8460
8463 longArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exceptionSta te); 8461 longArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exceptionSta te);
8464 if (exceptionState.hadException()) 8462 if (exceptionState.hadException())
8465 return; 8463 return;
8466 8464
8467 impl->voidMethodStringArgLongArg(stringArg, longArg); 8465 impl->voidMethodStringArgLongArg(stringArg, longArg);
8468 } 8466 }
8469 8467
8470 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 8468 void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
8471 { 8469 {
8472 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); 8470 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info);
8473 } 8471 }
8474 8472
8475 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 8473 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
8476 { 8474 {
8477 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8475 TestObject* impl = V8TestObject::toImpl(info.Holder());
8478 8476
8479 V8StringResource<> optionalStringArg; 8477 V8StringResource<> optionalStringArg;
8480 int numArgsPassed = info.Length(); 8478 int numArgsPassed = info.Length();
8481 while (numArgsPassed > 0) { 8479 while (numArgsPassed > 0) {
8482 if (!info[numArgsPassed - 1]->IsUndefined()) 8480 if (!info[numArgsPassed - 1]->IsUndefined())
8483 break; 8481 break;
8484 --numArgsPassed; 8482 --numArgsPassed;
8485 } 8483 }
8486 if (UNLIKELY(numArgsPassed <= 0)) { 8484 if (UNLIKELY(numArgsPassed <= 0)) {
8487 impl->voidMethodOptionalStringArg(); 8485 impl->voidMethodOptionalStringArg();
8488 return; 8486 return;
8489 } 8487 }
8490 optionalStringArg = info[0]; 8488 optionalStringArg = info[0];
8491 if (!optionalStringArg.prepare()) 8489 if (!optionalStringArg.prepare())
8492 return; 8490 return;
8493 8491
8494 impl->voidMethodOptionalStringArg(optionalStringArg); 8492 impl->voidMethodOptionalStringArg(optionalStringArg);
8495 } 8493 }
8496 8494
8497 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 8495 void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8498 { 8496 {
8499 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); 8497 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info);
8500 } 8498 }
8501 8499
8502 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 8500 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
8503 { 8501 {
8504 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8502 TestObject* impl = V8TestObject::toImpl(info.Holder());
8505 8503
8506 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; 8504 TestInterfaceEmpty* optionalTestInterfaceEmptyArg;
8507 int numArgsPassed = info.Length(); 8505 int numArgsPassed = info.Length();
8508 while (numArgsPassed > 0) { 8506 while (numArgsPassed > 0) {
8509 if (!info[numArgsPassed - 1]->IsUndefined()) 8507 if (!info[numArgsPassed - 1]->IsUndefined())
8510 break; 8508 break;
8511 --numArgsPassed; 8509 --numArgsPassed;
8512 } 8510 }
8513 if (UNLIKELY(numArgsPassed <= 0)) { 8511 if (UNLIKELY(numArgsPassed <= 0)) {
8514 impl->voidMethodOptionalTestInterfaceEmptyArg(); 8512 impl->voidMethodOptionalTestInterfaceEmptyArg();
8515 return; 8513 return;
8516 } 8514 }
8517 optionalTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(in fo.GetIsolate(), info[0]); 8515 optionalTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(in fo.GetIsolate(), info[0]);
8518 if (!optionalTestInterfaceEmptyArg) { 8516 if (!optionalTestInterfaceEmptyArg) {
8519 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodOptionalTestInterfaceEmptyArg", "TestObject", "paramet er 1 is not of type 'TestInterfaceEmpty'.")); 8517 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodOptionalTestInterfaceEmptyArg", "TestObject", "paramet er 1 is not of type 'TestInterfaceEmpty'."));
8520 8518
8521 return; 8519 return;
8522 } 8520 }
8523 8521
8524 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg) ; 8522 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg) ;
8525 } 8523 }
8526 8524
8527 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 8525 void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
8528 { 8526 {
8529 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info); 8527 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info);
8530 } 8528 }
8531 8529
8532 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 8530 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
8533 { 8531 {
8534 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodOptionalLongArg"); 8532 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodOptionalLongArg");
8535 8533
8536 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8534 TestObject* impl = V8TestObject::toImpl(info.Holder());
8537 8535
8538 int optionalLongArg; 8536 int optionalLongArg;
8539 int numArgsPassed = info.Length(); 8537 int numArgsPassed = info.Length();
8540 while (numArgsPassed > 0) { 8538 while (numArgsPassed > 0) {
8541 if (!info[numArgsPassed - 1]->IsUndefined()) 8539 if (!info[numArgsPassed - 1]->IsUndefined())
8542 break; 8540 break;
8543 --numArgsPassed; 8541 --numArgsPassed;
8544 } 8542 }
8545 if (UNLIKELY(numArgsPassed <= 0)) { 8543 if (UNLIKELY(numArgsPassed <= 0)) {
8546 impl->voidMethodOptionalLongArg(); 8544 impl->voidMethodOptionalLongArg();
8547 return; 8545 return;
8548 } 8546 }
8549 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exce ptionState); 8547 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exce ptionState);
8550 if (exceptionState.hadException()) 8548 if (exceptionState.hadException())
8551 return; 8549 return;
8552 8550
8553 impl->voidMethodOptionalLongArg(optionalLongArg); 8551 impl->voidMethodOptionalLongArg(optionalLongArg);
8554 } 8552 }
8555 8553
8556 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 8554 void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
8557 { 8555 {
8558 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); 8556 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info);
8559 } 8557 }
8560 8558
8561 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 8559 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
8562 { 8560 {
8563 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "stringMethodOptionalLongArg"); 8561 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "stringMethodOptionalLongArg");
8564 8562
8565 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8563 TestObject* impl = V8TestObject::toImpl(info.Holder());
8566 8564
8567 int optionalLongArg; 8565 int optionalLongArg;
8568 int numArgsPassed = info.Length(); 8566 int numArgsPassed = info.Length();
8569 while (numArgsPassed > 0) { 8567 while (numArgsPassed > 0) {
8570 if (!info[numArgsPassed - 1]->IsUndefined()) 8568 if (!info[numArgsPassed - 1]->IsUndefined())
8571 break; 8569 break;
8572 --numArgsPassed; 8570 --numArgsPassed;
8573 } 8571 }
8574 if (UNLIKELY(numArgsPassed <= 0)) { 8572 if (UNLIKELY(numArgsPassed <= 0)) {
8575 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G etIsolate()); 8573 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G etIsolate());
8576 return; 8574 return;
8577 } 8575 }
8578 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exce ptionState); 8576 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exce ptionState);
8579 if (exceptionState.hadException()) 8577 if (exceptionState.hadException())
8580 return; 8578 return;
8581 8579
8582 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate()); 8580 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate());
8583 } 8581 }
8584 8582
8585 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 8583 void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8586 { 8584 {
8587 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); 8585 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info);
8588 } 8586 }
8589 8587
8590 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 8588 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
8591 { 8589 {
8592 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "testInterfaceEmptyMethodOptionalLongArg"); 8590 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "testInterfaceEmptyMethodOptionalLongArg");
8593 8591
8594 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8592 TestObject* impl = V8TestObject::toImpl(info.Holder());
8595 8593
8596 int optionalLongArg; 8594 int optionalLongArg;
8597 int numArgsPassed = info.Length(); 8595 int numArgsPassed = info.Length();
8598 while (numArgsPassed > 0) { 8596 while (numArgsPassed > 0) {
8599 if (!info[numArgsPassed - 1]->IsUndefined()) 8597 if (!info[numArgsPassed - 1]->IsUndefined())
8600 break; 8598 break;
8601 --numArgsPassed; 8599 --numArgsPassed;
8602 } 8600 }
8603 if (UNLIKELY(numArgsPassed <= 0)) { 8601 if (UNLIKELY(numArgsPassed <= 0)) {
8604 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); 8602 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg());
8605 return; 8603 return;
8606 } 8604 }
8607 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exce ptionState); 8605 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exce ptionState);
8608 if (exceptionState.hadException()) 8606 if (exceptionState.hadException())
8609 return; 8607 return;
8610 8608
8611 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg)); 8609 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg));
8612 } 8610 }
8613 8611
8614 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 8612 void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
8615 { 8613 {
8616 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); 8614 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info);
8617 } 8615 }
8618 8616
8619 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 8617 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
8620 { 8618 {
8621 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "longMethodOptionalLongArg"); 8619 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "longMethodOptionalLongArg");
8622 8620
8623 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8621 TestObject* impl = V8TestObject::toImpl(info.Holder());
8624 8622
8625 int optionalLongArg; 8623 int optionalLongArg;
8626 int numArgsPassed = info.Length(); 8624 int numArgsPassed = info.Length();
8627 while (numArgsPassed > 0) { 8625 while (numArgsPassed > 0) {
8628 if (!info[numArgsPassed - 1]->IsUndefined()) 8626 if (!info[numArgsPassed - 1]->IsUndefined())
8629 break; 8627 break;
8630 --numArgsPassed; 8628 --numArgsPassed;
8631 } 8629 }
8632 if (UNLIKELY(numArgsPassed <= 0)) { 8630 if (UNLIKELY(numArgsPassed <= 0)) {
8633 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); 8631 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg());
8634 return; 8632 return;
8635 } 8633 }
8636 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exce ptionState); 8634 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exce ptionState);
8637 if (exceptionState.hadException()) 8635 if (exceptionState.hadException())
8638 return; 8636 return;
8639 8637
8640 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); 8638 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg));
8641 } 8639 }
8642 8640
8643 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 8641 void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
8644 { 8642 {
8645 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); 8643 TestObjectV8Internal::longMethodOptionalLongArgMethod(info);
8646 } 8644 }
8647 8645
8648 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 8646 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
8649 { 8647 {
8650 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongArgOptionalLongArg"); 8648 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongArgOptionalLongArg");
8651 8649
8652 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8650 TestObject* impl = V8TestObject::toImpl(info.Holder());
8653 8651
(...skipping 18 matching lines...) Expand all
8672 impl->voidMethodLongArgOptionalLongArg(longArg); 8670 impl->voidMethodLongArgOptionalLongArg(longArg);
8673 return; 8671 return;
8674 } 8672 }
8675 optionalLongArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exce ptionState); 8673 optionalLongArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exce ptionState);
8676 if (exceptionState.hadException()) 8674 if (exceptionState.hadException())
8677 return; 8675 return;
8678 8676
8679 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); 8677 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg);
8680 } 8678 }
8681 8679
8682 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 8680 void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
8683 { 8681 {
8684 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); 8682 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info);
8685 } 8683 }
8686 8684
8687 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 8685 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
8688 { 8686 {
8689 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongArgOptionalLongArgOptionalLongArg"); 8687 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongArgOptionalLongArgOptionalLongArg");
8690 8688
8691 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8689 TestObject* impl = V8TestObject::toImpl(info.Holder());
8692 8690
(...skipping 27 matching lines...) Expand all
8720 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL ongArg1); 8718 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL ongArg1);
8721 return; 8719 return;
8722 } 8720 }
8723 optionalLongArg2 = toInt32(info.GetIsolate(), info[2], NormalConversion, exc eptionState); 8721 optionalLongArg2 = toInt32(info.GetIsolate(), info[2], NormalConversion, exc eptionState);
8724 if (exceptionState.hadException()) 8722 if (exceptionState.hadException())
8725 return; 8723 return;
8726 8724
8727 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA rg1, optionalLongArg2); 8725 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA rg1, optionalLongArg2);
8728 } 8726 }
8729 8727
8730 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 8728 void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
8731 { 8729 {
8732 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod( info); 8730 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod( info);
8733 } 8731 }
8734 8732
8735 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 8733 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
8736 { 8734 {
8737 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongArgOptionalTestInterfaceEmptyArg"); 8735 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodLongArgOptionalTestInterfaceEmptyArg");
8738 8736
8739 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8737 TestObject* impl = V8TestObject::toImpl(info.Holder());
8740 8738
(...skipping 21 matching lines...) Expand all
8762 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(info. GetIsolate(), info[1]); 8760 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(info. GetIsolate(), info[1]);
8763 if (!optionalTestInterfaceEmpty) { 8761 if (!optionalTestInterfaceEmpty) {
8764 exceptionState.throwTypeError("parameter 2 is not of type 'TestInterface Empty'."); 8762 exceptionState.throwTypeError("parameter 2 is not of type 'TestInterface Empty'.");
8765 8763
8766 return; 8764 return;
8767 } 8765 }
8768 8766
8769 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty); 8767 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty);
8770 } 8768 }
8771 8769
8772 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 8770 void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
8773 { 8771 {
8774 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo); 8772 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo);
8775 } 8773 }
8776 8774
8777 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 8775 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
8778 { 8776 {
8779 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestInterfaceEmptyArgOptionalLongArg"); 8777 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestInterfaceEmptyArgOptionalLongArg");
8780 8778
8781 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8779 TestObject* impl = V8TestObject::toImpl(info.Holder());
8782 8780
(...skipping 21 matching lines...) Expand all
8804 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa ceEmpty); 8802 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa ceEmpty);
8805 return; 8803 return;
8806 } 8804 }
8807 longArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exceptionSta te); 8805 longArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exceptionSta te);
8808 if (exceptionState.hadException()) 8806 if (exceptionState.hadException())
8809 return; 8807 return;
8810 8808
8811 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg); 8809 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg);
8812 } 8810 }
8813 8811
8814 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 8812 void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
8815 { 8813 {
8816 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo); 8814 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo);
8817 } 8815 }
8818 8816
8819 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 8817 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
8820 { 8818 {
8821 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodOptionalDictionaryArg"); 8819 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodOptionalDictionaryArg");
8822 8820
8823 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8821 TestObject* impl = V8TestObject::toImpl(info.Holder());
8824 8822
8825 Dictionary optionalDictionaryArg; 8823 Dictionary optionalDictionaryArg;
8826 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { 8824 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
8827 exceptionState.throwTypeError("parameter 1 ('optionalDictionaryArg') is not an object."); 8825 exceptionState.throwTypeError("parameter 1 ('optionalDictionaryArg') is not an object.");
8828 8826
8829 return; 8827 return;
8830 } 8828 }
8831 optionalDictionaryArg = Dictionary(info[0], info.GetIsolate(), exceptionStat e); 8829 optionalDictionaryArg = Dictionary(info[0], info.GetIsolate(), exceptionStat e);
8832 if (exceptionState.hadException()) 8830 if (exceptionState.hadException())
8833 return; 8831 return;
8834 8832
8835 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); 8833 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg);
8836 } 8834 }
8837 8835
8838 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 8836 void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
8839 { 8837 {
8840 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); 8838 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info);
8841 } 8839 }
8842 8840
8843 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 8841 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
8844 { 8842 {
8845 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultByteStringArg"); 8843 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultByteStringArg");
8846 8844
8847 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8845 TestObject* impl = V8TestObject::toImpl(info.Holder());
8848 8846
8849 V8StringResource<> defaultByteStringArg; 8847 V8StringResource<> defaultByteStringArg;
8850 if (!info[0]->IsUndefined()) { 8848 if (!info[0]->IsUndefined()) {
8851 defaultByteStringArg = toByteString(info.GetIsolate(), info[0], exceptio nState); 8849 defaultByteStringArg = toByteString(info.GetIsolate(), info[0], exceptio nState);
8852 if (exceptionState.hadException()) 8850 if (exceptionState.hadException())
8853 return; 8851 return;
8854 } else { 8852 } else {
8855 defaultByteStringArg = String("foo"); 8853 defaultByteStringArg = String("foo");
8856 } 8854 }
8857 8855
8858 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); 8856 impl->voidMethodDefaultByteStringArg(defaultByteStringArg);
8859 } 8857 }
8860 8858
8861 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 8859 void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
8862 { 8860 {
8863 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); 8861 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info);
8864 } 8862 }
8865 8863
8866 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 8864 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
8867 { 8865 {
8868 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8866 TestObject* impl = V8TestObject::toImpl(info.Holder());
8869 8867
8870 V8StringResource<> defaultStringArg; 8868 V8StringResource<> defaultStringArg;
8871 if (!info[0]->IsUndefined()) { 8869 if (!info[0]->IsUndefined()) {
8872 defaultStringArg = info[0]; 8870 defaultStringArg = info[0];
8873 if (!defaultStringArg.prepare()) 8871 if (!defaultStringArg.prepare())
8874 return; 8872 return;
8875 } else { 8873 } else {
8876 defaultStringArg = String("foo"); 8874 defaultStringArg = String("foo");
8877 } 8875 }
8878 8876
8879 impl->voidMethodDefaultStringArg(defaultStringArg); 8877 impl->voidMethodDefaultStringArg(defaultStringArg);
8880 } 8878 }
8881 8879
8882 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 8880 void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
8883 { 8881 {
8884 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); 8882 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info);
8885 } 8883 }
8886 8884
8887 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8885 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8888 { 8886 {
8889 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultIntegerArgs"); 8887 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultIntegerArgs");
8890 8888
8891 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8889 TestObject* impl = V8TestObject::toImpl(info.Holder());
8892 8890
(...skipping 18 matching lines...) Expand all
8911 defaultUnsignedArg = toUInt32(info.GetIsolate(), info[2], NormalConversi on, exceptionState); 8909 defaultUnsignedArg = toUInt32(info.GetIsolate(), info[2], NormalConversi on, exceptionState);
8912 if (exceptionState.hadException()) 8910 if (exceptionState.hadException())
8913 return; 8911 return;
8914 } else { 8912 } else {
8915 defaultUnsignedArg = 4294967295u; 8913 defaultUnsignedArg = 4294967295u;
8916 } 8914 }
8917 8915
8918 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau ltUnsignedArg); 8916 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau ltUnsignedArg);
8919 } 8917 }
8920 8918
8921 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 8919 void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
8922 { 8920 {
8923 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info); 8921 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info);
8924 } 8922 }
8925 8923
8926 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 8924 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
8927 { 8925 {
8928 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultDoubleArg"); 8926 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultDoubleArg");
8929 8927
8930 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8928 TestObject* impl = V8TestObject::toImpl(info.Holder());
8931 8929
8932 double defaultDoubleArg; 8930 double defaultDoubleArg;
8933 if (!info[0]->IsUndefined()) { 8931 if (!info[0]->IsUndefined()) {
8934 defaultDoubleArg = toRestrictedDouble(info.GetIsolate(), info[0], except ionState); 8932 defaultDoubleArg = toRestrictedDouble(info.GetIsolate(), info[0], except ionState);
8935 if (exceptionState.hadException()) 8933 if (exceptionState.hadException())
8936 return; 8934 return;
8937 } else { 8935 } else {
8938 defaultDoubleArg = 0.5; 8936 defaultDoubleArg = 0.5;
8939 } 8937 }
8940 8938
8941 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); 8939 impl->voidMethodDefaultDoubleArg(defaultDoubleArg);
8942 } 8940 }
8943 8941
8944 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 8942 void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
8945 { 8943 {
8946 TestObjectV8Internal::voidMethodDefaultDoubleArgMethod(info); 8944 TestObjectV8Internal::voidMethodDefaultDoubleArgMethod(info);
8947 } 8945 }
8948 8946
8949 static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 8947 static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
8950 { 8948 {
8951 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultTrueBooleanArg"); 8949 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultTrueBooleanArg");
8952 8950
8953 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8951 TestObject* impl = V8TestObject::toImpl(info.Holder());
8954 8952
8955 bool defaultBooleanArg; 8953 bool defaultBooleanArg;
8956 if (!info[0]->IsUndefined()) { 8954 if (!info[0]->IsUndefined()) {
8957 defaultBooleanArg = toBoolean(info.GetIsolate(), info[0], exceptionState ); 8955 defaultBooleanArg = toBoolean(info.GetIsolate(), info[0], exceptionState );
8958 if (exceptionState.hadException()) 8956 if (exceptionState.hadException())
8959 return; 8957 return;
8960 } else { 8958 } else {
8961 defaultBooleanArg = true; 8959 defaultBooleanArg = true;
8962 } 8960 }
8963 8961
8964 impl->voidMethodDefaultTrueBooleanArg(defaultBooleanArg); 8962 impl->voidMethodDefaultTrueBooleanArg(defaultBooleanArg);
8965 } 8963 }
8966 8964
8967 static void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 8965 void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
8968 { 8966 {
8969 TestObjectV8Internal::voidMethodDefaultTrueBooleanArgMethod(info); 8967 TestObjectV8Internal::voidMethodDefaultTrueBooleanArgMethod(info);
8970 } 8968 }
8971 8969
8972 static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 8970 static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
8973 { 8971 {
8974 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultFalseBooleanArg"); 8972 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultFalseBooleanArg");
8975 8973
8976 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8974 TestObject* impl = V8TestObject::toImpl(info.Holder());
8977 8975
8978 bool defaultBooleanArg; 8976 bool defaultBooleanArg;
8979 if (!info[0]->IsUndefined()) { 8977 if (!info[0]->IsUndefined()) {
8980 defaultBooleanArg = toBoolean(info.GetIsolate(), info[0], exceptionState ); 8978 defaultBooleanArg = toBoolean(info.GetIsolate(), info[0], exceptionState );
8981 if (exceptionState.hadException()) 8979 if (exceptionState.hadException())
8982 return; 8980 return;
8983 } else { 8981 } else {
8984 defaultBooleanArg = false; 8982 defaultBooleanArg = false;
8985 } 8983 }
8986 8984
8987 impl->voidMethodDefaultFalseBooleanArg(defaultBooleanArg); 8985 impl->voidMethodDefaultFalseBooleanArg(defaultBooleanArg);
8988 } 8986 }
8989 8987
8990 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 8988 void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
8991 { 8989 {
8992 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); 8990 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info);
8993 } 8991 }
8994 8992
8995 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 8993 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
8996 { 8994 {
8997 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultNullableByteStringArg"); 8995 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultNullableByteStringArg");
8998 8996
8999 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8997 TestObject* impl = V8TestObject::toImpl(info.Holder());
9000 8998
9001 V8StringResource<TreatNullAndUndefinedAsNullString> defaultStringArg; 8999 V8StringResource<TreatNullAndUndefinedAsNullString> defaultStringArg;
9002 if (!info[0]->IsUndefined()) { 9000 if (!info[0]->IsUndefined()) {
9003 defaultStringArg = toByteString(info.GetIsolate(), info[0], exceptionSta te); 9001 defaultStringArg = toByteString(info.GetIsolate(), info[0], exceptionSta te);
9004 if (exceptionState.hadException()) 9002 if (exceptionState.hadException())
9005 return; 9003 return;
9006 } else { 9004 } else {
9007 defaultStringArg = nullptr; 9005 defaultStringArg = nullptr;
9008 } 9006 }
9009 9007
9010 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); 9008 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg);
9011 } 9009 }
9012 9010
9013 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 9011 void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
9014 { 9012 {
9015 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); 9013 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info);
9016 } 9014 }
9017 9015
9018 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 9016 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
9019 { 9017 {
9020 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9018 TestObject* impl = V8TestObject::toImpl(info.Holder());
9021 9019
9022 V8StringResource<TreatNullAndUndefinedAsNullString> defaultStringArg; 9020 V8StringResource<TreatNullAndUndefinedAsNullString> defaultStringArg;
9023 if (!info[0]->IsUndefined()) { 9021 if (!info[0]->IsUndefined()) {
9024 defaultStringArg = info[0]; 9022 defaultStringArg = info[0];
9025 if (!defaultStringArg.prepare()) 9023 if (!defaultStringArg.prepare())
9026 return; 9024 return;
9027 } else { 9025 } else {
9028 defaultStringArg = nullptr; 9026 defaultStringArg = nullptr;
9029 } 9027 }
9030 9028
9031 impl->voidMethodDefaultNullableStringArg(defaultStringArg); 9029 impl->voidMethodDefaultNullableStringArg(defaultStringArg);
9032 } 9030 }
9033 9031
9034 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 9032 void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
9035 { 9033 {
9036 TestObjectV8Internal::voidMethodDefaultNullableStringArgMethod(info); 9034 TestObjectV8Internal::voidMethodDefaultNullableStringArgMethod(info);
9037 } 9035 }
9038 9036
9039 static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 9037 static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
9040 { 9038 {
9041 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9039 TestObject* impl = V8TestObject::toImpl(info.Holder());
9042 9040
9043 TestInterfaceImplementation* defaultTestInterfaceArg; 9041 TestInterfaceImplementation* defaultTestInterfaceArg;
9044 if (!info[0]->IsUndefined()) { 9042 if (!info[0]->IsUndefined()) {
9045 defaultTestInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetI solate(), info[0]); 9043 defaultTestInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetI solate(), info[0]);
9046 if (!defaultTestInterfaceArg && !isUndefinedOrNull(info[0])) { 9044 if (!defaultTestInterfaceArg && !isUndefinedOrNull(info[0])) {
9047 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodDefaultNullableTestInterfaceArg", "TestObject", "p arameter 1 is not of type 'TestInterface'.")); 9045 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodDefaultNullableTestInterfaceArg", "TestObject", "p arameter 1 is not of type 'TestInterface'."));
9048 9046
9049 return; 9047 return;
9050 } 9048 }
9051 } else { 9049 } else {
9052 defaultTestInterfaceArg = nullptr; 9050 defaultTestInterfaceArg = nullptr;
9053 } 9051 }
9054 9052
9055 impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg); 9053 impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg);
9056 } 9054 }
9057 9055
9058 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 9056 void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
9059 { 9057 {
9060 TestObjectV8Internal::voidMethodDefaultNullableTestInterfaceArgMethod(info); 9058 TestObjectV8Internal::voidMethodDefaultNullableTestInterfaceArgMethod(info);
9061 } 9059 }
9062 9060
9063 static void voidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallback Info<v8::Value>& info) 9061 static void voidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallback Info<v8::Value>& info)
9064 { 9062 {
9065 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultDoubleOrStringArgs"); 9063 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultDoubleOrStringArgs");
9066 9064
9067 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9065 TestObject* impl = V8TestObject::toImpl(info.Holder());
9068 9066
(...skipping 18 matching lines...) Expand all
9087 V8DoubleOrString::toImpl(info.GetIsolate(), info[2], defaultNullArg, Uni onTypeConversionMode::Nullable, exceptionState); 9085 V8DoubleOrString::toImpl(info.GetIsolate(), info[2], defaultNullArg, Uni onTypeConversionMode::Nullable, exceptionState);
9088 if (exceptionState.hadException()) 9086 if (exceptionState.hadException())
9089 return; 9087 return;
9090 } else { 9088 } else {
9091 /* null default value */; 9089 /* null default value */;
9092 } 9090 }
9093 9091
9094 impl->voidMethodDefaultDoubleOrStringArgs(defaultLongArg, defaultStringArg, defaultNullArg); 9092 impl->voidMethodDefaultDoubleOrStringArgs(defaultLongArg, defaultStringArg, defaultNullArg);
9095 } 9093 }
9096 9094
9097 static void voidMethodDefaultDoubleOrStringArgsMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 9095 void voidMethodDefaultDoubleOrStringArgsMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
9098 { 9096 {
9099 TestObjectV8Internal::voidMethodDefaultDoubleOrStringArgsMethod(info); 9097 TestObjectV8Internal::voidMethodDefaultDoubleOrStringArgsMethod(info);
9100 } 9098 }
9101 9099
9102 static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 9100 static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
9103 { 9101 {
9104 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultStringSequenceArg"); 9102 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultStringSequenceArg");
9105 9103
9106 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9104 TestObject* impl = V8TestObject::toImpl(info.Holder());
9107 9105
9108 Vector<String> defaultStringSequenceArg; 9106 Vector<String> defaultStringSequenceArg;
9109 if (!info[0]->IsUndefined()) { 9107 if (!info[0]->IsUndefined()) {
9110 defaultStringSequenceArg = toImplArray<Vector<String>>(info[0], 1, info. GetIsolate(), exceptionState); 9108 defaultStringSequenceArg = toImplArray<Vector<String>>(info[0], 1, info. GetIsolate(), exceptionState);
9111 if (exceptionState.hadException()) 9109 if (exceptionState.hadException())
9112 return; 9110 return;
9113 } else { 9111 } else {
9114 /* Nothing to do */; 9112 /* Nothing to do */;
9115 } 9113 }
9116 9114
9117 impl->voidMethodDefaultStringSequenceArg(defaultStringSequenceArg); 9115 impl->voidMethodDefaultStringSequenceArg(defaultStringSequenceArg);
9118 } 9116 }
9119 9117
9120 static void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 9118 void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
9121 { 9119 {
9122 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); 9120 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info);
9123 } 9121 }
9124 9122
9125 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 9123 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
9126 { 9124 {
9127 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodVariadicStringArg"); 9125 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodVariadicStringArg");
9128 9126
9129 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9127 TestObject* impl = V8TestObject::toImpl(info.Holder());
9130 9128
9131 Vector<String> variadicStringArgs; 9129 Vector<String> variadicStringArgs;
9132 variadicStringArgs = toImplArguments<Vector<String>>(info, 0, exceptionState ); 9130 variadicStringArgs = toImplArguments<Vector<String>>(info, 0, exceptionState );
9133 if (exceptionState.hadException()) 9131 if (exceptionState.hadException())
9134 return; 9132 return;
9135 9133
9136 impl->voidMethodVariadicStringArg(variadicStringArgs); 9134 impl->voidMethodVariadicStringArg(variadicStringArgs);
9137 } 9135 }
9138 9136
9139 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 9137 void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
9140 { 9138 {
9141 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); 9139 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info);
9142 } 9140 }
9143 9141
9144 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 9142 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
9145 { 9143 {
9146 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodStringArgVariadicStringArg"); 9144 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodStringArgVariadicStringArg");
9147 9145
9148 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9146 TestObject* impl = V8TestObject::toImpl(info.Holder());
9149 9147
9150 if (UNLIKELY(info.Length() < 1)) { 9148 if (UNLIKELY(info.Length() < 1)) {
9151 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 9149 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
9152 return; 9150 return;
9153 } 9151 }
9154 9152
9155 V8StringResource<> stringArg; 9153 V8StringResource<> stringArg;
9156 Vector<String> variadicStringArgs; 9154 Vector<String> variadicStringArgs;
9157 stringArg = info[0]; 9155 stringArg = info[0];
9158 if (!stringArg.prepare()) 9156 if (!stringArg.prepare())
9159 return; 9157 return;
9160 9158
9161 variadicStringArgs = toImplArguments<Vector<String>>(info, 1, exceptionState ); 9159 variadicStringArgs = toImplArguments<Vector<String>>(info, 1, exceptionState );
9162 if (exceptionState.hadException()) 9160 if (exceptionState.hadException())
9163 return; 9161 return;
9164 9162
9165 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); 9163 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs);
9166 } 9164 }
9167 9165
9168 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 9166 void voidMethodStringArgVariadicStringArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
9169 { 9167 {
9170 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); 9168 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info);
9171 } 9169 }
9172 9170
9173 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 9171 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
9174 { 9172 {
9175 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodVariadicTestInterfaceEmptyArg"); 9173 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodVariadicTestInterfaceEmptyArg");
9176 9174
9177 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9175 TestObject* impl = V8TestObject::toImpl(info.Holder());
9178 9176
9179 HeapVector<Member<TestInterfaceEmpty>> variadicTestInterfaceEmptyArgs; 9177 HeapVector<Member<TestInterfaceEmpty>> variadicTestInterfaceEmptyArgs;
9180 for (int i = 0; i < info.Length(); ++i) { 9178 for (int i = 0; i < info.Length(); ++i) {
9181 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 9179 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
9182 exceptionState.throwTypeError("parameter 1 is not of type 'TestInter faceEmpty'."); 9180 exceptionState.throwTypeError("parameter 1 is not of type 'TestInter faceEmpty'.");
9183 9181
9184 return; 9182 return;
9185 } 9183 }
9186 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v8::L ocal<v8::Object>::Cast(info[i]))); 9184 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v8::L ocal<v8::Object>::Cast(info[i])));
9187 } 9185 }
9188 9186
9189 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs ); 9187 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs );
9190 } 9188 }
9191 9189
9192 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 9190 void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
9193 { 9191 {
9194 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info); 9192 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info);
9195 } 9193 }
9196 9194
9197 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) 9195 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info)
9198 { 9196 {
9199 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyA rg"); 9197 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyA rg");
9200 9198
9201 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9199 TestObject* impl = V8TestObject::toImpl(info.Holder());
9202 9200
(...skipping 16 matching lines...) Expand all
9219 exceptionState.throwTypeError("parameter 2 is not of type 'TestInter faceEmpty'."); 9217 exceptionState.throwTypeError("parameter 2 is not of type 'TestInter faceEmpty'.");
9220 9218
9221 return; 9219 return;
9222 } 9220 }
9223 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v8::L ocal<v8::Object>::Cast(info[i]))); 9221 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v8::L ocal<v8::Object>::Cast(info[i])));
9224 } 9222 }
9225 9223
9226 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs); 9224 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs);
9227 } 9225 }
9228 9226
9229 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 9227 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
9230 { 9228 {
9231 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm ptyArgMethod(info); 9229 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm ptyArgMethod(info);
9232 } 9230 }
9233 9231
9234 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 9232 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
9235 { 9233 {
9236 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodVariadicTestInterfaceGarbageCollectedArg"); 9234 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodVariadicTestInterfaceGarbageCollectedArg");
9237 9235
9238 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9236 TestObject* impl = V8TestObject::toImpl(info.Holder());
9239 9237
9240 HeapVector<Member<TestInterfaceGarbageCollected>> variadicTestInterfaceGarba geCollectedArg; 9238 HeapVector<Member<TestInterfaceGarbageCollected>> variadicTestInterfaceGarba geCollectedArg;
9241 for (int i = 0; i < info.Length(); ++i) { 9239 for (int i = 0; i < info.Length(); ++i) {
9242 if (!V8TestInterfaceGarbageCollected::hasInstance(info[i], info.GetIsola te())) { 9240 if (!V8TestInterfaceGarbageCollected::hasInstance(info[i], info.GetIsola te())) {
9243 exceptionState.throwTypeError("parameter 1 is not of type 'TestInter faceGarbageCollected'."); 9241 exceptionState.throwTypeError("parameter 1 is not of type 'TestInter faceGarbageCollected'.");
9244 9242
9245 return; 9243 return;
9246 } 9244 }
9247 variadicTestInterfaceGarbageCollectedArg.append(V8TestInterfaceGarbageCo llected::toImpl(v8::Local<v8::Object>::Cast(info[i]))); 9245 variadicTestInterfaceGarbageCollectedArg.append(V8TestInterfaceGarbageCo llected::toImpl(v8::Local<v8::Object>::Cast(info[i])));
9248 } 9246 }
9249 9247
9250 impl->voidMethodVariadicTestInterfaceGarbageCollectedArg(variadicTestInterfa ceGarbageCollectedArg); 9248 impl->voidMethodVariadicTestInterfaceGarbageCollectedArg(variadicTestInterfa ceGarbageCollectedArg);
9251 } 9249 }
9252 9250
9253 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 9251 void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
9254 { 9252 {
9255 TestObjectV8Internal::voidMethodVariadicTestInterfaceGarbageCollectedArgMeth od(info); 9253 TestObjectV8Internal::voidMethodVariadicTestInterfaceGarbageCollectedArgMeth od(info);
9256 } 9254 }
9257 9255
9258 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9256 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9259 { 9257 {
9260 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodA"); 9258 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodA");
9261 9259
9262 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9260 TestObject* impl = V8TestObject::toImpl(info.Holder());
9263 9261
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
9312 9310
9313 if (isArityError) { 9311 if (isArityError) {
9314 if (info.Length() < 1) { 9312 if (info.Length() < 1) {
9315 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 9313 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
9316 return; 9314 return;
9317 } 9315 }
9318 } 9316 }
9319 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9317 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9320 } 9318 }
9321 9319
9322 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 9320 void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9323 { 9321 {
9324 TestObjectV8Internal::overloadedMethodAMethod(info); 9322 TestObjectV8Internal::overloadedMethodAMethod(info);
9325 } 9323 }
9326 9324
9327 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9325 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9328 { 9326 {
9329 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodB"); 9327 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodB");
9330 9328
9331 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9329 TestObject* impl = V8TestObject::toImpl(info.Holder());
9332 9330
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
9399 9397
9400 if (isArityError) { 9398 if (isArityError) {
9401 if (info.Length() < 1) { 9399 if (info.Length() < 1) {
9402 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 9400 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
9403 return; 9401 return;
9404 } 9402 }
9405 } 9403 }
9406 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9404 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9407 } 9405 }
9408 9406
9409 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 9407 void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9410 { 9408 {
9411 TestObjectV8Internal::overloadedMethodBMethod(info); 9409 TestObjectV8Internal::overloadedMethodBMethod(info);
9412 } 9410 }
9413 9411
9414 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9412 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9415 { 9413 {
9416 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodC"); 9414 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodC");
9417 9415
9418 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9416 TestObject* impl = V8TestObject::toImpl(info.Holder());
9419 9417
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
9462 9460
9463 if (isArityError) { 9461 if (isArityError) {
9464 if (info.Length() < 1) { 9462 if (info.Length() < 1) {
9465 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 9463 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
9466 return; 9464 return;
9467 } 9465 }
9468 } 9466 }
9469 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9467 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9470 } 9468 }
9471 9469
9472 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 9470 void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9473 { 9471 {
9474 TestObjectV8Internal::overloadedMethodCMethod(info); 9472 TestObjectV8Internal::overloadedMethodCMethod(info);
9475 } 9473 }
9476 9474
9477 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9475 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9478 { 9476 {
9479 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodD"); 9477 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodD");
9480 9478
9481 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9479 TestObject* impl = V8TestObject::toImpl(info.Holder());
9482 9480
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
9524 9522
9525 if (isArityError) { 9523 if (isArityError) {
9526 if (info.Length() < 1) { 9524 if (info.Length() < 1) {
9527 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 9525 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
9528 return; 9526 return;
9529 } 9527 }
9530 } 9528 }
9531 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9529 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9532 } 9530 }
9533 9531
9534 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 9532 void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9535 { 9533 {
9536 TestObjectV8Internal::overloadedMethodDMethod(info); 9534 TestObjectV8Internal::overloadedMethodDMethod(info);
9537 } 9535 }
9538 9536
9539 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9537 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9540 { 9538 {
9541 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodE"); 9539 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodE");
9542 9540
9543 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9541 TestObject* impl = V8TestObject::toImpl(info.Holder());
9544 9542
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
9591 9589
9592 if (isArityError) { 9590 if (isArityError) {
9593 if (info.Length() < 1) { 9591 if (info.Length() < 1) {
9594 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 9592 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
9595 return; 9593 return;
9596 } 9594 }
9597 } 9595 }
9598 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9596 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9599 } 9597 }
9600 9598
9601 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 9599 void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9602 { 9600 {
9603 TestObjectV8Internal::overloadedMethodEMethod(info); 9601 TestObjectV8Internal::overloadedMethodEMethod(info);
9604 } 9602 }
9605 9603
9606 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9604 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9607 { 9605 {
9608 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9606 TestObject* impl = V8TestObject::toImpl(info.Holder());
9609 9607
9610 V8StringResource<> stringArg; 9608 V8StringResource<> stringArg;
9611 int numArgsPassed = info.Length(); 9609 int numArgsPassed = info.Length();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
9671 isArityError = true; 9669 isArityError = true;
9672 } 9670 }
9673 9671
9674 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodF"); 9672 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodF");
9675 9673
9676 if (isArityError) { 9674 if (isArityError) {
9677 } 9675 }
9678 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9676 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9679 } 9677 }
9680 9678
9681 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 9679 void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9682 { 9680 {
9683 TestObjectV8Internal::overloadedMethodFMethod(info); 9681 TestObjectV8Internal::overloadedMethodFMethod(info);
9684 } 9682 }
9685 9683
9686 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9684 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9687 { 9685 {
9688 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodG"); 9686 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodG");
9689 9687
9690 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9688 TestObject* impl = V8TestObject::toImpl(info.Holder());
9691 9689
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
9748 isArityError = true; 9746 isArityError = true;
9749 } 9747 }
9750 9748
9751 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodG"); 9749 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodG");
9752 9750
9753 if (isArityError) { 9751 if (isArityError) {
9754 } 9752 }
9755 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9753 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9756 } 9754 }
9757 9755
9758 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 9756 void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9759 { 9757 {
9760 TestObjectV8Internal::overloadedMethodGMethod(info); 9758 TestObjectV8Internal::overloadedMethodGMethod(info);
9761 } 9759 }
9762 9760
9763 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9761 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9764 { 9762 {
9765 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9763 TestObject* impl = V8TestObject::toImpl(info.Holder());
9766 9764
9767 TestInterfaceImplementation* testInterfaceArg; 9765 TestInterfaceImplementation* testInterfaceArg;
9768 testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(), i nfo[0]); 9766 testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(), i nfo[0]);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
9812 9810
9813 if (isArityError) { 9811 if (isArityError) {
9814 if (info.Length() < 1) { 9812 if (info.Length() < 1) {
9815 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 9813 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
9816 return; 9814 return;
9817 } 9815 }
9818 } 9816 }
9819 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9817 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9820 } 9818 }
9821 9819
9822 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 9820 void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9823 { 9821 {
9824 TestObjectV8Internal::overloadedMethodHMethod(info); 9822 TestObjectV8Internal::overloadedMethodHMethod(info);
9825 } 9823 }
9826 9824
9827 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9825 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9828 { 9826 {
9829 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9827 TestObject* impl = V8TestObject::toImpl(info.Holder());
9830 9828
9831 V8StringResource<> stringArg; 9829 V8StringResource<> stringArg;
9832 stringArg = info[0]; 9830 stringArg = info[0];
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
9876 9874
9877 if (isArityError) { 9875 if (isArityError) {
9878 if (info.Length() < 1) { 9876 if (info.Length() < 1) {
9879 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 9877 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
9880 return; 9878 return;
9881 } 9879 }
9882 } 9880 }
9883 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9881 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9884 } 9882 }
9885 9883
9886 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 9884 void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9887 { 9885 {
9888 TestObjectV8Internal::overloadedMethodIMethod(info); 9886 TestObjectV8Internal::overloadedMethodIMethod(info);
9889 } 9887 }
9890 9888
9891 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9889 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9892 { 9890 {
9893 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9891 TestObject* impl = V8TestObject::toImpl(info.Holder());
9894 9892
9895 V8StringResource<> stringArg; 9893 V8StringResource<> stringArg;
9896 stringArg = info[0]; 9894 stringArg = info[0];
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
9941 9939
9942 if (isArityError) { 9940 if (isArityError) {
9943 if (info.Length() < 1) { 9941 if (info.Length() < 1) {
9944 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 9942 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
9945 return; 9943 return;
9946 } 9944 }
9947 } 9945 }
9948 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9946 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9949 } 9947 }
9950 9948
9951 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 9949 void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9952 { 9950 {
9953 TestObjectV8Internal::overloadedMethodJMethod(info); 9951 TestObjectV8Internal::overloadedMethodJMethod(info);
9954 } 9952 }
9955 9953
9956 static void overloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9954 static void overloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9957 { 9955 {
9958 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9956 TestObject* impl = V8TestObject::toImpl(info.Holder());
9959 9957
9960 ScriptValue functionArg; 9958 ScriptValue functionArg;
9961 if (!info[0]->IsFunction()) { 9959 if (!info[0]->IsFunction()) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
10002 10000
10003 if (isArityError) { 10001 if (isArityError) {
10004 if (info.Length() < 1) { 10002 if (info.Length() < 1) {
10005 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 10003 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
10006 return; 10004 return;
10007 } 10005 }
10008 } 10006 }
10009 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 10007 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10010 } 10008 }
10011 10009
10012 static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 10010 void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10013 { 10011 {
10014 TestObjectV8Internal::overloadedMethodKMethod(info); 10012 TestObjectV8Internal::overloadedMethodKMethod(info);
10015 } 10013 }
10016 10014
10017 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 10015 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
10018 { 10016 {
10019 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodL"); 10017 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedMethodL");
10020 10018
10021 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10019 TestObject* impl = V8TestObject::toImpl(info.Holder());
10022 10020
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
10092 10090
10093 if (isArityError) { 10091 if (isArityError) {
10094 if (info.Length() < 1) { 10092 if (info.Length() < 1) {
10095 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 10093 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
10096 return; 10094 return;
10097 } 10095 }
10098 } 10096 }
10099 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 10097 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10100 } 10098 }
10101 10099
10102 static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 10100 void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10103 { 10101 {
10104 TestObjectV8Internal::overloadedMethodLMethod(info); 10102 TestObjectV8Internal::overloadedMethodLMethod(info);
10105 } 10103 }
10106 10104
10107 static void overloadedMethodN1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 10105 static void overloadedMethodN1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
10108 { 10106 {
10109 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10107 TestObject* impl = V8TestObject::toImpl(info.Holder());
10110 10108
10111 TestInterfaceImplementation* testInterfaceArg; 10109 TestInterfaceImplementation* testInterfaceArg;
10112 testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(), i nfo[0]); 10110 testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(), i nfo[0]);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
10156 10154
10157 if (isArityError) { 10155 if (isArityError) {
10158 if (info.Length() < 1) { 10156 if (info.Length() < 1) {
10159 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 10157 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
10160 return; 10158 return;
10161 } 10159 }
10162 } 10160 }
10163 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 10161 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10164 } 10162 }
10165 10163
10166 static void overloadedMethodNMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 10164 void overloadedMethodNMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10167 { 10165 {
10168 TestObjectV8Internal::overloadedMethodNMethod(info); 10166 TestObjectV8Internal::overloadedMethodNMethod(info);
10169 } 10167 }
10170 10168
10171 static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Valu e>& info) 10169 static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Valu e>& info)
10172 { 10170 {
10173 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10171 TestObject* impl = V8TestObject::toImpl(info.Holder());
10174 10172
10175 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value()); 10173 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value());
10176 } 10174 }
10177 10175
10178 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu e>& info) 10176 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu e>& info)
10179 { 10177 {
10180 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "promiseOverloadMethod"); 10178 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "promiseOverloadMethod");
10181 ScriptState* scriptState = ScriptState::forReceiverObject(info); 10179 ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
10182 ExceptionToRejectPromiseScope rejectPromiseScope(info, scriptState, exceptio nState);
10183 10180
10184 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10181 TestObject* impl = V8TestObject::toImpl(info.Holder());
10185 10182
10186 DOMWindow* arg1; 10183 DOMWindow* arg1;
10187 double arg2; 10184 double arg2;
10188 arg1 = toDOMWindow(info.GetIsolate(), info[0]); 10185 arg1 = toDOMWindow(info.GetIsolate(), info[0]);
10189 if (!arg1) { 10186 if (!arg1) {
10190 exceptionState.throwTypeError("parameter 1 is not of type 'Window'."); 10187 exceptionState.throwTypeError("parameter 1 is not of type 'Window'.");
10191 10188
10192 return; 10189 return;
10193 } 10190 }
10194 10191
10195 arg2 = toRestrictedDouble(info.GetIsolate(), info[1], exceptionState); 10192 arg2 = toRestrictedDouble(info.GetIsolate(), info[1], exceptionState);
10196 if (exceptionState.hadException()) 10193 if (exceptionState.hadException())
10197 return; 10194 return;
10198 10195
10199 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); 10196 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value());
10200 } 10197 }
10201 10198
10202 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu e>& info) 10199 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu e>& info)
10203 { 10200 {
10204 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "promiseOverloadMethod"); 10201 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "promiseOverloadMethod");
10205 ScriptState* scriptState = ScriptState::forReceiverObject(info); 10202 ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
10206 ExceptionToRejectPromiseScope rejectPromiseScope(info, scriptState, exceptio nState);
10207 10203
10208 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10204 TestObject* impl = V8TestObject::toImpl(info.Holder());
10209 10205
10210 Document* arg1; 10206 Document* arg1;
10211 double arg2; 10207 double arg2;
10212 arg1 = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); 10208 arg1 = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10213 if (!arg1) { 10209 if (!arg1) {
10214 exceptionState.throwTypeError("parameter 1 is not of type 'Document'."); 10210 exceptionState.throwTypeError("parameter 1 is not of type 'Document'.");
10215 10211
10216 return; 10212 return;
(...skipping 24 matching lines...) Expand all
10241 if (V8Document::hasInstance(info[0], info.GetIsolate())) { 10237 if (V8Document::hasInstance(info[0], info.GetIsolate())) {
10242 promiseOverloadMethod3Method(info); 10238 promiseOverloadMethod3Method(info);
10243 return; 10239 return;
10244 } 10240 }
10245 break; 10241 break;
10246 default: 10242 default:
10247 isArityError = true; 10243 isArityError = true;
10248 } 10244 }
10249 10245
10250 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "promiseOverloadMethod"); 10246 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "promiseOverloadMethod");
10251 ScriptState* scriptState = ScriptState::forReceiverObject(info); 10247 ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
10252 ExceptionToRejectPromiseScope rejectPromiseScope(info, scriptState, exceptio nState);
10253 10248
10254 if (isArityError) { 10249 if (isArityError) {
10255 if (info.Length() >= 0) { 10250 if (info.Length() >= 0) {
10256 exceptionState.throwTypeError(ExceptionMessages::invalidArity("[0, 2 ]", info.Length())); 10251 exceptionState.throwTypeError(ExceptionMessages::invalidArity("[0, 2 ]", info.Length()));
10257 return; 10252 return;
10258 } 10253 }
10259 } 10254 }
10260 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 10255 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10261 } 10256 }
10262 10257
10263 static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 10258 void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
10264 { 10259 {
10265 TestObjectV8Internal::promiseOverloadMethodMethod(info); 10260 TestObjectV8Internal::promiseOverloadMethodMethod(info);
10266 } 10261 }
10267 10262
10268 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 10263 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
10269 { 10264 {
10270 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10265 TestObject* impl = V8TestObject::toImpl(info.Holder());
10271 10266
10272 impl->overloadedPerWorldBindingsMethod(); 10267 impl->overloadedPerWorldBindingsMethod();
10273 } 10268 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
10313 isArityError = true; 10308 isArityError = true;
10314 } 10309 }
10315 10310
10316 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedPerWorldBindingsMethod"); 10311 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedPerWorldBindingsMethod");
10317 10312
10318 if (isArityError) { 10313 if (isArityError) {
10319 } 10314 }
10320 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 10315 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10321 } 10316 }
10322 10317
10323 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 10318 void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
10324 { 10319 {
10325 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); 10320 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info);
10326 } 10321 }
10327 10322
10328 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 10323 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
10329 { 10324 {
10330 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedPerWorldBindingsMethod"); 10325 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedPerWorldBindingsMethod");
10331 10326
10332 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10327 TestObject* impl = V8TestObject::toImpl(info.Holder());
10333 10328
(...skipping 25 matching lines...) Expand all
10359 isArityError = true; 10354 isArityError = true;
10360 } 10355 }
10361 10356
10362 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedPerWorldBindingsMethod"); 10357 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedPerWorldBindingsMethod");
10363 10358
10364 if (isArityError) { 10359 if (isArityError) {
10365 } 10360 }
10366 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 10361 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10367 } 10362 }
10368 10363
10369 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info) 10364 void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
10370 { 10365 {
10371 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o); 10366 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o);
10372 } 10367 }
10373 10368
10374 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 10369 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
10375 { 10370 {
10376 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedStaticMethod"); 10371 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "overloadedStaticMethod");
10377 10372
10378 int longArg; 10373 int longArg;
10379 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te); 10374 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
10424 10419
10425 if (isArityError) { 10420 if (isArityError) {
10426 if (info.Length() < 1) { 10421 if (info.Length() < 1) {
10427 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 10422 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
10428 return; 10423 return;
10429 } 10424 }
10430 } 10425 }
10431 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 10426 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10432 } 10427 }
10433 10428
10434 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 10429 void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info)
10435 { 10430 {
10436 TestObjectV8Internal::overloadedStaticMethodMethod(info); 10431 TestObjectV8Internal::overloadedStaticMethodMethod(info);
10437 } 10432 }
10438 10433
10439 static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 10434 static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
10440 { 10435 {
10441 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "item"); 10436 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "item");
10442 10437
10443 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10438 TestObject* impl = V8TestObject::toImpl(info.Holder());
10444 10439
10445 ScriptState* scriptState = ScriptState::forReceiverObject(info); 10440 ScriptState* scriptState = ScriptState::forReceiverObject(info);
10446 10441
10447 if (UNLIKELY(info.Length() < 1)) { 10442 if (UNLIKELY(info.Length() < 1)) {
10448 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 10443 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
10449 return; 10444 return;
10450 } 10445 }
10451 10446
10452 unsigned index; 10447 unsigned index;
10453 index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionStat e); 10448 index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionStat e);
10454 if (exceptionState.hadException()) 10449 if (exceptionState.hadException())
10455 return; 10450 return;
10456 10451
10457 ScriptValue result = impl->item(scriptState, index); 10452 ScriptValue result = impl->item(scriptState, index);
10458 v8SetReturnValue(info, result.v8Value()); 10453 v8SetReturnValue(info, result.v8Value());
10459 } 10454 }
10460 10455
10461 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 10456 void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10462 { 10457 {
10463 TestObjectV8Internal::itemMethod(info); 10458 TestObjectV8Internal::itemMethod(info);
10464 } 10459 }
10465 10460
10466 static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 10461 static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
10467 { 10462 {
10468 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "setItem"); 10463 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "setItem");
10469 10464
10470 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10465 TestObject* impl = V8TestObject::toImpl(info.Holder());
10471 10466
(...skipping 11 matching lines...) Expand all
10483 return; 10478 return;
10484 10479
10485 value = info[1]; 10480 value = info[1];
10486 if (!value.prepare()) 10481 if (!value.prepare())
10487 return; 10482 return;
10488 10483
10489 String result = impl->setItem(scriptState, index, value); 10484 String result = impl->setItem(scriptState, index, value);
10490 v8SetReturnValueString(info, result, info.GetIsolate()); 10485 v8SetReturnValueString(info, result, info.GetIsolate());
10491 } 10486 }
10492 10487
10493 static void setItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o) 10488 void setItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10494 { 10489 {
10495 TestObjectV8Internal::setItemMethod(info); 10490 TestObjectV8Internal::setItemMethod(info);
10496 } 10491 }
10497 10492
10498 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 10493 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
10499 { 10494 {
10500 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodClampUnsignedShortArg"); 10495 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodClampUnsignedShortArg");
10501 10496
10502 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10497 TestObject* impl = V8TestObject::toImpl(info.Holder());
10503 10498
10504 if (UNLIKELY(info.Length() < 1)) { 10499 if (UNLIKELY(info.Length() < 1)) {
10505 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 10500 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
10506 return; 10501 return;
10507 } 10502 }
10508 10503
10509 unsigned clampUnsignedShortArg; 10504 unsigned clampUnsignedShortArg;
10510 clampUnsignedShortArg = toUInt16(info.GetIsolate(), info[0], Clamp, exceptio nState); 10505 clampUnsignedShortArg = toUInt16(info.GetIsolate(), info[0], Clamp, exceptio nState);
10511 if (exceptionState.hadException()) 10506 if (exceptionState.hadException())
10512 return; 10507 return;
10513 10508
10514 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); 10509 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg);
10515 } 10510 }
10516 10511
10517 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 10512 void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
10518 { 10513 {
10519 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); 10514 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info);
10520 } 10515 }
10521 10516
10522 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 10517 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
10523 { 10518 {
10524 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodClampUnsignedLongArg"); 10519 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodClampUnsignedLongArg");
10525 10520
10526 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10521 TestObject* impl = V8TestObject::toImpl(info.Holder());
10527 10522
10528 if (UNLIKELY(info.Length() < 1)) { 10523 if (UNLIKELY(info.Length() < 1)) {
10529 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 10524 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
10530 return; 10525 return;
10531 } 10526 }
10532 10527
10533 unsigned clampUnsignedLongArg; 10528 unsigned clampUnsignedLongArg;
10534 clampUnsignedLongArg = toUInt32(info.GetIsolate(), info[0], Clamp, exception State); 10529 clampUnsignedLongArg = toUInt32(info.GetIsolate(), info[0], Clamp, exception State);
10535 if (exceptionState.hadException()) 10530 if (exceptionState.hadException())
10536 return; 10531 return;
10537 10532
10538 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); 10533 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg);
10539 } 10534 }
10540 10535
10541 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 10536 void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
10542 { 10537 {
10543 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); 10538 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info);
10544 } 10539 }
10545 10540
10546 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 10541 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
10547 { 10542 {
10548 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10543 TestObject* impl = V8TestObject::toImpl(info.Holder());
10549 10544
10550 TestInterfaceEmpty* defaultUndefinedTestInterfaceEmptyArg; 10545 TestInterfaceEmpty* defaultUndefinedTestInterfaceEmptyArg;
10551 defaultUndefinedTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithType Check(info.GetIsolate(), info[0]); 10546 defaultUndefinedTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithType Check(info.GetIsolate(), info[0]);
10552 if (!defaultUndefinedTestInterfaceEmptyArg) { 10547 if (!defaultUndefinedTestInterfaceEmptyArg) {
10553 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDefaultUndefinedTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); 10548 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDefaultUndefinedTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."));
10554 10549
10555 return; 10550 return;
10556 } 10551 }
10557 10552
10558 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn terfaceEmptyArg); 10553 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn terfaceEmptyArg);
10559 } 10554 }
10560 10555
10561 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 10556 void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
10562 { 10557 {
10563 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info); 10558 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info);
10564 } 10559 }
10565 10560
10566 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 10561 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
10567 { 10562 {
10568 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultUndefinedLongArg"); 10563 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodDefaultUndefinedLongArg");
10569 10564
10570 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10565 TestObject* impl = V8TestObject::toImpl(info.Holder());
10571 10566
10572 int defaultUndefinedLongArg; 10567 int defaultUndefinedLongArg;
10573 defaultUndefinedLongArg = toInt32(info.GetIsolate(), info[0], NormalConversi on, exceptionState); 10568 defaultUndefinedLongArg = toInt32(info.GetIsolate(), info[0], NormalConversi on, exceptionState);
10574 if (exceptionState.hadException()) 10569 if (exceptionState.hadException())
10575 return; 10570 return;
10576 10571
10577 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); 10572 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg);
10578 } 10573 }
10579 10574
10580 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 10575 void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
10581 { 10576 {
10582 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); 10577 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info);
10583 } 10578 }
10584 10579
10585 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 10580 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
10586 { 10581 {
10587 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10582 TestObject* impl = V8TestObject::toImpl(info.Holder());
10588 10583
10589 V8StringResource<> defaultUndefinedStringArg; 10584 V8StringResource<> defaultUndefinedStringArg;
10590 defaultUndefinedStringArg = info[0]; 10585 defaultUndefinedStringArg = info[0];
10591 if (!defaultUndefinedStringArg.prepare()) 10586 if (!defaultUndefinedStringArg.prepare())
10592 return; 10587 return;
10593 10588
10594 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); 10589 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg);
10595 } 10590 }
10596 10591
10597 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 10592 void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
10598 { 10593 {
10599 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); 10594 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info);
10600 } 10595 }
10601 10596
10602 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 10597 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
10603 { 10598 {
10604 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodEnforceRangeLongArg"); 10599 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodEnforceRangeLongArg");
10605 10600
10606 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10601 TestObject* impl = V8TestObject::toImpl(info.Holder());
10607 10602
10608 if (UNLIKELY(info.Length() < 1)) { 10603 if (UNLIKELY(info.Length() < 1)) {
10609 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 10604 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
10610 return; 10605 return;
10611 } 10606 }
10612 10607
10613 int enforceRangeLongArg; 10608 int enforceRangeLongArg;
10614 enforceRangeLongArg = toInt32(info.GetIsolate(), info[0], EnforceRange, exce ptionState); 10609 enforceRangeLongArg = toInt32(info.GetIsolate(), info[0], EnforceRange, exce ptionState);
10615 if (exceptionState.hadException()) 10610 if (exceptionState.hadException())
10616 return; 10611 return;
10617 10612
10618 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); 10613 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg);
10619 } 10614 }
10620 10615
10621 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 10616 void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
10622 { 10617 {
10623 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); 10618 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info);
10624 } 10619 }
10625 10620
10626 static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 10621 static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
10627 { 10622 {
10628 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10623 TestObject* impl = V8TestObject::toImpl(info.Holder());
10629 10624
10630 if (UNLIKELY(info.Length() < 1)) { 10625 if (UNLIKELY(info.Length() < 1)) {
10631 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTreatNullAsEmptyStringStringArg", "TestObject", Except ionMessages::notEnoughArguments(1, info.Length()))); 10626 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTreatNullAsEmptyStringStringArg", "TestObject", Except ionMessages::notEnoughArguments(1, info.Length())));
10632 return; 10627 return;
10633 } 10628 }
10634 10629
10635 V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg; 10630 V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg;
10636 treatNullAsEmptyStringStringArg = info[0]; 10631 treatNullAsEmptyStringStringArg = info[0];
10637 if (!treatNullAsEmptyStringStringArg.prepare()) 10632 if (!treatNullAsEmptyStringStringArg.prepare())
10638 return; 10633 return;
10639 10634
10640 impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringString Arg); 10635 impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringString Arg);
10641 } 10636 }
10642 10637
10643 static void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 10638 void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
10644 { 10639 {
10645 TestObjectV8Internal::voidMethodTreatNullAsEmptyStringStringArgMethod(info); 10640 TestObjectV8Internal::voidMethodTreatNullAsEmptyStringStringArgMethod(info);
10646 } 10641 }
10647 10642
10648 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 10643 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
10649 { 10644 {
10650 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10645 TestObject* impl = V8TestObject::toImpl(info.Holder());
10651 10646
10652 if (UNLIKELY(info.Length() < 1)) { 10647 if (UNLIKELY(info.Length() < 1)) {
10653 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTreatNullAsNullStringStringArg", "TestObject", Excepti onMessages::notEnoughArguments(1, info.Length()))); 10648 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTreatNullAsNullStringStringArg", "TestObject", Excepti onMessages::notEnoughArguments(1, info.Length())));
10654 return; 10649 return;
10655 } 10650 }
10656 10651
10657 V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg; 10652 V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg;
10658 treatNullAsNullStringStringArg = info[0]; 10653 treatNullAsNullStringStringArg = info[0];
10659 if (!treatNullAsNullStringStringArg.prepare()) 10654 if (!treatNullAsNullStringStringArg.prepare())
10660 return; 10655 return;
10661 10656
10662 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g); 10657 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g);
10663 } 10658 }
10664 10659
10665 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 10660 void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
10666 { 10661 {
10667 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); 10662 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info);
10668 } 10663 }
10669 10664
10670 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 10665 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
10671 { 10666 {
10672 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10667 TestObject* impl = V8TestObject::toImpl(info.Holder());
10673 10668
10674 if (UNLIKELY(info.Length() < 1)) { 10669 if (UNLIKELY(info.Length() < 1)) {
10675 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringA rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length()))); 10670 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringA rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())));
10676 return; 10671 return;
10677 } 10672 }
10678 10673
10679 V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStr ingArg; 10674 V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStr ingArg;
10680 treatNullAsNullStringStringArg = info[0]; 10675 treatNullAsNullStringStringArg = info[0];
10681 if (!treatNullAsNullStringStringArg.prepare()) 10676 if (!treatNullAsNullStringStringArg.prepare())
10682 return; 10677 return;
10683 10678
10684 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg); 10679 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg);
10685 } 10680 }
10686 10681
10687 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 10682 void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMethodCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
10688 { 10683 {
10689 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info); 10684 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info);
10690 } 10685 }
10691 10686
10692 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) 10687 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info)
10693 { 10688 {
10694 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10689 TestObject* impl = V8TestObject::toImpl(info.Holder());
10695 10690
10696 impl->activityLoggingAccessForAllWorldsMethod(); 10691 impl->activityLoggingAccessForAllWorldsMethod();
10697 } 10692 }
10698 10693
10699 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 10694 void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
10700 { 10695 {
10701 ScriptState* scriptState = ScriptState::forReceiverObject(info); 10696 ScriptState* scriptState = ScriptState::forReceiverObject(info);
10702 V8PerContextData* contextData = scriptState->perContextData(); 10697 V8PerContextData* contextData = scriptState->perContextData();
10703 if (contextData && contextData->activityLogger()) { 10698 if (contextData && contextData->activityLogger()) {
10704 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::Executi onContext, "TestObject", "activityLoggingAccessForAllWorldsMethod"); 10699 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::Executi onContext, "TestObject", "activityLoggingAccessForAllWorldsMethod");
10705 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc al<v8::Value>>>(info, 0, exceptionState); 10700 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc al<v8::Value>>>(info, 0, exceptionState);
10706 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data()); 10701 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data());
10707 } 10702 }
10708 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); 10703 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info);
10709 } 10704 }
10710 10705
10711 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 10706 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
10712 { 10707 {
10713 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10708 TestObject* impl = V8TestObject::toImpl(info.Holder());
10714 10709
10715 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 10710 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
10716 impl->callWithExecutionContextVoidMethod(executionContext); 10711 impl->callWithExecutionContextVoidMethod(executionContext);
10717 } 10712 }
10718 10713
10719 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 10714 void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
10720 { 10715 {
10721 TestObjectV8Internal::callWithExecutionContextVoidMethodMethod(info); 10716 TestObjectV8Internal::callWithExecutionContextVoidMethodMethod(info);
10722 } 10717 }
10723 10718
10724 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 10719 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
10725 { 10720 {
10726 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10721 TestObject* impl = V8TestObject::toImpl(info.Holder());
10727 10722
10728 ScriptState* scriptState = ScriptState::forReceiverObject(info); 10723 ScriptState* scriptState = ScriptState::forReceiverObject(info);
10729 10724
10730 impl->callWithScriptStateVoidMethod(scriptState); 10725 impl->callWithScriptStateVoidMethod(scriptState);
10731 } 10726 }
10732 10727
10733 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 10728 void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
10734 { 10729 {
10735 TestObjectV8Internal::callWithScriptStateVoidMethodMethod(info); 10730 TestObjectV8Internal::callWithScriptStateVoidMethodMethod(info);
10736 } 10731 }
10737 10732
10738 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 10733 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
10739 { 10734 {
10740 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10735 TestObject* impl = V8TestObject::toImpl(info.Holder());
10741 10736
10742 ScriptState* scriptState = ScriptState::forReceiverObject(info); 10737 ScriptState* scriptState = ScriptState::forReceiverObject(info);
10743 10738
10744 int result = impl->callWithScriptStateLongMethod(scriptState); 10739 int result = impl->callWithScriptStateLongMethod(scriptState);
10745 v8SetReturnValueInt(info, result); 10740 v8SetReturnValueInt(info, result);
10746 } 10741 }
10747 10742
10748 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 10743 void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
10749 { 10744 {
10750 TestObjectV8Internal::callWithScriptStateLongMethodMethod(info); 10745 TestObjectV8Internal::callWithScriptStateLongMethodMethod(info);
10751 } 10746 }
10752 10747
10753 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 10748 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
10754 { 10749 {
10755 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10750 TestObject* impl = V8TestObject::toImpl(info.Holder());
10756 10751
10757 ScriptState* scriptState = ScriptState::forReceiverObject(info); 10752 ScriptState* scriptState = ScriptState::forReceiverObject(info);
10758 10753
10759 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 10754 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
10760 impl->callWithScriptStateExecutionContextVoidMethod(scriptState, executionCo ntext); 10755 impl->callWithScriptStateExecutionContextVoidMethod(scriptState, executionCo ntext);
10761 } 10756 }
10762 10757
10763 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 10758 void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
10764 { 10759 {
10765 TestObjectV8Internal::callWithScriptStateExecutionContextVoidMethodMethod(in fo); 10760 TestObjectV8Internal::callWithScriptStateExecutionContextVoidMethodMethod(in fo);
10766 } 10761 }
10767 10762
10768 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info) 10763 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info)
10769 { 10764 {
10770 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10765 TestObject* impl = V8TestObject::toImpl(info.Holder());
10771 10766
10772 ScriptState* scriptState = ScriptState::forReceiverObject(info); 10767 ScriptState* scriptState = ScriptState::forReceiverObject(info);
10773 10768
10774 ScriptArguments* scriptArguments(ScriptArguments::create(scriptState, info, 0)); 10769 ScriptArguments* scriptArguments(ScriptArguments::create(scriptState, info, 0));
10775 impl->callWithScriptStateScriptArgumentsVoidMethod(scriptState, scriptArgume nts); 10770 impl->callWithScriptStateScriptArgumentsVoidMethod(scriptState, scriptArgume nts);
10776 } 10771 }
10777 10772
10778 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 10773 void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
10779 { 10774 {
10780 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o); 10775 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o);
10781 } 10776 }
10782 10777
10783 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info) 10778 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info)
10784 { 10779 {
10785 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "callWithScriptStateScriptArgumentsVoidMethodOptionalBoolea nArg"); 10780 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "callWithScriptStateScriptArgumentsVoidMethodOptionalBoolea nArg");
10786 10781
10787 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10782 TestObject* impl = V8TestObject::toImpl(info.Holder());
10788 10783
(...skipping 12 matching lines...) Expand all
10801 return; 10796 return;
10802 } 10797 }
10803 optionalBooleanArg = toBoolean(info.GetIsolate(), info[0], exceptionState); 10798 optionalBooleanArg = toBoolean(info.GetIsolate(), info[0], exceptionState);
10804 if (exceptionState.hadException()) 10799 if (exceptionState.hadException())
10805 return; 10800 return;
10806 10801
10807 ScriptArguments* scriptArguments(ScriptArguments::create(scriptState, info, 1)); 10802 ScriptArguments* scriptArguments(ScriptArguments::create(scriptState, info, 1));
10808 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(scriptS tate, scriptArguments, optionalBooleanArg); 10803 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(scriptS tate, scriptArguments, optionalBooleanArg);
10809 } 10804 }
10810 10805
10811 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info) 10806 void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethodCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
10812 { 10807 {
10813 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo oleanArgMethod(info); 10808 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo oleanArgMethod(info);
10814 } 10809 }
10815 10810
10816 static void callWithCurrentWindowMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 10811 static void callWithCurrentWindowMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
10817 { 10812 {
10818 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10813 TestObject* impl = V8TestObject::toImpl(info.Holder());
10819 10814
10820 impl->callWithCurrentWindow(currentDOMWindow(info.GetIsolate())); 10815 impl->callWithCurrentWindow(currentDOMWindow(info.GetIsolate()));
10821 } 10816 }
10822 10817
10823 static void callWithCurrentWindowMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 10818 void callWithCurrentWindowMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
10824 { 10819 {
10825 TestObjectV8Internal::callWithCurrentWindowMethod(info); 10820 TestObjectV8Internal::callWithCurrentWindowMethod(info);
10826 } 10821 }
10827 10822
10828 static void callWithCurrentWindowScriptWindowMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 10823 static void callWithCurrentWindowScriptWindowMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
10829 { 10824 {
10830 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10825 TestObject* impl = V8TestObject::toImpl(info.Holder());
10831 10826
10832 impl->callWithCurrentWindowScriptWindow(currentDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate())); 10827 impl->callWithCurrentWindowScriptWindow(currentDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()));
10833 } 10828 }
10834 10829
10835 static void callWithCurrentWindowScriptWindowMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 10830 void callWithCurrentWindowScriptWindowMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
10836 { 10831 {
10837 TestObjectV8Internal::callWithCurrentWindowScriptWindowMethod(info); 10832 TestObjectV8Internal::callWithCurrentWindowScriptWindowMethod(info);
10838 } 10833 }
10839 10834
10840 static void callWithThisValueMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 10835 static void callWithThisValueMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
10841 { 10836 {
10842 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10837 TestObject* impl = V8TestObject::toImpl(info.Holder());
10843 10838
10844 ScriptState* scriptState = ScriptState::forReceiverObject(info); 10839 ScriptState* scriptState = ScriptState::forReceiverObject(info);
10845 10840
10846 impl->callWithThisValue(ScriptValue(scriptState, info.Holder())); 10841 impl->callWithThisValue(ScriptValue(scriptState, info.Holder()));
10847 } 10842 }
10848 10843
10849 static void callWithThisValueMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 10844 void callWithThisValueMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10850 { 10845 {
10851 TestObjectV8Internal::callWithThisValueMethod(info); 10846 TestObjectV8Internal::callWithThisValueMethod(info);
10852 } 10847 }
10853 10848
10854 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 10849 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
10855 { 10850 {
10856 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10851 TestObject* impl = V8TestObject::toImpl(info.Holder());
10857 10852
10858 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "checkSecurityForNodeVoidMethod"); 10853 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "checkSecurityForNodeVoidMethod");
10859 if (!BindingSecurity::shouldAllowAccessTo(currentDOMWindow(info.GetIsolate() ), impl->checkSecurityForNodeVoidMethod(), exceptionState)) { 10854 if (!BindingSecurity::shouldAllowAccessTo(currentDOMWindow(info.GetIsolate() ), impl->checkSecurityForNodeVoidMethod(), exceptionState)) {
10860 v8SetReturnValueNull(info); 10855 v8SetReturnValueNull(info);
10861 return; 10856 return;
10862 } 10857 }
10863 10858
10864 impl->checkSecurityForNodeVoidMethod(); 10859 impl->checkSecurityForNodeVoidMethod();
10865 } 10860 }
10866 10861
10867 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 10862 void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
10868 { 10863 {
10869 TestObjectV8Internal::checkSecurityForNodeVoidMethodMethod(info); 10864 TestObjectV8Internal::checkSecurityForNodeVoidMethodMethod(info);
10870 } 10865 }
10871 10866
10872 static void customVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 10867 void customVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
10873 { 10868 {
10874 V8TestObject::customVoidMethodMethodCustom(info); 10869 V8TestObject::customVoidMethodMethodCustom(info);
10875 } 10870 }
10876 10871
10877 static void customCallPrologueVoidMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 10872 static void customCallPrologueVoidMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
10878 { 10873 {
10879 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10874 TestObject* impl = V8TestObject::toImpl(info.Holder());
10880 10875
10881 V8TestObject::customCallPrologueVoidMethodMethodPrologueCustom(info, impl); 10876 V8TestObject::customCallPrologueVoidMethodMethodPrologueCustom(info, impl);
10882 impl->customCallPrologueVoidMethod(); 10877 impl->customCallPrologueVoidMethod();
10883 } 10878 }
10884 10879
10885 static void customCallPrologueVoidMethodMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 10880 void customCallPrologueVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
10886 { 10881 {
10887 TestObjectV8Internal::customCallPrologueVoidMethodMethod(info); 10882 TestObjectV8Internal::customCallPrologueVoidMethodMethod(info);
10888 } 10883 }
10889 10884
10890 static void customCallEpilogueVoidMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 10885 static void customCallEpilogueVoidMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
10891 { 10886 {
10892 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10887 TestObject* impl = V8TestObject::toImpl(info.Holder());
10893 10888
10894 impl->customCallEpilogueVoidMethod(); 10889 impl->customCallEpilogueVoidMethod();
10895 V8TestObject::customCallEpilogueVoidMethodMethodEpilogueCustom(info, impl); 10890 V8TestObject::customCallEpilogueVoidMethodMethodEpilogueCustom(info, impl);
10896 } 10891 }
10897 10892
10898 static void customCallEpilogueVoidMethodMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 10893 void customCallEpilogueVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
10899 { 10894 {
10900 TestObjectV8Internal::customCallEpilogueVoidMethodMethod(info); 10895 TestObjectV8Internal::customCallEpilogueVoidMethodMethod(info);
10901 } 10896 }
10902 10897
10903 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 10898 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
10904 { 10899 {
10905 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10900 TestObject* impl = V8TestObject::toImpl(info.Holder());
10906 10901
10907 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 10902 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
10908 10903
10909 impl->customElementCallbacksVoidMethod(); 10904 impl->customElementCallbacksVoidMethod();
10910 } 10905 }
10911 10906
10912 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 10907 void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
10913 { 10908 {
10914 TestObjectV8Internal::customElementCallbacksVoidMethodMethod(info); 10909 TestObjectV8Internal::customElementCallbacksVoidMethodMethod(info);
10915 } 10910 }
10916 10911
10917 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 10912 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
10918 { 10913 {
10919 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10914 TestObject* impl = V8TestObject::toImpl(info.Holder());
10920 10915
10921 impl->deprecatedVoidMethod(); 10916 impl->deprecatedVoidMethod();
10922 } 10917 }
10923 10918
10924 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 10919 void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
10925 { 10920 {
10926 Deprecation::countDeprecationIfNotPrivateScript(info.GetIsolate(), currentEx ecutionContext(info.GetIsolate()), UseCounter::voidMethod); 10921 Deprecation::countDeprecationIfNotPrivateScript(info.GetIsolate(), currentEx ecutionContext(info.GetIsolate()), UseCounter::voidMethod);
10927 TestObjectV8Internal::deprecatedVoidMethodMethod(info); 10922 TestObjectV8Internal::deprecatedVoidMethodMethod(info);
10928 } 10923 }
10929 10924
10930 static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 10925 static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
10931 { 10926 {
10932 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10927 TestObject* impl = V8TestObject::toImpl(info.Holder());
10933 10928
10934 impl->implementedAsMethodName(); 10929 impl->implementedAsMethodName();
10935 } 10930 }
10936 10931
10937 static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 10932 void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
10938 { 10933 {
10939 TestObjectV8Internal::implementedAsVoidMethodMethod(info); 10934 TestObjectV8Internal::implementedAsVoidMethodMethod(info);
10940 } 10935 }
10941 10936
10942 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 10937 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
10943 { 10938 {
10944 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10939 TestObject* impl = V8TestObject::toImpl(info.Holder());
10945 10940
10946 impl->measureAsVoidMethod(); 10941 impl->measureAsVoidMethod();
10947 } 10942 }
10948 10943
10949 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 10944 void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info)
10950 { 10945 {
10951 UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 10946 UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
10952 TestObjectV8Internal::measureAsVoidMethodMethod(info); 10947 TestObjectV8Internal::measureAsVoidMethodMethod(info);
10953 } 10948 }
10954 10949
10955 static void measureMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 10950 static void measureMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
10956 { 10951 {
10957 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10952 TestObject* impl = V8TestObject::toImpl(info.Holder());
10958 10953
10959 impl->measureMethod(); 10954 impl->measureMethod();
10960 } 10955 }
10961 10956
10962 static void measureMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) 10957 void measureMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info )
10963 { 10958 {
10964 UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasureMethod_Method); 10959 UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasureMethod_Method);
10965 TestObjectV8Internal::measureMethodMethod(info); 10960 TestObjectV8Internal::measureMethodMethod(info);
10966 } 10961 }
10967 10962
10968 static void measureOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Va lue>& info) 10963 static void measureOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Va lue>& info)
10969 { 10964 {
10970 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10965 TestObject* impl = V8TestObject::toImpl(info.Holder());
10971 10966
10972 impl->measureOverloadedMethod(); 10967 impl->measureOverloadedMethod();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
11008 isArityError = true; 11003 isArityError = true;
11009 } 11004 }
11010 11005
11011 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "measureOverloadedMethod"); 11006 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "measureOverloadedMethod");
11012 11007
11013 if (isArityError) { 11008 if (isArityError) {
11014 } 11009 }
11015 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 11010 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
11016 } 11011 }
11017 11012
11018 static void measureOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 11013 void measureOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
11019 { 11014 {
11020 TestObjectV8Internal::measureOverloadedMethodMethod(info); 11015 TestObjectV8Internal::measureOverloadedMethodMethod(info);
11021 } 11016 }
11022 11017
11023 static void DeprecateAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8 ::Value>& info) 11018 static void DeprecateAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8 ::Value>& info)
11024 { 11019 {
11025 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11020 TestObject* impl = V8TestObject::toImpl(info.Holder());
11026 11021
11027 impl->DeprecateAsOverloadedMethod(); 11022 impl->DeprecateAsOverloadedMethod();
11028 } 11023 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
11063 isArityError = true; 11058 isArityError = true;
11064 } 11059 }
11065 11060
11066 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "DeprecateAsOverloadedMethod"); 11061 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "DeprecateAsOverloadedMethod");
11067 11062
11068 if (isArityError) { 11063 if (isArityError) {
11069 } 11064 }
11070 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 11065 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
11071 } 11066 }
11072 11067
11073 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 11068 void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
11074 { 11069 {
11075 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info); 11070 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info);
11076 } 11071 }
11077 11072
11078 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba ckInfo<v8::Value>& info) 11073 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba ckInfo<v8::Value>& info)
11079 { 11074 {
11080 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11075 TestObject* impl = V8TestObject::toImpl(info.Holder());
11081 11076
11082 impl->DeprecateAsSameValueOverloadedMethod(); 11077 impl->DeprecateAsSameValueOverloadedMethod();
11083 } 11078 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
11118 isArityError = true; 11113 isArityError = true;
11119 } 11114 }
11120 11115
11121 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "DeprecateAsSameValueOverloadedMethod"); 11116 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "DeprecateAsSameValueOverloadedMethod");
11122 11117
11123 if (isArityError) { 11118 if (isArityError) {
11124 } 11119 }
11125 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 11120 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
11126 } 11121 }
11127 11122
11128 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 11123 void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
11129 { 11124 {
11130 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info); 11125 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info);
11131 } 11126 }
11132 11127
11133 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 11128 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
11134 { 11129 {
11135 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11130 TestObject* impl = V8TestObject::toImpl(info.Holder());
11136 11131
11137 impl->measureAsOverloadedMethod(); 11132 impl->measureAsOverloadedMethod();
11138 } 11133 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
11173 isArityError = true; 11168 isArityError = true;
11174 } 11169 }
11175 11170
11176 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "measureAsOverloadedMethod"); 11171 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "measureAsOverloadedMethod");
11177 11172
11178 if (isArityError) { 11173 if (isArityError) {
11179 } 11174 }
11180 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 11175 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
11181 } 11176 }
11182 11177
11183 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 11178 void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
11184 { 11179 {
11185 TestObjectV8Internal::measureAsOverloadedMethodMethod(info); 11180 TestObjectV8Internal::measureAsOverloadedMethodMethod(info);
11186 } 11181 }
11187 11182
11188 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback Info<v8::Value>& info) 11183 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback Info<v8::Value>& info)
11189 { 11184 {
11190 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11185 TestObject* impl = V8TestObject::toImpl(info.Holder());
11191 11186
11192 impl->measureAsSameValueOverloadedMethod(); 11187 impl->measureAsSameValueOverloadedMethod();
11193 } 11188 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
11228 isArityError = true; 11223 isArityError = true;
11229 } 11224 }
11230 11225
11231 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "measureAsSameValueOverloadedMethod"); 11226 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "measureAsSameValueOverloadedMethod");
11232 11227
11233 if (isArityError) { 11228 if (isArityError) {
11234 } 11229 }
11235 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 11230 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
11236 } 11231 }
11237 11232
11238 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 11233 void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
11239 { 11234 {
11240 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info); 11235 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info);
11241 } 11236 }
11242 11237
11243 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 11238 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
11244 { 11239 {
11245 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11240 TestObject* impl = V8TestObject::toImpl(info.Holder());
11246 11241
11247 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); 11242 impl->deprecateAsMeasureAsSameValueOverloadedMethod();
11248 } 11243 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
11285 isArityError = true; 11280 isArityError = true;
11286 } 11281 }
11287 11282
11288 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "deprecateAsMeasureAsSameValueOverloadedMethod"); 11283 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "deprecateAsMeasureAsSameValueOverloadedMethod");
11289 11284
11290 if (isArityError) { 11285 if (isArityError) {
11291 } 11286 }
11292 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 11287 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
11293 } 11288 }
11294 11289
11295 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 11290 void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
11296 { 11291 {
11297 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in fo); 11292 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in fo);
11298 } 11293 }
11299 11294
11300 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 11295 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
11301 { 11296 {
11302 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11297 TestObject* impl = V8TestObject::toImpl(info.Holder());
11303 11298
11304 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); 11299 impl->deprecateAsSameValueMeasureAsOverloadedMethod();
11305 } 11300 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
11342 isArityError = true; 11337 isArityError = true;
11343 } 11338 }
11344 11339
11345 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "deprecateAsSameValueMeasureAsOverloadedMethod"); 11340 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "deprecateAsSameValueMeasureAsOverloadedMethod");
11346 11341
11347 if (isArityError) { 11342 if (isArityError) {
11348 } 11343 }
11349 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 11344 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
11350 } 11345 }
11351 11346
11352 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 11347 void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
11353 { 11348 {
11354 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in fo); 11349 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in fo);
11355 } 11350 }
11356 11351
11357 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 11352 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
11358 { 11353 {
11359 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11354 TestObject* impl = V8TestObject::toImpl(info.Holder());
11360 11355
11361 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); 11356 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod();
11362 } 11357 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
11399 isArityError = true; 11394 isArityError = true;
11400 } 11395 }
11401 11396
11402 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "deprecateAsSameValueMeasureAsSameValueOverloadedMethod"); 11397 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "deprecateAsSameValueMeasureAsSameValueOverloadedMethod");
11403 11398
11404 if (isArityError) { 11399 if (isArityError) {
11405 } 11400 }
11406 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 11401 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
11407 } 11402 }
11408 11403
11409 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 11404 void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
11410 { 11405 {
11411 TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethod Method(info); 11406 TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethod Method(info);
11412 } 11407 }
11413 11408
11414 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 11409 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
11415 { 11410 {
11416 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11411 TestObject* impl = V8TestObject::toImpl(info.Holder());
11417 11412
11418 impl->notEnumerableVoidMethod(); 11413 impl->notEnumerableVoidMethod();
11419 } 11414 }
11420 11415
11421 static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 11416 void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
11422 { 11417 {
11423 TestObjectV8Internal::notEnumerableVoidMethodMethod(info); 11418 TestObjectV8Internal::notEnumerableVoidMethodMethod(info);
11424 } 11419 }
11425 11420
11426 static void originTrialEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 11421 static void originTrialEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
11427 { 11422 {
11428 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11423 TestObject* impl = V8TestObject::toImpl(info.Holder());
11429 11424
11430 impl->originTrialEnabledVoidMethod(); 11425 impl->originTrialEnabledVoidMethod();
11431 } 11426 }
11432 11427
11433 static void originTrialEnabledVoidMethodMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 11428 void originTrialEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
11434 { 11429 {
11435 TestObjectV8Internal::originTrialEnabledVoidMethodMethod(info); 11430 TestObjectV8Internal::originTrialEnabledVoidMethodMethod(info);
11436 } 11431 }
11437 11432
11438 static void perWorldBindingsOriginTrialEnabledVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info) 11433 static void perWorldBindingsOriginTrialEnabledVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info)
11439 { 11434 {
11440 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11435 TestObject* impl = V8TestObject::toImpl(info.Holder());
11441 11436
11442 impl->perWorldBindingsOriginTrialEnabledVoidMethod(); 11437 impl->perWorldBindingsOriginTrialEnabledVoidMethod();
11443 } 11438 }
11444 11439
11445 static void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 11440 void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
11446 { 11441 {
11447 TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethod(inf o); 11442 TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethod(inf o);
11448 } 11443 }
11449 11444
11450 static void perWorldBindingsOriginTrialEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 11445 static void perWorldBindingsOriginTrialEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
11451 { 11446 {
11452 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11447 TestObject* impl = V8TestObject::toImpl(info.Holder());
11453 11448
11454 impl->perWorldBindingsOriginTrialEnabledVoidMethod(); 11449 impl->perWorldBindingsOriginTrialEnabledVoidMethod();
11455 } 11450 }
11456 11451
11457 static void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallbackForMainWor ld(const v8::FunctionCallbackInfo<v8::Value>& info) 11452 void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallbackForMainWorld(cons t v8::FunctionCallbackInfo<v8::Value>& info)
11458 { 11453 {
11459 TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodForM ainWorld(info); 11454 TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodForM ainWorld(info);
11460 } 11455 }
11461 11456
11462 static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 11457 static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
11463 { 11458 {
11464 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11459 TestObject* impl = V8TestObject::toImpl(info.Holder());
11465 11460
11466 impl->perWorldBindingsVoidMethod(); 11461 impl->perWorldBindingsVoidMethod();
11467 } 11462 }
11468 11463
11469 static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 11464 void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
11470 { 11465 {
11471 TestObjectV8Internal::perWorldBindingsVoidMethodMethod(info); 11466 TestObjectV8Internal::perWorldBindingsVoidMethodMethod(info);
11472 } 11467 }
11473 11468
11474 static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallb ackInfo<v8::Value>& info) 11469 static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallb ackInfo<v8::Value>& info)
11475 { 11470 {
11476 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11471 TestObject* impl = V8TestObject::toImpl(info.Holder());
11477 11472
11478 impl->perWorldBindingsVoidMethod(); 11473 impl->perWorldBindingsVoidMethod();
11479 } 11474 }
11480 11475
11481 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct ionCallbackInfo<v8::Value>& info) 11476 void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::FunctionCall backInfo<v8::Value>& info)
11482 { 11477 {
11483 TestObjectV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(info); 11478 TestObjectV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(info);
11484 } 11479 }
11485 11480
11486 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 11481 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
11487 { 11482 {
11488 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11483 TestObject* impl = V8TestObject::toImpl(info.Holder());
11489 11484
11490 if (UNLIKELY(info.Length() < 1)) { 11485 if (UNLIKELY(info.Length() < 1)) {
11491 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length()))); 11486 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())));
11492 return; 11487 return;
11493 } 11488 }
11494 11489
11495 TestInterfaceEmpty* testInterfaceEmptyArg; 11490 TestInterfaceEmpty* testInterfaceEmptyArg;
11496 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]); 11491 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]);
11497 if (!testInterfaceEmptyArg) { 11492 if (!testInterfaceEmptyArg) {
11498 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); 11493 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."));
11499 11494
11500 return; 11495 return;
11501 } 11496 }
11502 11497
11503 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 11498 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
11504 } 11499 }
11505 11500
11506 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 11501 void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
11507 { 11502 {
11508 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info); 11503 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info);
11509 } 11504 }
11510 11505
11511 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info) 11506 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info)
11512 { 11507 {
11513 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11508 TestObject* impl = V8TestObject::toImpl(info.Holder());
11514 11509
11515 if (UNLIKELY(info.Length() < 1)) { 11510 if (UNLIKELY(info.Length() < 1)) {
11516 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length()))); 11511 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())));
11517 return; 11512 return;
11518 } 11513 }
11519 11514
11520 TestInterfaceEmpty* testInterfaceEmptyArg; 11515 TestInterfaceEmpty* testInterfaceEmptyArg;
11521 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]); 11516 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]);
11522 if (!testInterfaceEmptyArg) { 11517 if (!testInterfaceEmptyArg) {
11523 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); 11518 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."));
11524 11519
11525 return; 11520 return;
11526 } 11521 }
11527 11522
11528 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 11523 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
11529 } 11524 }
11530 11525
11531 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) 11526 void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info)
11532 { 11527 {
11533 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info); 11528 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info);
11534 } 11529 }
11535 11530
11536 static void postMessageImpl(const char* interfaceName, TestObject* instance, con st v8::FunctionCallbackInfo<v8::Value>& info) 11531 static void postMessageImpl(const char* interfaceName, TestObject* instance, con st v8::FunctionCallbackInfo<v8::Value>& info)
11537 { 11532 {
11538 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, interfaceName, "postMessage"); 11533 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, interfaceName, "postMessage");
11539 if (UNLIKELY(info.Length() < 1)) { 11534 if (UNLIKELY(info.Length() < 1)) {
11540 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 11535 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
11541 return; 11536 return;
11542 } 11537 }
11543 Transferables transferables; 11538 Transferables transferables;
11544 if (info.Length() > 1) { 11539 if (info.Length() > 1) {
11545 const int transferablesArgIndex = 1; 11540 const int transferablesArgIndex = 1;
11546 if (!SerializedScriptValue::extractTransferables(info.GetIsolate(), info [transferablesArgIndex], transferablesArgIndex, transferables, exceptionState)) { 11541 if (!SerializedScriptValue::extractTransferables(info.GetIsolate(), info [transferablesArgIndex], transferablesArgIndex, transferables, exceptionState)) {
11547 return; 11542 return;
11548 } 11543 }
11549 } 11544 }
11550 RefPtr<SerializedScriptValue> message = SerializedScriptValue::serialize(inf o.GetIsolate(), info[0], &transferables, nullptr, exceptionState); 11545 RefPtr<SerializedScriptValue> message = SerializedScriptValue::serialize(inf o.GetIsolate(), info[0], &transferables, nullptr, exceptionState);
11551 if (exceptionState.hadException()) 11546 if (exceptionState.hadException())
11552 return; 11547 return;
11553 // FIXME: Only pass context/exceptionState if instance really requires it. 11548 // FIXME: Only pass context/exceptionState if instance really requires it.
11554 ExecutionContext* context = currentExecutionContext(info.GetIsolate()); 11549 ExecutionContext* context = currentExecutionContext(info.GetIsolate());
11555 instance->postMessage(context, message.release(), transferables.messagePorts , exceptionState); 11550 instance->postMessage(context, message.release(), transferables.messagePorts , exceptionState);
11556 } 11551 }
11557 11552
11558 static void postMessageMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 11553 void postMessageMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
11559 { 11554 {
11560 postMessageImpl("TestObject", V8TestObject::toImpl(info.Holder()), info); 11555 postMessageImpl("TestObject", V8TestObject::toImpl(info.Holder()), info);
11561 } 11556 }
11562 11557
11563 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 11558 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
11564 { 11559 {
11565 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11560 TestObject* impl = V8TestObject::toImpl(info.Holder());
11566 11561
11567 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 11562 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
11568 } 11563 }
11569 11564
11570 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 11565 void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
11571 { 11566 {
11572 ScriptState* scriptState = ScriptState::forReceiverObject(info); 11567 ScriptState* scriptState = ScriptState::forReceiverObject(info);
11573 V8PerContextData* contextData = scriptState->perContextData(); 11568 V8PerContextData* contextData = scriptState->perContextData();
11574 if (contextData && contextData->activityLogger()) { 11569 if (contextData && contextData->activityLogger()) {
11575 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::Executi onContext, "TestObject", "activityLoggingForAllWorldsPerWorldBindingsVoidMethod" ); 11570 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::Executi onContext, "TestObject", "activityLoggingForAllWorldsPerWorldBindingsVoidMethod" );
11576 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc al<v8::Value>>>(info, 0, exceptionState); 11571 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc al<v8::Value>>>(info, 0, exceptionState);
11577 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 11572 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
11578 } 11573 }
11579 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info); 11574 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info);
11580 } 11575 }
11581 11576
11582 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) 11577 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info)
11583 { 11578 {
11584 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11579 TestObject* impl = V8TestObject::toImpl(info.Holder());
11585 11580
11586 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 11581 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
11587 } 11582 }
11588 11583
11589 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 11584 void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackForMainW orld(const v8::FunctionCallbackInfo<v8::Value>& info)
11590 { 11585 {
11591 ScriptState* scriptState = ScriptState::forReceiverObject(info); 11586 ScriptState* scriptState = ScriptState::forReceiverObject(info);
11592 V8PerContextData* contextData = scriptState->perContextData(); 11587 V8PerContextData* contextData = scriptState->perContextData();
11593 if (contextData && contextData->activityLogger()) { 11588 if (contextData && contextData->activityLogger()) {
11594 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::Executi onContext, "TestObject", "activityLoggingForAllWorldsPerWorldBindingsVoidMethod" ); 11589 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::Executi onContext, "TestObject", "activityLoggingForAllWorldsPerWorldBindingsVoidMethod" );
11595 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc al<v8::Value>>>(info, 0, exceptionState); 11590 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc al<v8::Value>>>(info, 0, exceptionState);
11596 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 11591 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
11597 } 11592 }
11598 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info); 11593 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info);
11599 } 11594 }
11600 11595
11601 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) 11596 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info)
11602 { 11597 {
11603 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11598 TestObject* impl = V8TestObject::toImpl(info.Holder());
11604 11599
11605 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 11600 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
11606 } 11601 }
11607 11602
11608 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 11603 void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
11609 { 11604 {
11610 ScriptState* scriptState = ScriptState::forReceiverObject(info); 11605 ScriptState* scriptState = ScriptState::forReceiverObject(info);
11611 V8PerContextData* contextData = scriptState->perContextData(); 11606 V8PerContextData* contextData = scriptState->perContextData();
11612 if (contextData && contextData->activityLogger()) { 11607 if (contextData && contextData->activityLogger()) {
11613 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::Executi onContext, "TestObject", "activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thod"); 11608 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::Executi onContext, "TestObject", "activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thod");
11614 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc al<v8::Value>>>(info, 0, exceptionState); 11609 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc al<v8::Value>>>(info, 0, exceptionState);
11615 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 11610 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
11616 } 11611 }
11617 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info); 11612 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info);
11618 } 11613 }
11619 11614
11620 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 11615 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
11621 { 11616 {
11622 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11617 TestObject* impl = V8TestObject::toImpl(info.Holder());
11623 11618
11624 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 11619 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
11625 } 11620 }
11626 11621
11627 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 11622 void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbackFor MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
11628 { 11623 {
11629 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethodForMainWorld(info); 11624 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethodForMainWorld(info);
11630 } 11625 }
11631 11626
11632 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 11627 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
11633 { 11628 {
11634 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionVoidMethod"); 11629 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionVoidMethod");
11635 11630
11636 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11631 TestObject* impl = V8TestObject::toImpl(info.Holder());
11637 11632
11638 impl->raisesExceptionVoidMethod(exceptionState); 11633 impl->raisesExceptionVoidMethod(exceptionState);
11639 if (exceptionState.hadException()) { 11634 if (exceptionState.hadException()) {
11640 return; 11635 return;
11641 } 11636 }
11642 } 11637 }
11643 11638
11644 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 11639 void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
11645 { 11640 {
11646 TestObjectV8Internal::raisesExceptionVoidMethodMethod(info); 11641 TestObjectV8Internal::raisesExceptionVoidMethodMethod(info);
11647 } 11642 }
11648 11643
11649 static void raisesExceptionStringMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 11644 static void raisesExceptionStringMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
11650 { 11645 {
11651 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionStringMethod"); 11646 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionStringMethod");
11652 11647
11653 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11648 TestObject* impl = V8TestObject::toImpl(info.Holder());
11654 11649
11655 String result = impl->raisesExceptionStringMethod(exceptionState); 11650 String result = impl->raisesExceptionStringMethod(exceptionState);
11656 if (exceptionState.hadException()) { 11651 if (exceptionState.hadException()) {
11657 return; 11652 return;
11658 } 11653 }
11659 v8SetReturnValueString(info, result, info.GetIsolate()); 11654 v8SetReturnValueString(info, result, info.GetIsolate());
11660 } 11655 }
11661 11656
11662 static void raisesExceptionStringMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 11657 void raisesExceptionStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
11663 { 11658 {
11664 TestObjectV8Internal::raisesExceptionStringMethodMethod(info); 11659 TestObjectV8Internal::raisesExceptionStringMethodMethod(info);
11665 } 11660 }
11666 11661
11667 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 11662 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
11668 { 11663 {
11669 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionVoidMethodOptionalLongArg"); 11664 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionVoidMethodOptionalLongArg");
11670 11665
11671 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11666 TestObject* impl = V8TestObject::toImpl(info.Holder());
11672 11667
(...skipping 14 matching lines...) Expand all
11687 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exce ptionState); 11682 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exce ptionState);
11688 if (exceptionState.hadException()) 11683 if (exceptionState.hadException())
11689 return; 11684 return;
11690 11685
11691 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta te); 11686 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta te);
11692 if (exceptionState.hadException()) { 11687 if (exceptionState.hadException()) {
11693 return; 11688 return;
11694 } 11689 }
11695 } 11690 }
11696 11691
11697 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 11692 void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
11698 { 11693 {
11699 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); 11694 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info);
11700 } 11695 }
11701 11696
11702 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info) 11697 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info)
11703 { 11698 {
11704 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionVoidMethodTestCallbackInterfaceArg"); 11699 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionVoidMethodTestCallbackInterfaceArg");
11705 11700
11706 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11701 TestObject* impl = V8TestObject::toImpl(info.Holder());
11707 11702
11708 if (UNLIKELY(info.Length() < 1)) { 11703 if (UNLIKELY(info.Length() < 1)) {
11709 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 11704 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
11710 return; 11705 return;
11711 } 11706 }
11712 11707
11713 TestCallbackInterface* testCallbackInterfaceArg; 11708 TestCallbackInterface* testCallbackInterfaceArg;
11714 if (info.Length() <= 0 || !info[0]->IsFunction()) { 11709 if (info.Length() <= 0 || !info[0]->IsFunction()) {
11715 exceptionState.throwTypeError("The callback provided as parameter 1 is n ot a function."); 11710 exceptionState.throwTypeError("The callback provided as parameter 1 is n ot a function.");
11716 11711
11717 return; 11712 return;
11718 } 11713 }
11719 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Local<v8::Fun ction>::Cast(info[0]), ScriptState::current(info.GetIsolate())); 11714 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Local<v8::Fun ction>::Cast(info[0]), ScriptState::current(info.GetIsolate()));
11720 11715
11721 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac eArg, exceptionState); 11716 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac eArg, exceptionState);
11722 if (exceptionState.hadException()) { 11717 if (exceptionState.hadException()) {
11723 return; 11718 return;
11724 } 11719 }
11725 } 11720 }
11726 11721
11727 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info) 11722 void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
11728 { 11723 {
11729 TestObjectV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceArgMetho d(info); 11724 TestObjectV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceArgMetho d(info);
11730 } 11725 }
11731 11726
11732 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info) 11727 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
11733 { 11728 {
11734 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg" ); 11729 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg" );
11735 11730
11736 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11731 TestObject* impl = V8TestObject::toImpl(info.Holder());
11737 11732
11738 TestCallbackInterface* optionalTestCallbackInterfaceArg; 11733 TestCallbackInterface* optionalTestCallbackInterfaceArg;
11739 if (!isUndefinedOrNull(info[0])) { 11734 if (!isUndefinedOrNull(info[0])) {
11740 if (!info[0]->IsFunction()) { 11735 if (!info[0]->IsFunction()) {
11741 exceptionState.throwTypeError("The callback provided as parameter 1 is not a function."); 11736 exceptionState.throwTypeError("The callback provided as parameter 1 is not a function.");
11742 11737
11743 return; 11738 return;
11744 } 11739 }
11745 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::L ocal<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); 11740 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::L ocal<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate()));
11746 } else { 11741 } else {
11747 optionalTestCallbackInterfaceArg = nullptr; 11742 optionalTestCallbackInterfaceArg = nullptr;
11748 } 11743 }
11749 11744
11750 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest CallbackInterfaceArg, exceptionState); 11745 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest CallbackInterfaceArg, exceptionState);
11751 if (exceptionState.hadException()) { 11746 if (exceptionState.hadException()) {
11752 return; 11747 return;
11753 } 11748 }
11754 } 11749 }
11755 11750
11756 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 11751 void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
11757 { 11752 {
11758 TestObjectV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterface ArgMethod(info); 11753 TestObjectV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterface ArgMethod(info);
11759 } 11754 }
11760 11755
11761 static void raisesExceptionTestInterfaceEmptyVoidMethodMethod(const v8::Function CallbackInfo<v8::Value>& info) 11756 static void raisesExceptionTestInterfaceEmptyVoidMethodMethod(const v8::Function CallbackInfo<v8::Value>& info)
11762 { 11757 {
11763 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionTestInterfaceEmptyVoidMethod"); 11758 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionTestInterfaceEmptyVoidMethod");
11764 11759
11765 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11760 TestObject* impl = V8TestObject::toImpl(info.Holder());
11766 11761
11767 TestInterfaceEmpty* result = impl->raisesExceptionTestInterfaceEmptyVoidMeth od(exceptionState); 11762 TestInterfaceEmpty* result = impl->raisesExceptionTestInterfaceEmptyVoidMeth od(exceptionState);
11768 if (exceptionState.hadException()) { 11763 if (exceptionState.hadException()) {
11769 return; 11764 return;
11770 } 11765 }
11771 v8SetReturnValue(info, result); 11766 v8SetReturnValue(info, result);
11772 } 11767 }
11773 11768
11774 static void raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 11769 void raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
11775 { 11770 {
11776 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMethod(info ); 11771 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMethod(info );
11777 } 11772 }
11778 11773
11779 static void raisesExceptionXPathNSResolverVoidMethodMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 11774 static void raisesExceptionXPathNSResolverVoidMethodMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
11780 { 11775 {
11781 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionXPathNSResolverVoidMethod"); 11776 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "raisesExceptionXPathNSResolverVoidMethod");
11782 11777
11783 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11778 TestObject* impl = V8TestObject::toImpl(info.Holder());
11784 11779
11785 XPathNSResolver* result = impl->raisesExceptionXPathNSResolverVoidMethod(exc eptionState); 11780 XPathNSResolver* result = impl->raisesExceptionXPathNSResolverVoidMethod(exc eptionState);
11786 if (exceptionState.hadException()) { 11781 if (exceptionState.hadException()) {
11787 return; 11782 return;
11788 } 11783 }
11789 v8SetReturnValue(info, result); 11784 v8SetReturnValue(info, result);
11790 } 11785 }
11791 11786
11792 static void raisesExceptionXPathNSResolverVoidMethodMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 11787 void raisesExceptionXPathNSResolverVoidMethodMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
11793 { 11788 {
11794 TestObjectV8Internal::raisesExceptionXPathNSResolverVoidMethodMethod(info); 11789 TestObjectV8Internal::raisesExceptionXPathNSResolverVoidMethodMethod(info);
11795 } 11790 }
11796 11791
11797 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 11792 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
11798 { 11793 {
11799 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "callWithExecutionContextRaisesExceptionVoidMethodLongArg") ; 11794 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "callWithExecutionContextRaisesExceptionVoidMethodLongArg") ;
11800 11795
11801 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11796 TestObject* impl = V8TestObject::toImpl(info.Holder());
11802 11797
11803 if (UNLIKELY(info.Length() < 1)) { 11798 if (UNLIKELY(info.Length() < 1)) {
11804 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 11799 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
11805 return; 11800 return;
11806 } 11801 }
11807 11802
11808 int longArg; 11803 int longArg;
11809 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te); 11804 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
11810 if (exceptionState.hadException()) 11805 if (exceptionState.hadException())
11811 return; 11806 return;
11812 11807
11813 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 11808 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
11814 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont ext, longArg, exceptionState); 11809 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont ext, longArg, exceptionState);
11815 if (exceptionState.hadException()) { 11810 if (exceptionState.hadException()) {
11816 return; 11811 return;
11817 } 11812 }
11818 } 11813 }
11819 11814
11820 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 11815 void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
11821 { 11816 {
11822 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA rgMethod(info); 11817 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA rgMethod(info);
11823 } 11818 }
11824 11819
11825 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 11820 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
11826 { 11821 {
11827 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11822 TestObject* impl = V8TestObject::toImpl(info.Holder());
11828 11823
11829 impl->runtimeEnabledVoidMethod(); 11824 impl->runtimeEnabledVoidMethod();
11830 } 11825 }
11831 11826
11832 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 11827 void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
11833 { 11828 {
11834 TestObjectV8Internal::runtimeEnabledVoidMethodMethod(info); 11829 TestObjectV8Internal::runtimeEnabledVoidMethodMethod(info);
11835 } 11830 }
11836 11831
11837 static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 11832 static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
11838 { 11833 {
11839 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11834 TestObject* impl = V8TestObject::toImpl(info.Holder());
11840 11835
11841 impl->perWorldBindingsRuntimeEnabledVoidMethod(); 11836 impl->perWorldBindingsRuntimeEnabledVoidMethod();
11842 } 11837 }
11843 11838
11844 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 11839 void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
11845 { 11840 {
11846 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethod(info); 11841 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethod(info);
11847 } 11842 }
11848 11843
11849 static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info) 11844 static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info)
11850 { 11845 {
11851 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11846 TestObject* impl = V8TestObject::toImpl(info.Holder());
11852 11847
11853 impl->perWorldBindingsRuntimeEnabledVoidMethod(); 11848 impl->perWorldBindingsRuntimeEnabledVoidMethod();
11854 } 11849 }
11855 11850
11856 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info) 11851 void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(const v8 ::FunctionCallbackInfo<v8::Value>& info)
11857 { 11852 {
11858 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW orld(info); 11853 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW orld(info);
11859 } 11854 }
11860 11855
11861 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback Info<v8::Value>& info) 11856 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback Info<v8::Value>& info)
11862 { 11857 {
11863 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11858 TestObject* impl = V8TestObject::toImpl(info.Holder());
11864 11859
11865 V8StringResource<> stringArg; 11860 V8StringResource<> stringArg;
11866 stringArg = info[0]; 11861 stringArg = info[0];
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
11910 11905
11911 if (isArityError) { 11906 if (isArityError) {
11912 if (info.Length() < 1) { 11907 if (info.Length() < 1) {
11913 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 11908 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
11914 return; 11909 return;
11915 } 11910 }
11916 } 11911 }
11917 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 11912 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
11918 } 11913 }
11919 11914
11920 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 11915 void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
11921 { 11916 {
11922 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info); 11917 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info);
11923 } 11918 }
11924 11919
11925 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio nCallbackInfo<v8::Value>& info) 11920 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio nCallbackInfo<v8::Value>& info)
11926 { 11921 {
11927 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11922 TestObject* impl = V8TestObject::toImpl(info.Holder());
11928 11923
11929 V8StringResource<> stringArg; 11924 V8StringResource<> stringArg;
11930 stringArg = info[0]; 11925 stringArg = info[0];
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
12054 12049
12055 if (isArityError) { 12050 if (isArityError) {
12056 if (info.Length() < TestObjectV8Internal::partiallyRuntimeEnabledOverloa dedVoidMethodMethodLength()) { 12051 if (info.Length() < TestObjectV8Internal::partiallyRuntimeEnabledOverloa dedVoidMethodMethodLength()) {
12057 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), info.Length())); 12052 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), info.Length()));
12058 return; 12053 return;
12059 } 12054 }
12060 } 12055 }
12061 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 12056 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
12062 } 12057 }
12063 12058
12064 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 12059 void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
12065 { 12060 {
12066 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info ); 12061 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info );
12067 } 12062 }
12068 12063
12069 static void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) 12064 static void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(con st v8::FunctionCallbackInfo<v8::Value>& info)
12070 { 12065 {
12071 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12066 TestObject* impl = V8TestObject::toImpl(info.Holder());
12072 12067
12073 if (UNLIKELY(info.Length() < 1)) { 12068 if (UNLIKELY(info.Length() < 1)) {
12074 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArg", "Te stObject", ExceptionMessages::notEnoughArguments(1, info.Length()))); 12069 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArg", "Te stObject", ExceptionMessages::notEnoughArguments(1, info.Length())));
12075 return; 12070 return;
12076 } 12071 }
12077 12072
12078 TestInterfaceEmpty* testInterfaceEmptyArg; 12073 TestInterfaceEmpty* testInterfaceEmptyArg;
12079 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]); 12074 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]);
12080 12075
12081 impl->legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfa ceEmptyArg); 12076 impl->legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfa ceEmptyArg);
12082 } 12077 }
12083 12078
12084 static void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 12079 void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
12085 { 12080 {
12086 TestObjectV8Internal::legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmpt yArgMethod(info); 12081 TestObjectV8Internal::legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmpt yArgMethod(info);
12087 } 12082 }
12088 12083
12089 static void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 12084 static void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
12090 { 12085 {
12091 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVar iadicArg"); 12086 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVar iadicArg");
12092 12087
12093 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12088 TestObject* impl = V8TestObject::toImpl(info.Holder());
12094 12089
12095 HeapVector<Member<TestInterfaceEmpty>> testInterfaceEmptyArg; 12090 HeapVector<Member<TestInterfaceEmpty>> testInterfaceEmptyArg;
12096 for (int i = 0; i < info.Length(); ++i) { 12091 for (int i = 0; i < info.Length(); ++i) {
12097 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 12092 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
12098 exceptionState.throwTypeError("parameter 1 is not of type 'TestInter faceEmpty'."); 12093 exceptionState.throwTypeError("parameter 1 is not of type 'TestInter faceEmpty'.");
12099 12094
12100 return; 12095 return;
12101 } 12096 }
12102 testInterfaceEmptyArg.append(V8TestInterfaceEmpty::toImpl(v8::Local<v8:: Object>::Cast(info[i]))); 12097 testInterfaceEmptyArg.append(V8TestInterfaceEmpty::toImpl(v8::Local<v8:: Object>::Cast(info[i])));
12103 } 12098 }
12104 12099
12105 impl->legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArg(tes tInterfaceEmptyArg); 12100 impl->legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArg(tes tInterfaceEmptyArg);
12106 } 12101 }
12107 12102
12108 static void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 12103 void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArgMethodCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
12109 { 12104 {
12110 TestObjectV8Internal::legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmpt yVariadicArgMethod(info); 12105 TestObjectV8Internal::legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmpt yVariadicArgMethod(info);
12111 } 12106 }
12112 12107
12113 static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 12108 static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
12114 { 12109 {
12115 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12110 TestObject* impl = V8TestObject::toImpl(info.Holder());
12116 12111
12117 if (UNLIKELY(info.Length() < 1)) { 12112 if (UNLIKELY(info.Length() < 1)) {
12118 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObje ct", ExceptionMessages::notEnoughArguments(1, info.Length()))); 12113 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObje ct", ExceptionMessages::notEnoughArguments(1, info.Length())));
(...skipping 22 matching lines...) Expand all
12141 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); 12136 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
12142 if (!node2) { 12137 if (!node2) {
12143 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObje ct", "parameter 2 is not of type 'Node'.")); 12138 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObje ct", "parameter 2 is not of type 'Node'."));
12144 12139
12145 return; 12140 return;
12146 } 12141 }
12147 12142
12148 impl->useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg(node1, node2); 12143 impl->useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg(node1, node2);
12149 } 12144 }
12150 12145
12151 static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 12146 void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
12152 { 12147 {
12153 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMe thod(info); 12148 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMe thod(info);
12154 } 12149 }
12155 12150
12156 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 12151 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
12157 { 12152 {
12158 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12153 TestObject* impl = V8TestObject::toImpl(info.Holder());
12159 12154
12160 if (UNLIKELY(info.Length() < 2)) { 12155 if (UNLIKELY(info.Length() < 2)) {
12161 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObje ct", ExceptionMessages::notEnoughArguments(2, info.Length()))); 12156 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObje ct", ExceptionMessages::notEnoughArguments(2, info.Length())));
(...skipping 12 matching lines...) Expand all
12174 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); 12169 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
12175 if (!node2 && !isUndefinedOrNull(info[1])) { 12170 if (!node2 && !isUndefinedOrNull(info[1])) {
12176 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObje ct", "parameter 2 is not of type 'Node'.")); 12171 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObje ct", "parameter 2 is not of type 'Node'."));
12177 12172
12178 return; 12173 return;
12179 } 12174 }
12180 12175
12181 impl->useToImpl4ArgumentsCheckingIfPossibleWithNullableArg(node1, node2); 12176 impl->useToImpl4ArgumentsCheckingIfPossibleWithNullableArg(node1, node2);
12182 } 12177 }
12183 12178
12184 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 12179 void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
12185 { 12180 {
12186 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMe thod(info); 12181 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMe thod(info);
12187 } 12182 }
12188 12183
12189 static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 12184 static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
12190 { 12185 {
12191 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12186 TestObject* impl = V8TestObject::toImpl(info.Holder());
12192 12187
12193 if (UNLIKELY(info.Length() < 1)) { 12188 if (UNLIKELY(info.Length() < 1)) {
12194 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObj ect", ExceptionMessages::notEnoughArguments(1, info.Length()))); 12189 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObj ect", ExceptionMessages::notEnoughArguments(1, info.Length())));
(...skipping 12 matching lines...) Expand all
12207 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); 12202 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
12208 if (!node2) { 12203 if (!node2) {
12209 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObj ect", "parameter 2 is not of type 'Node'.")); 12204 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObj ect", "parameter 2 is not of type 'Node'."));
12210 12205
12211 return; 12206 return;
12212 } 12207 }
12213 12208
12214 impl->useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg(node1, node2); 12209 impl->useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg(node1, node2);
12215 } 12210 }
12216 12211
12217 static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 12212 void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
12218 { 12213 {
12219 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgM ethod(info); 12214 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgM ethod(info);
12220 } 12215 }
12221 12216
12222 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 12217 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
12223 { 12218 {
12224 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12219 TestObject* impl = V8TestObject::toImpl(info.Holder());
12225 12220
12226 impl->unforgeableVoidMethod(); 12221 impl->unforgeableVoidMethod();
12227 } 12222 }
12228 12223
12229 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 12224 void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
12230 { 12225 {
12231 TestObjectV8Internal::unforgeableVoidMethodMethod(info); 12226 TestObjectV8Internal::unforgeableVoidMethodMethod(info);
12232 } 12227 }
12233 12228
12234 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 12229 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
12235 { 12230 {
12236 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestInterfaceGarbageCollectedSequenceArg"); 12231 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestInterfaceGarbageCollectedSequenceArg");
12237 12232
12238 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12233 TestObject* impl = V8TestObject::toImpl(info.Holder());
12239 12234
12240 if (UNLIKELY(info.Length() < 1)) { 12235 if (UNLIKELY(info.Length() < 1)) {
12241 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 12236 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
12242 return; 12237 return;
12243 } 12238 }
12244 12239
12245 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec tedSequenceArg; 12240 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec tedSequenceArg;
12246 testInterfaceGarbageCollectedSequenceArg = (toMemberNativeArray<TestInterfac eGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState)); 12241 testInterfaceGarbageCollectedSequenceArg = (toMemberNativeArray<TestInterfac eGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState));
12247 if (exceptionState.hadException()) 12242 if (exceptionState.hadException())
12248 return; 12243 return;
12249 12244
12250 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg); 12245 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg);
12251 } 12246 }
12252 12247
12253 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 12248 void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
12254 { 12249 {
12255 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info); 12250 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info);
12256 } 12251 }
12257 12252
12258 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 12253 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
12259 { 12254 {
12260 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestInterfaceGarbageCollectedArrayArg"); 12255 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "voidMethodTestInterfaceGarbageCollectedArrayArg");
12261 12256
12262 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12257 TestObject* impl = V8TestObject::toImpl(info.Holder());
12263 12258
12264 if (UNLIKELY(info.Length() < 1)) { 12259 if (UNLIKELY(info.Length() < 1)) {
12265 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 12260 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
12266 return; 12261 return;
12267 } 12262 }
12268 12263
12269 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec tedArrayArg; 12264 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec tedArrayArg;
12270 testInterfaceGarbageCollectedArrayArg = (toMemberNativeArray<TestInterfaceGa rbageCollected>(info[0], 1, info.GetIsolate(), exceptionState)); 12265 testInterfaceGarbageCollectedArrayArg = (toMemberNativeArray<TestInterfaceGa rbageCollected>(info[0], 1, info.GetIsolate(), exceptionState));
12271 if (exceptionState.hadException()) 12266 if (exceptionState.hadException())
12272 return; 12267 return;
12273 12268
12274 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg); 12269 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg);
12275 } 12270 }
12276 12271
12277 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 12272 void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
12278 { 12273 {
12279 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info); 12274 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info);
12280 } 12275 }
12281 12276
12282 static void newObjectTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 12277 static void newObjectTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
12283 { 12278 {
12284 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12279 TestObject* impl = V8TestObject::toImpl(info.Holder());
12285 12280
12286 TestInterfaceImplementation* result = impl->newObjectTestInterfaceMethod(); 12281 TestInterfaceImplementation* result = impl->newObjectTestInterfaceMethod();
12287 // [NewObject] must always create a new wrapper. Check that a wrapper 12282 // [NewObject] must always create a new wrapper. Check that a wrapper
12288 // does not exist yet. 12283 // does not exist yet.
12289 DCHECK(!result || DOMDataStore::getWrapper(result, info.GetIsolate()).IsEmpt y()); 12284 DCHECK(!result || DOMDataStore::getWrapper(result, info.GetIsolate()).IsEmpt y());
12290 v8SetReturnValue(info, result); 12285 v8SetReturnValue(info, result);
12291 } 12286 }
12292 12287
12293 static void newObjectTestInterfaceMethodMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 12288 void newObjectTestInterfaceMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
12294 { 12289 {
12295 TestObjectV8Internal::newObjectTestInterfaceMethodMethod(info); 12290 TestObjectV8Internal::newObjectTestInterfaceMethodMethod(info);
12296 } 12291 }
12297 12292
12298 static void serializerMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 12293 static void serializerMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
12299 { 12294 {
12300 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12295 TestObject* impl = V8TestObject::toImpl(info.Holder());
12301 12296
12302 v8SetReturnValueString(info, impl->serializerMethod(), info.GetIsolate()); 12297 v8SetReturnValueString(info, impl->serializerMethod(), info.GetIsolate());
12303 } 12298 }
12304 12299
12305 static void serializerMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 12300 void serializerMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
12306 { 12301 {
12307 TestObjectV8Internal::serializerMethodMethod(info); 12302 TestObjectV8Internal::serializerMethodMethod(info);
12308 } 12303 }
12309 12304
12310 static void voidMethodImplementedInPrivateScriptMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 12305 static void voidMethodImplementedInPrivateScriptMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
12311 { 12306 {
12312 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12307 TestObject* impl = V8TestObject::toImpl(info.Holder());
12313 12308
12314 V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(toLo calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl); 12309 V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(toLo calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl);
12315 } 12310 }
12316 12311
12317 static void voidMethodImplementedInPrivateScriptMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 12312 void voidMethodImplementedInPrivateScriptMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
12318 { 12313 {
12319 TestObjectV8Internal::voidMethodImplementedInPrivateScriptMethod(info); 12314 TestObjectV8Internal::voidMethodImplementedInPrivateScriptMethod(info);
12320 } 12315 }
12321 12316
12322 static void shortMethodImplementedInPrivateScriptMethod(const v8::FunctionCallba ckInfo<v8::Value>& info) 12317 static void shortMethodImplementedInPrivateScriptMethod(const v8::FunctionCallba ckInfo<v8::Value>& info)
12323 { 12318 {
12324 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12319 TestObject* impl = V8TestObject::toImpl(info.Holder());
12325 12320
12326 int result = 0; 12321 int result = 0;
12327 if (!V8TestObject::PrivateScript::shortMethodImplementedInPrivateScriptMetho d(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), im pl, &result)) 12322 if (!V8TestObject::PrivateScript::shortMethodImplementedInPrivateScriptMetho d(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), im pl, &result))
12328 return; 12323 return;
12329 v8SetReturnValueInt(info, result); 12324 v8SetReturnValueInt(info, result);
12330 } 12325 }
12331 12326
12332 static void shortMethodImplementedInPrivateScriptMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 12327 void shortMethodImplementedInPrivateScriptMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
12333 { 12328 {
12334 TestObjectV8Internal::shortMethodImplementedInPrivateScriptMethod(info); 12329 TestObjectV8Internal::shortMethodImplementedInPrivateScriptMethod(info);
12335 } 12330 }
12336 12331
12337 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 12332 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
12338 { 12333 {
12339 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "shortMethodWithShortArgumentImplementedInPrivateScript"); 12334 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "shortMethodWithShortArgumentImplementedInPrivateScript");
12340 12335
12341 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12336 TestObject* impl = V8TestObject::toImpl(info.Holder());
12342 12337
12343 if (UNLIKELY(info.Length() < 1)) { 12338 if (UNLIKELY(info.Length() < 1)) {
12344 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 12339 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
12345 return; 12340 return;
12346 } 12341 }
12347 12342
12348 int value; 12343 int value;
12349 value = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionState ); 12344 value = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionState );
12350 if (exceptionState.hadException()) 12345 if (exceptionState.hadException())
12351 return; 12346 return;
12352 12347
12353 int result = 0; 12348 int result = 0;
12354 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP rivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurre ntContext())), impl, value, &result)) 12349 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP rivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurre ntContext())), impl, value, &result))
12355 return; 12350 return;
12356 v8SetReturnValueInt(info, result); 12351 v8SetReturnValueInt(info, result);
12357 } 12352 }
12358 12353
12359 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 12354 void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12360 { 12355 {
12361 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript Method(info); 12356 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript Method(info);
12362 } 12357 }
12363 12358
12364 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12359 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12365 { 12360 {
12366 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12361 TestObject* impl = V8TestObject::toImpl(info.Holder());
12367 12362
12368 if (UNLIKELY(info.Length() < 1)) { 12363 if (UNLIKELY(info.Length() < 1)) {
12369 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("stringMethodWithStringArgumentImplementedInPrivateScript", "Test Object", ExceptionMessages::notEnoughArguments(1, info.Length()))); 12364 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("stringMethodWithStringArgumentImplementedInPrivateScript", "Test Object", ExceptionMessages::notEnoughArguments(1, info.Length())));
12370 return; 12365 return;
12371 } 12366 }
12372 12367
12373 V8StringResource<> value; 12368 V8StringResource<> value;
12374 value = info[0]; 12369 value = info[0];
12375 if (!value.prepare()) 12370 if (!value.prepare())
12376 return; 12371 return;
12377 12372
12378 String result; 12373 String result;
12379 if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedI nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur rentContext())), impl, value, &result)) 12374 if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedI nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur rentContext())), impl, value, &result))
12380 return; 12375 return;
12381 v8SetReturnValueString(info, result, info.GetIsolate()); 12376 v8SetReturnValueString(info, result, info.GetIsolate());
12382 } 12377 }
12383 12378
12384 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 12379 void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
12385 { 12380 {
12386 TestObjectV8Internal::stringMethodWithStringArgumentImplementedInPrivateScri ptMethod(info); 12381 TestObjectV8Internal::stringMethodWithStringArgumentImplementedInPrivateScri ptMethod(info);
12387 } 12382 }
12388 12383
12389 static void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 12384 static void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
12390 { 12385 {
12391 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12386 TestObject* impl = V8TestObject::toImpl(info.Holder());
12392 12387
12393 if (UNLIKELY(info.Length() < 1)) { 12388 if (UNLIKELY(info.Length() < 1)) {
12394 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("nodeMethodWithNodeArgumentImplementedInPrivateScript", "TestObje ct", ExceptionMessages::notEnoughArguments(1, info.Length()))); 12389 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("nodeMethodWithNodeArgumentImplementedInPrivateScript", "TestObje ct", ExceptionMessages::notEnoughArguments(1, info.Length())));
12395 return; 12390 return;
12396 } 12391 }
12397 12392
12398 Node* value; 12393 Node* value;
12399 value = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]); 12394 value = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
12400 if (!value) { 12395 if (!value) {
12401 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("nodeMethodWithNodeArgumentImplementedInPrivateScript", "TestObje ct", "parameter 1 is not of type 'Node'.")); 12396 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("nodeMethodWithNodeArgumentImplementedInPrivateScript", "TestObje ct", "parameter 1 is not of type 'Node'."));
12402 12397
12403 return; 12398 return;
12404 } 12399 }
12405 12400
12406 Node* result = nullptr; 12401 Node* result = nullptr;
12407 if (!V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPri vateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrent Context())), impl, value, &result)) 12402 if (!V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPri vateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrent Context())), impl, value, &result))
12408 return; 12403 return;
12409 v8SetReturnValue(info, result); 12404 v8SetReturnValue(info, result);
12410 } 12405 }
12411 12406
12412 static void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 12407 void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
12413 { 12408 {
12414 TestObjectV8Internal::nodeMethodWithNodeArgumentImplementedInPrivateScriptMe thod(info); 12409 TestObjectV8Internal::nodeMethodWithNodeArgumentImplementedInPrivateScriptMe thod(info);
12415 } 12410 }
12416 12411
12417 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12412 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12418 { 12413 {
12419 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "nodeMethodWithVariousArgumentsImplementedInPrivateScript") ; 12414 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "nodeMethodWithVariousArgumentsImplementedInPrivateScript") ;
12420 12415
12421 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12416 TestObject* impl = V8TestObject::toImpl(info.Holder());
12422 12417
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
12455 string = info[4]; 12450 string = info[4];
12456 if (!string.prepare()) 12451 if (!string.prepare())
12457 return; 12452 return;
12458 12453
12459 Node* result = nullptr; 12454 Node* result = nullptr;
12460 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur rentContext())), impl, document, node, value1, value2, string, &result)) 12455 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur rentContext())), impl, document, node, value1, value2, string, &result))
12461 return; 12456 return;
12462 v8SetReturnValue(info, result); 12457 v8SetReturnValue(info, result);
12463 } 12458 }
12464 12459
12465 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 12460 void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
12466 { 12461 {
12467 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri ptMethod(info); 12462 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri ptMethod(info);
12468 } 12463 }
12469 12464
12470 static void methodImplementedInCPPForPrivateScriptOnlyMethod(const v8::FunctionC allbackInfo<v8::Value>& info) 12465 static void methodImplementedInCPPForPrivateScriptOnlyMethod(const v8::FunctionC allbackInfo<v8::Value>& info)
12471 { 12466 {
12472 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "methodImplementedInCPPForPrivateScriptOnly"); 12467 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "methodImplementedInCPPForPrivateScriptOnly");
12473 12468
12474 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12469 TestObject* impl = V8TestObject::toImpl(info.Holder());
12475 12470
12476 if (UNLIKELY(info.Length() < 2)) { 12471 if (UNLIKELY(info.Length() < 2)) {
12477 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 12472 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
12478 return; 12473 return;
12479 } 12474 }
12480 12475
12481 int value1; 12476 int value1;
12482 int value2; 12477 int value2;
12483 value1 = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionStat e); 12478 value1 = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionStat e);
12484 if (exceptionState.hadException()) 12479 if (exceptionState.hadException())
12485 return; 12480 return;
12486 12481
12487 value2 = toInt16(info.GetIsolate(), info[1], NormalConversion, exceptionStat e); 12482 value2 = toInt16(info.GetIsolate(), info[1], NormalConversion, exceptionStat e);
12488 if (exceptionState.hadException()) 12483 if (exceptionState.hadException())
12489 return; 12484 return;
12490 12485
12491 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v alue1, value2)); 12486 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v alue1, value2));
12492 } 12487 }
12493 12488
12494 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 12489 void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
12495 { 12490 {
12496 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info) ; 12491 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info) ;
12497 } 12492 }
12498 12493
12499 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12494 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12500 { 12495 {
12501 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "keys"); 12496 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "keys");
12502 12497
12503 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12498 TestObject* impl = V8TestObject::toImpl(info.Holder());
12504 12499
12505 ScriptState* scriptState = ScriptState::forReceiverObject(info); 12500 ScriptState* scriptState = ScriptState::forReceiverObject(info);
12506 12501
12507 Iterator* result = impl->keysForBinding(scriptState, exceptionState); 12502 Iterator* result = impl->keysForBinding(scriptState, exceptionState);
12508 if (exceptionState.hadException()) { 12503 if (exceptionState.hadException()) {
12509 return; 12504 return;
12510 } 12505 }
12511 v8SetReturnValue(info, result); 12506 v8SetReturnValue(info, result);
12512 } 12507 }
12513 12508
12514 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 12509 void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12515 { 12510 {
12516 TestObjectV8Internal::keysMethod(info); 12511 TestObjectV8Internal::keysMethod(info);
12517 } 12512 }
12518 12513
12519 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12514 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12520 { 12515 {
12521 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "values"); 12516 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "values");
12522 12517
12523 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12518 TestObject* impl = V8TestObject::toImpl(info.Holder());
12524 12519
12525 ScriptState* scriptState = ScriptState::forReceiverObject(info); 12520 ScriptState* scriptState = ScriptState::forReceiverObject(info);
12526 12521
12527 Iterator* result = impl->valuesForBinding(scriptState, exceptionState); 12522 Iterator* result = impl->valuesForBinding(scriptState, exceptionState);
12528 if (exceptionState.hadException()) { 12523 if (exceptionState.hadException()) {
12529 return; 12524 return;
12530 } 12525 }
12531 v8SetReturnValue(info, result); 12526 v8SetReturnValue(info, result);
12532 } 12527 }
12533 12528
12534 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info ) 12529 void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12535 { 12530 {
12536 TestObjectV8Internal::valuesMethod(info); 12531 TestObjectV8Internal::valuesMethod(info);
12537 } 12532 }
12538 12533
12539 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12534 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12540 { 12535 {
12541 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "entries"); 12536 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "entries");
12542 12537
12543 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12538 TestObject* impl = V8TestObject::toImpl(info.Holder());
12544 12539
12545 ScriptState* scriptState = ScriptState::forReceiverObject(info); 12540 ScriptState* scriptState = ScriptState::forReceiverObject(info);
12546 12541
12547 Iterator* result = impl->entriesForBinding(scriptState, exceptionState); 12542 Iterator* result = impl->entriesForBinding(scriptState, exceptionState);
12548 if (exceptionState.hadException()) { 12543 if (exceptionState.hadException()) {
12549 return; 12544 return;
12550 } 12545 }
12551 v8SetReturnValue(info, result); 12546 v8SetReturnValue(info, result);
12552 } 12547 }
12553 12548
12554 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o) 12549 void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12555 { 12550 {
12556 TestObjectV8Internal::entriesMethod(info); 12551 TestObjectV8Internal::entriesMethod(info);
12557 } 12552 }
12558 12553
12559 static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12554 static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12560 { 12555 {
12561 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "forEach"); 12556 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "forEach");
12562 12557
12563 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12558 TestObject* impl = V8TestObject::toImpl(info.Holder());
12564 12559
(...skipping 14 matching lines...) Expand all
12579 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); 12574 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]);
12580 12575
12581 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); 12576 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]);
12582 12577
12583 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder()) , callback, thisArg, exceptionState); 12578 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder()) , callback, thisArg, exceptionState);
12584 if (exceptionState.hadException()) { 12579 if (exceptionState.hadException()) {
12585 return; 12580 return;
12586 } 12581 }
12587 } 12582 }
12588 12583
12589 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o) 12584 void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12590 { 12585 {
12591 TestObjectV8Internal::forEachMethod(info); 12586 TestObjectV8Internal::forEachMethod(info);
12592 } 12587 }
12593 12588
12594 static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12589 static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12595 { 12590 {
12596 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "has"); 12591 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "has");
12597 12592
12598 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12593 TestObject* impl = V8TestObject::toImpl(info.Holder());
12599 12594
12600 ScriptState* scriptState = ScriptState::forReceiverObject(info); 12595 ScriptState* scriptState = ScriptState::forReceiverObject(info);
12601 12596
12602 if (UNLIKELY(info.Length() < 1)) { 12597 if (UNLIKELY(info.Length() < 1)) {
12603 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 12598 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
12604 return; 12599 return;
12605 } 12600 }
12606 12601
12607 int key; 12602 int key;
12608 key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState); 12603 key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
12609 if (exceptionState.hadException()) 12604 if (exceptionState.hadException())
12610 return; 12605 return;
12611 12606
12612 bool result = impl->hasForBinding(scriptState, key, exceptionState); 12607 bool result = impl->hasForBinding(scriptState, key, exceptionState);
12613 if (exceptionState.hadException()) { 12608 if (exceptionState.hadException()) {
12614 return; 12609 return;
12615 } 12610 }
12616 v8SetReturnValueBool(info, result); 12611 v8SetReturnValueBool(info, result);
12617 } 12612 }
12618 12613
12619 static void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 12614 void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12620 { 12615 {
12621 TestObjectV8Internal::hasMethod(info); 12616 TestObjectV8Internal::hasMethod(info);
12622 } 12617 }
12623 12618
12624 static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12619 static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12625 { 12620 {
12626 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "get"); 12621 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "get");
12627 12622
12628 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12623 TestObject* impl = V8TestObject::toImpl(info.Holder());
12629 12624
12630 ScriptState* scriptState = ScriptState::forReceiverObject(info); 12625 ScriptState* scriptState = ScriptState::forReceiverObject(info);
12631 12626
12632 if (UNLIKELY(info.Length() < 1)) { 12627 if (UNLIKELY(info.Length() < 1)) {
12633 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 12628 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
12634 return; 12629 return;
12635 } 12630 }
12636 12631
12637 int key; 12632 int key;
12638 key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState); 12633 key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
12639 if (exceptionState.hadException()) 12634 if (exceptionState.hadException())
12640 return; 12635 return;
12641 12636
12642 ScriptValue result = impl->getForBinding(scriptState, key, exceptionState); 12637 ScriptValue result = impl->getForBinding(scriptState, key, exceptionState);
12643 if (exceptionState.hadException()) { 12638 if (exceptionState.hadException()) {
12644 return; 12639 return;
12645 } 12640 }
12646 v8SetReturnValue(info, result.v8Value()); 12641 v8SetReturnValue(info, result.v8Value());
12647 } 12642 }
12648 12643
12649 static void getMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 12644 void getMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12650 { 12645 {
12651 TestObjectV8Internal::getMethod(info); 12646 TestObjectV8Internal::getMethod(info);
12652 } 12647 }
12653 12648
12654 static void clearMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12649 static void clearMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12655 { 12650 {
12656 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "clear"); 12651 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "clear");
12657 12652
12658 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12653 TestObject* impl = V8TestObject::toImpl(info.Holder());
12659 12654
12660 ScriptState* scriptState = ScriptState::forReceiverObject(info); 12655 ScriptState* scriptState = ScriptState::forReceiverObject(info);
12661 12656
12662 impl->clearForBinding(scriptState, exceptionState); 12657 impl->clearForBinding(scriptState, exceptionState);
12663 if (exceptionState.hadException()) { 12658 if (exceptionState.hadException()) {
12664 return; 12659 return;
12665 } 12660 }
12666 } 12661 }
12667 12662
12668 static void clearMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 12663 void clearMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12669 { 12664 {
12670 TestObjectV8Internal::clearMethod(info); 12665 TestObjectV8Internal::clearMethod(info);
12671 } 12666 }
12672 12667
12673 static void deleteMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12668 static void deleteMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12674 { 12669 {
12675 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "delete"); 12670 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "delete");
12676 12671
12677 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12672 TestObject* impl = V8TestObject::toImpl(info.Holder());
12678 12673
12679 ScriptState* scriptState = ScriptState::forReceiverObject(info); 12674 ScriptState* scriptState = ScriptState::forReceiverObject(info);
12680 12675
12681 if (UNLIKELY(info.Length() < 1)) { 12676 if (UNLIKELY(info.Length() < 1)) {
12682 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 12677 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
12683 return; 12678 return;
12684 } 12679 }
12685 12680
12686 int key; 12681 int key;
12687 key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState); 12682 key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
12688 if (exceptionState.hadException()) 12683 if (exceptionState.hadException())
12689 return; 12684 return;
12690 12685
12691 bool result = impl->deleteForBinding(scriptState, key, exceptionState); 12686 bool result = impl->deleteForBinding(scriptState, key, exceptionState);
12692 if (exceptionState.hadException()) { 12687 if (exceptionState.hadException()) {
12693 return; 12688 return;
12694 } 12689 }
12695 v8SetReturnValueBool(info, result); 12690 v8SetReturnValueBool(info, result);
12696 } 12691 }
12697 12692
12698 static void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info ) 12693 void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12699 { 12694 {
12700 TestObjectV8Internal::deleteMethod(info); 12695 TestObjectV8Internal::deleteMethod(info);
12701 } 12696 }
12702 12697
12703 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12698 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12704 { 12699 {
12705 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "set"); 12700 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "set");
12706 12701
12707 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12702 TestObject* impl = V8TestObject::toImpl(info.Holder());
12708 12703
(...skipping 14 matching lines...) Expand all
12723 if (exceptionState.hadException()) 12718 if (exceptionState.hadException())
12724 return; 12719 return;
12725 12720
12726 TestObject* result = impl->setForBinding(scriptState, key, value, exceptionS tate); 12721 TestObject* result = impl->setForBinding(scriptState, key, value, exceptionS tate);
12727 if (exceptionState.hadException()) { 12722 if (exceptionState.hadException()) {
12728 return; 12723 return;
12729 } 12724 }
12730 v8SetReturnValue(info, result); 12725 v8SetReturnValue(info, result);
12731 } 12726 }
12732 12727
12733 static void setMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 12728 void setMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12734 { 12729 {
12735 TestObjectV8Internal::setMethod(info); 12730 TestObjectV8Internal::setMethod(info);
12736 } 12731 }
12737 12732
12738 static void toJSONMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12733 static void toJSONMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12739 { 12734 {
12740 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12735 TestObject* impl = V8TestObject::toImpl(info.Holder());
12741 12736
12742 v8SetReturnValueString(info, impl->serializerMethod(), info.GetIsolate()); 12737 v8SetReturnValueString(info, impl->serializerMethod(), info.GetIsolate());
12743 } 12738 }
12744 12739
12745 static void toJSONMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info ) 12740 void toJSONMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12746 { 12741 {
12747 TestObjectV8Internal::toJSONMethod(info); 12742 TestObjectV8Internal::toJSONMethod(info);
12748 } 12743 }
12749 12744
12750 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12745 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12751 { 12746 {
12752 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12747 TestObject* impl = V8TestObject::toImpl(info.Holder());
12753 12748
12754 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() ); 12749 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() );
12755 } 12750 }
12756 12751
12757 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 12752 void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12758 { 12753 {
12759 TestObjectV8Internal::toStringMethod(info); 12754 TestObjectV8Internal::toStringMethod(info);
12760 } 12755 }
12761 12756
12762 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 12757 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
12763 { 12758 {
12764 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "iterator"); 12759 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestObject", "iterator");
12765 12760
12766 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12761 TestObject* impl = V8TestObject::toImpl(info.Holder());
12767 12762
12768 ScriptState* scriptState = ScriptState::forReceiverObject(info); 12763 ScriptState* scriptState = ScriptState::forReceiverObject(info);
12769 12764
12770 Iterator* result = impl->iterator(scriptState, exceptionState); 12765 Iterator* result = impl->iterator(scriptState, exceptionState);
12771 if (exceptionState.hadException()) { 12766 if (exceptionState.hadException()) {
12772 return; 12767 return;
12773 } 12768 }
12774 v8SetReturnValue(info, result); 12769 v8SetReturnValue(info, result);
12775 } 12770 }
12776 12771
12777 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 12772 void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
12778 { 12773 {
12779 TestObjectV8Internal::iteratorMethod(info); 12774 TestObjectV8Internal::iteratorMethod(info);
12780 } 12775 }
12781 12776
12782 static void namedPropertyGetter(const AtomicString& name, const v8::PropertyCall backInfo<v8::Value>& info) 12777 static void namedPropertyGetter(const AtomicString& name, const v8::PropertyCall backInfo<v8::Value>& info)
12783 { 12778 {
12784 ScriptState* scriptState = ScriptState::forReceiverObject(info); 12779 ScriptState* scriptState = ScriptState::forReceiverObject(info);
12785 12780
12786 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12781 TestObject* impl = V8TestObject::toImpl(info.Holder());
12787 ScriptValue result = impl->anonymousNamedGetter(scriptState, name); 12782 ScriptValue result = impl->anonymousNamedGetter(scriptState, name);
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
14072 if (!scriptStateInUserScript) 14067 if (!scriptStateInUserScript)
14073 return false; 14068 return false;
14074 14069
14075 ScriptState::Scope scope(scriptState); 14070 ScriptState::Scope scope(scriptState);
14076 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 14071 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
14077 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 14072 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
14078 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 14073 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
14079 } 14074 }
14080 14075
14081 } // namespace blink 14076 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698