| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 3224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3235 static void TestObjectPythonReplaceableAttributeSetter(v8::Local<v8::String> nam
e, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3235 static void TestObjectPythonReplaceableAttributeSetter(v8::Local<v8::String> nam
e, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 3236 { | 3236 { |
| 3237 info.This()->ForceSet(name, jsValue); | 3237 info.This()->ForceSet(name, jsValue); |
| 3238 } | 3238 } |
| 3239 | 3239 |
| 3240 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 3240 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
| 3241 { | 3241 { |
| 3242 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); | 3242 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); |
| 3243 } | 3243 } |
| 3244 | 3244 |
| 3245 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3245 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3246 { | 3246 { |
| 3247 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3247 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3248 imp->voidMethod(); | 3248 imp->voidMethod(); |
| 3249 } | 3249 } |
| 3250 | 3250 |
| 3251 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3251 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3252 { | 3252 { |
| 3253 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3253 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3254 TestObjectPythonV8Internal::voidMethodMethod(args); | 3254 TestObjectPythonV8Internal::voidMethodMethod(info); |
| 3255 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3255 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3256 } | 3256 } |
| 3257 | 3257 |
| 3258 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3258 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3259 { | 3259 { |
| 3260 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3260 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3261 v8SetReturnValue(args, v8DateOrNull(imp->dateMethod(), args.GetIsolate())); | 3261 v8SetReturnValue(info, v8DateOrNull(imp->dateMethod(), info.GetIsolate())); |
| 3262 } | 3262 } |
| 3263 | 3263 |
| 3264 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3264 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3265 { | 3265 { |
| 3266 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3266 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3267 TestObjectPythonV8Internal::dateMethodMethod(args); | 3267 TestObjectPythonV8Internal::dateMethodMethod(info); |
| 3268 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3268 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3269 } | 3269 } |
| 3270 | 3270 |
| 3271 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3271 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3272 { | 3272 { |
| 3273 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3273 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3274 v8SetReturnValueString(args, imp->stringMethod(), args.GetIsolate()); | 3274 v8SetReturnValueString(info, imp->stringMethod(), info.GetIsolate()); |
| 3275 } | 3275 } |
| 3276 | 3276 |
| 3277 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& args) | 3277 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 3278 { | 3278 { |
| 3279 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3279 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3280 TestObjectPythonV8Internal::stringMethodMethod(args); | 3280 TestObjectPythonV8Internal::stringMethodMethod(info); |
| 3281 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3281 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3282 } | 3282 } |
| 3283 | 3283 |
| 3284 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& args) | 3284 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3285 { | 3285 { |
| 3286 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3286 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3287 v8SetReturnValue(args, static_cast<double>(imp->readonlyDOMTimeStampMethod()
)); | 3287 v8SetReturnValue(info, static_cast<double>(imp->readonlyDOMTimeStampMethod()
)); |
| 3288 } | 3288 } |
| 3289 | 3289 |
| 3290 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& args) | 3290 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 3291 { | 3291 { |
| 3292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3293 TestObjectPythonV8Internal::readonlyDOMTimeStampMethodMethod(args); | 3293 TestObjectPythonV8Internal::readonlyDOMTimeStampMethodMethod(info); |
| 3294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3295 } | 3295 } |
| 3296 | 3296 |
| 3297 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3297 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3298 { | 3298 { |
| 3299 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3299 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3300 v8SetReturnValueBool(args, imp->booleanMethod()); | 3300 v8SetReturnValueBool(info, imp->booleanMethod()); |
| 3301 } | 3301 } |
| 3302 | 3302 |
| 3303 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& args) | 3303 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 3304 { | 3304 { |
| 3305 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3305 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3306 TestObjectPythonV8Internal::booleanMethodMethod(args); | 3306 TestObjectPythonV8Internal::booleanMethodMethod(info); |
| 3307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3308 } | 3308 } |
| 3309 | 3309 |
| 3310 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3310 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3311 { | 3311 { |
| 3312 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3312 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3313 v8SetReturnValueInt(args, imp->byteMethod()); | 3313 v8SetReturnValueInt(info, imp->byteMethod()); |
| 3314 } | 3314 } |
| 3315 | 3315 |
| 3316 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3316 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3317 { | 3317 { |
| 3318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3319 TestObjectPythonV8Internal::byteMethodMethod(args); | 3319 TestObjectPythonV8Internal::byteMethodMethod(info); |
| 3320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3321 } | 3321 } |
| 3322 | 3322 |
| 3323 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3323 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3324 { | 3324 { |
| 3325 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3325 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3326 v8SetReturnValue(args, imp->doubleMethod()); | 3326 v8SetReturnValue(info, imp->doubleMethod()); |
| 3327 } | 3327 } |
| 3328 | 3328 |
| 3329 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& args) | 3329 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 3330 { | 3330 { |
| 3331 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3331 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3332 TestObjectPythonV8Internal::doubleMethodMethod(args); | 3332 TestObjectPythonV8Internal::doubleMethodMethod(info); |
| 3333 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3333 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3334 } | 3334 } |
| 3335 | 3335 |
| 3336 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3336 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3337 { | 3337 { |
| 3338 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3338 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3339 v8SetReturnValue(args, imp->floatMethod()); | 3339 v8SetReturnValue(info, imp->floatMethod()); |
| 3340 } | 3340 } |
| 3341 | 3341 |
| 3342 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3342 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3343 { | 3343 { |
| 3344 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3344 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3345 TestObjectPythonV8Internal::floatMethodMethod(args); | 3345 TestObjectPythonV8Internal::floatMethodMethod(info); |
| 3346 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3346 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3347 } | 3347 } |
| 3348 | 3348 |
| 3349 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3349 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3350 { | 3350 { |
| 3351 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3351 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3352 v8SetReturnValueInt(args, imp->longMethod()); | 3352 v8SetReturnValueInt(info, imp->longMethod()); |
| 3353 } | 3353 } |
| 3354 | 3354 |
| 3355 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3355 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3356 { | 3356 { |
| 3357 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3357 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3358 TestObjectPythonV8Internal::longMethodMethod(args); | 3358 TestObjectPythonV8Internal::longMethodMethod(info); |
| 3359 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3359 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3360 } | 3360 } |
| 3361 | 3361 |
| 3362 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args
) | 3362 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) |
| 3363 { | 3363 { |
| 3364 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3364 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3365 v8SetReturnValue(args, static_cast<double>(imp->longLongMethod())); | 3365 v8SetReturnValue(info, static_cast<double>(imp->longLongMethod())); |
| 3366 } | 3366 } |
| 3367 | 3367 |
| 3368 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& args) | 3368 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 3369 { | 3369 { |
| 3370 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3370 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3371 TestObjectPythonV8Internal::longLongMethodMethod(args); | 3371 TestObjectPythonV8Internal::longLongMethodMethod(info); |
| 3372 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3372 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3373 } | 3373 } |
| 3374 | 3374 |
| 3375 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3375 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3376 { | 3376 { |
| 3377 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3377 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3378 v8SetReturnValueUnsigned(args, imp->octetMethod()); | 3378 v8SetReturnValueUnsigned(info, imp->octetMethod()); |
| 3379 } | 3379 } |
| 3380 | 3380 |
| 3381 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3381 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3382 { | 3382 { |
| 3383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3384 TestObjectPythonV8Internal::octetMethodMethod(args); | 3384 TestObjectPythonV8Internal::octetMethodMethod(info); |
| 3385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3386 } | 3386 } |
| 3387 | 3387 |
| 3388 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3388 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3389 { | 3389 { |
| 3390 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3390 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3391 v8SetReturnValueInt(args, imp->shortMethod()); | 3391 v8SetReturnValueInt(info, imp->shortMethod()); |
| 3392 } | 3392 } |
| 3393 | 3393 |
| 3394 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3394 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3395 { | 3395 { |
| 3396 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3396 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3397 TestObjectPythonV8Internal::shortMethodMethod(args); | 3397 TestObjectPythonV8Internal::shortMethodMethod(info); |
| 3398 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3398 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3399 } | 3399 } |
| 3400 | 3400 |
| 3401 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3401 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3402 { | 3402 { |
| 3403 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3403 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3404 v8SetReturnValueUnsigned(args, imp->unsignedLongMethod()); | 3404 v8SetReturnValueUnsigned(info, imp->unsignedLongMethod()); |
| 3405 } | 3405 } |
| 3406 | 3406 |
| 3407 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& args) | 3407 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3408 { | 3408 { |
| 3409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3410 TestObjectPythonV8Internal::unsignedLongMethodMethod(args); | 3410 TestObjectPythonV8Internal::unsignedLongMethodMethod(info); |
| 3411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3412 } | 3412 } |
| 3413 | 3413 |
| 3414 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& args) | 3414 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 3415 { | 3415 { |
| 3416 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3416 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3417 v8SetReturnValue(args, static_cast<double>(imp->unsignedLongLongMethod())); | 3417 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongMethod())); |
| 3418 } | 3418 } |
| 3419 | 3419 |
| 3420 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& args) | 3420 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 3421 { | 3421 { |
| 3422 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3422 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3423 TestObjectPythonV8Internal::unsignedLongLongMethodMethod(args); | 3423 TestObjectPythonV8Internal::unsignedLongLongMethodMethod(info); |
| 3424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3425 } | 3425 } |
| 3426 | 3426 |
| 3427 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3427 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3428 { | 3428 { |
| 3429 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3429 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3430 v8SetReturnValueUnsigned(args, imp->unsignedShortMethod()); | 3430 v8SetReturnValueUnsigned(info, imp->unsignedShortMethod()); |
| 3431 } | 3431 } |
| 3432 | 3432 |
| 3433 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 3433 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 3434 { | 3434 { |
| 3435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3436 TestObjectPythonV8Internal::unsignedShortMethodMethod(args); | 3436 TestObjectPythonV8Internal::unsignedShortMethodMethod(info); |
| 3437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3438 } | 3438 } |
| 3439 | 3439 |
| 3440 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 3440 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3441 { | 3441 { |
| 3442 if (UNLIKELY(args.Length() < 1)) { | 3442 if (UNLIKELY(info.Length() < 1)) { |
| 3443 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), arg
s.GetIsolate()); | 3443 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 3444 return; | 3444 return; |
| 3445 } | 3445 } |
| 3446 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3446 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3447 V8TRYCATCH_VOID(double, dateArg, toWebCoreDate(args[0])); | 3447 V8TRYCATCH_VOID(double, dateArg, toWebCoreDate(info[0])); |
| 3448 imp->voidMethodDateArg(dateArg); | 3448 imp->voidMethodDateArg(dateArg); |
| 3449 } | 3449 } |
| 3450 | 3450 |
| 3451 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 3451 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3452 { | 3452 { |
| 3453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3454 TestObjectPythonV8Internal::voidMethodDateArgMethod(args); | 3454 TestObjectPythonV8Internal::voidMethodDateArgMethod(info); |
| 3455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3456 } | 3456 } |
| 3457 | 3457 |
| 3458 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3458 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3459 { | 3459 { |
| 3460 if (UNLIKELY(args.Length() < 1)) { | 3460 if (UNLIKELY(info.Length() < 1)) { |
| 3461 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), a
rgs.GetIsolate()); | 3461 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); |
| 3462 return; | 3462 return; |
| 3463 } | 3463 } |
| 3464 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3464 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3465 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, args[0])
; | 3465 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
| 3466 imp->voidMethodStringArg(stringArg); | 3466 imp->voidMethodStringArg(stringArg); |
| 3467 } | 3467 } |
| 3468 | 3468 |
| 3469 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 3469 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 3470 { | 3470 { |
| 3471 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3471 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3472 TestObjectPythonV8Internal::voidMethodStringArgMethod(args); | 3472 TestObjectPythonV8Internal::voidMethodStringArgMethod(info); |
| 3473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3474 } | 3474 } |
| 3475 | 3475 |
| 3476 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& args) | 3476 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 3477 { | 3477 { |
| 3478 if (UNLIKELY(args.Length() < 1)) { | 3478 if (UNLIKELY(info.Length() < 1)) { |
| 3479 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())),
args.GetIsolate()); | 3479 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 3480 return; | 3480 return; |
| 3481 } | 3481 } |
| 3482 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3482 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3483 V8TRYCATCH_VOID(bool, booleanArg, args[0]->BooleanValue()); | 3483 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); |
| 3484 imp->voidMethodBooleanArg(booleanArg); | 3484 imp->voidMethodBooleanArg(booleanArg); |
| 3485 } | 3485 } |
| 3486 | 3486 |
| 3487 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& args) | 3487 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 3488 { | 3488 { |
| 3489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3490 TestObjectPythonV8Internal::voidMethodBooleanArgMethod(args); | 3490 TestObjectPythonV8Internal::voidMethodBooleanArgMethod(info); |
| 3491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3492 } | 3492 } |
| 3493 | 3493 |
| 3494 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 3494 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3495 { | 3495 { |
| 3496 if (UNLIKELY(args.Length() < 1)) { | 3496 if (UNLIKELY(info.Length() < 1)) { |
| 3497 throwTypeError(ExceptionMessages::failedToExecute("voidMethodByteArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), arg
s.GetIsolate()); | 3497 throwTypeError(ExceptionMessages::failedToExecute("voidMethodByteArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 3498 return; | 3498 return; |
| 3499 } | 3499 } |
| 3500 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3500 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3501 V8TRYCATCH_VOID(int, byteArg, toInt8(args[0])); | 3501 V8TRYCATCH_VOID(int, byteArg, toInt8(info[0])); |
| 3502 imp->voidMethodByteArg(byteArg); | 3502 imp->voidMethodByteArg(byteArg); |
| 3503 } | 3503 } |
| 3504 | 3504 |
| 3505 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 3505 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3506 { | 3506 { |
| 3507 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3507 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3508 TestObjectPythonV8Internal::voidMethodByteArgMethod(args); | 3508 TestObjectPythonV8Internal::voidMethodByteArgMethod(info); |
| 3509 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3509 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3510 } | 3510 } |
| 3511 | 3511 |
| 3512 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3512 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3513 { | 3513 { |
| 3514 if (UNLIKELY(args.Length() < 1)) { | 3514 if (UNLIKELY(info.Length() < 1)) { |
| 3515 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), a
rgs.GetIsolate()); | 3515 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); |
| 3516 return; | 3516 return; |
| 3517 } | 3517 } |
| 3518 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3518 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3519 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(args[0]->NumberValue(
))); | 3519 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue(
))); |
| 3520 imp->voidMethodDoubleArg(doubleArg); | 3520 imp->voidMethodDoubleArg(doubleArg); |
| 3521 } | 3521 } |
| 3522 | 3522 |
| 3523 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 3523 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 3524 { | 3524 { |
| 3525 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3525 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3526 TestObjectPythonV8Internal::voidMethodDoubleArgMethod(args); | 3526 TestObjectPythonV8Internal::voidMethodDoubleArgMethod(info); |
| 3527 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3527 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3528 } | 3528 } |
| 3529 | 3529 |
| 3530 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3530 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3531 { | 3531 { |
| 3532 if (UNLIKELY(args.Length() < 1)) { | 3532 if (UNLIKELY(info.Length() < 1)) { |
| 3533 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), ar
gs.GetIsolate()); | 3533 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); |
| 3534 return; | 3534 return; |
| 3535 } | 3535 } |
| 3536 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3536 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3537 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(args[0]->NumberValue()))
; | 3537 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()))
; |
| 3538 imp->voidMethodFloatArg(floatArg); | 3538 imp->voidMethodFloatArg(floatArg); |
| 3539 } | 3539 } |
| 3540 | 3540 |
| 3541 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& args) | 3541 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3542 { | 3542 { |
| 3543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3544 TestObjectPythonV8Internal::voidMethodFloatArgMethod(args); | 3544 TestObjectPythonV8Internal::voidMethodFloatArgMethod(info); |
| 3545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3546 } | 3546 } |
| 3547 | 3547 |
| 3548 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 3548 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3549 { | 3549 { |
| 3550 if (UNLIKELY(args.Length() < 1)) { | 3550 if (UNLIKELY(info.Length() < 1)) { |
| 3551 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), arg
s.GetIsolate()); | 3551 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 3552 return; | 3552 return; |
| 3553 } | 3553 } |
| 3554 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3554 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3555 V8TRYCATCH_VOID(int, longArg, toInt32(args[0])); | 3555 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 3556 imp->voidMethodLongArg(longArg); | 3556 imp->voidMethodLongArg(longArg); |
| 3557 } | 3557 } |
| 3558 | 3558 |
| 3559 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 3559 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3560 { | 3560 { |
| 3561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3562 TestObjectPythonV8Internal::voidMethodLongArgMethod(args); | 3562 TestObjectPythonV8Internal::voidMethodLongArgMethod(info); |
| 3563 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3563 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3564 } | 3564 } |
| 3565 | 3565 |
| 3566 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& args) | 3566 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 3567 { | 3567 { |
| 3568 if (UNLIKELY(args.Length() < 1)) { | 3568 if (UNLIKELY(info.Length() < 1)) { |
| 3569 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongLongArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())),
args.GetIsolate()); | 3569 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongLongArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 3570 return; | 3570 return; |
| 3571 } | 3571 } |
| 3572 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3572 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3573 V8TRYCATCH_VOID(long long, longLongArg, toInt64(args[0])); | 3573 V8TRYCATCH_VOID(long long, longLongArg, toInt64(info[0])); |
| 3574 imp->voidMethodLongLongArg(longLongArg); | 3574 imp->voidMethodLongLongArg(longLongArg); |
| 3575 } | 3575 } |
| 3576 | 3576 |
| 3577 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& args) | 3577 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 3578 { | 3578 { |
| 3579 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3579 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3580 TestObjectPythonV8Internal::voidMethodLongLongArgMethod(args); | 3580 TestObjectPythonV8Internal::voidMethodLongLongArgMethod(info); |
| 3581 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3581 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3582 } | 3582 } |
| 3583 | 3583 |
| 3584 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3584 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3585 { | 3585 { |
| 3586 if (UNLIKELY(args.Length() < 1)) { | 3586 if (UNLIKELY(info.Length() < 1)) { |
| 3587 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOctetArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), ar
gs.GetIsolate()); | 3587 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOctetArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); |
| 3588 return; | 3588 return; |
| 3589 } | 3589 } |
| 3590 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3590 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3591 V8TRYCATCH_VOID(unsigned, octetArg, toUInt8(args[0])); | 3591 V8TRYCATCH_VOID(unsigned, octetArg, toUInt8(info[0])); |
| 3592 imp->voidMethodOctetArg(octetArg); | 3592 imp->voidMethodOctetArg(octetArg); |
| 3593 } | 3593 } |
| 3594 | 3594 |
| 3595 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& args) | 3595 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3596 { | 3596 { |
| 3597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3598 TestObjectPythonV8Internal::voidMethodOctetArgMethod(args); | 3598 TestObjectPythonV8Internal::voidMethodOctetArgMethod(info); |
| 3599 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3599 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3600 } | 3600 } |
| 3601 | 3601 |
| 3602 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3602 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3603 { | 3603 { |
| 3604 if (UNLIKELY(args.Length() < 1)) { | 3604 if (UNLIKELY(info.Length() < 1)) { |
| 3605 throwTypeError(ExceptionMessages::failedToExecute("voidMethodShortArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), ar
gs.GetIsolate()); | 3605 throwTypeError(ExceptionMessages::failedToExecute("voidMethodShortArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); |
| 3606 return; | 3606 return; |
| 3607 } | 3607 } |
| 3608 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3608 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3609 V8TRYCATCH_VOID(int, shortArg, toInt32(args[0])); | 3609 V8TRYCATCH_VOID(int, shortArg, toInt32(info[0])); |
| 3610 imp->voidMethodShortArg(shortArg); | 3610 imp->voidMethodShortArg(shortArg); |
| 3611 } | 3611 } |
| 3612 | 3612 |
| 3613 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& args) | 3613 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3614 { | 3614 { |
| 3615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3616 TestObjectPythonV8Internal::voidMethodShortArgMethod(args); | 3616 TestObjectPythonV8Internal::voidMethodShortArgMethod(info); |
| 3617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3618 } | 3618 } |
| 3619 | 3619 |
| 3620 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 3620 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3621 { | 3621 { |
| 3622 if (UNLIKELY(args.Length() < 1)) { | 3622 if (UNLIKELY(info.Length() < 1)) { |
| 3623 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length(
))), args.GetIsolate()); | 3623 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
| 3624 return; | 3624 return; |
| 3625 } | 3625 } |
| 3626 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3626 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3627 V8TRYCATCH_VOID(unsigned, unsignedLongArg, toUInt32(args[0])); | 3627 V8TRYCATCH_VOID(unsigned, unsignedLongArg, toUInt32(info[0])); |
| 3628 imp->voidMethodUnsignedLongArg(unsignedLongArg); | 3628 imp->voidMethodUnsignedLongArg(unsignedLongArg); |
| 3629 } | 3629 } |
| 3630 | 3630 |
| 3631 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& args) | 3631 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 3632 { | 3632 { |
| 3633 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3633 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3634 TestObjectPythonV8Internal::voidMethodUnsignedLongArgMethod(args); | 3634 TestObjectPythonV8Internal::voidMethodUnsignedLongArgMethod(info); |
| 3635 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3635 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3636 } | 3636 } |
| 3637 | 3637 |
| 3638 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& args) | 3638 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 3639 { | 3639 { |
| 3640 if (UNLIKELY(args.Length() < 1)) { | 3640 if (UNLIKELY(info.Length() < 1)) { |
| 3641 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon
gLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Len
gth())), args.GetIsolate()); | 3641 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon
gLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Len
gth())), info.GetIsolate()); |
| 3642 return; | 3642 return; |
| 3643 } | 3643 } |
| 3644 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3644 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3645 V8TRYCATCH_VOID(unsigned long long, unsignedLongLongArg, toUInt64(args[0])); | 3645 V8TRYCATCH_VOID(unsigned long long, unsignedLongLongArg, toUInt64(info[0])); |
| 3646 imp->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 3646 imp->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
| 3647 } | 3647 } |
| 3648 | 3648 |
| 3649 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& args) | 3649 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 3650 { | 3650 { |
| 3651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3652 TestObjectPythonV8Internal::voidMethodUnsignedLongLongArgMethod(args); | 3652 TestObjectPythonV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
| 3653 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3653 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3654 } | 3654 } |
| 3655 | 3655 |
| 3656 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& args) | 3656 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3657 { | 3657 { |
| 3658 if (UNLIKELY(args.Length() < 1)) { | 3658 if (UNLIKELY(info.Length() < 1)) { |
| 3659 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedSho
rtArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length
())), args.GetIsolate()); | 3659 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedSho
rtArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length
())), info.GetIsolate()); |
| 3660 return; | 3660 return; |
| 3661 } | 3661 } |
| 3662 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3662 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3663 V8TRYCATCH_VOID(unsigned, unsignedShortArg, toUInt32(args[0])); | 3663 V8TRYCATCH_VOID(unsigned, unsignedShortArg, toUInt32(info[0])); |
| 3664 imp->voidMethodUnsignedShortArg(unsignedShortArg); | 3664 imp->voidMethodUnsignedShortArg(unsignedShortArg); |
| 3665 } | 3665 } |
| 3666 | 3666 |
| 3667 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& args) | 3667 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 3668 { | 3668 { |
| 3669 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3669 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3670 TestObjectPythonV8Internal::voidMethodUnsignedShortArgMethod(args); | 3670 TestObjectPythonV8Internal::voidMethodUnsignedShortArgMethod(info); |
| 3671 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3671 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3672 } | 3672 } |
| 3673 | 3673 |
| 3674 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 3674 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3675 { | 3675 { |
| 3676 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3676 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3677 v8SetReturnValue(args, imp->testInterfaceEmptyMethod()); | 3677 v8SetReturnValue(info, imp->testInterfaceEmptyMethod()); |
| 3678 } | 3678 } |
| 3679 | 3679 |
| 3680 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& args) | 3680 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 3681 { | 3681 { |
| 3682 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3682 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3683 TestObjectPythonV8Internal::testInterfaceEmptyMethodMethod(args); | 3683 TestObjectPythonV8Internal::testInterfaceEmptyMethodMethod(info); |
| 3684 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3684 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3685 } | 3685 } |
| 3686 | 3686 |
| 3687 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& args) | 3687 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 3688 { | 3688 { |
| 3689 if (UNLIKELY(args.Length() < 1)) { | 3689 if (UNLIKELY(info.Length() < 1)) { |
| 3690 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.L
ength())), args.GetIsolate()); | 3690 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
| 3691 return; | 3691 return; |
| 3692 } | 3692 } |
| 3693 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3693 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3694 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); | 3694 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::HasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 3695 imp->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 3695 imp->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 3696 } | 3696 } |
| 3697 | 3697 |
| 3698 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& args) | 3698 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 3699 { | 3699 { |
| 3700 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3700 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3701 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(args); | 3701 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); |
| 3702 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3702 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3703 } | 3703 } |
| 3704 | 3704 |
| 3705 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& args) | 3705 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 3706 { | 3706 { |
| 3707 if (UNLIKELY(args.Length() < 2)) { | 3707 if (UNLIKELY(info.Length() < 2)) { |
| 3708 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgTest
InterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2,
args.Length())), args.GetIsolate()); | 3708 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgTest
InterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2,
info.Length())), info.GetIsolate()); |
| 3709 return; | 3709 return; |
| 3710 } | 3710 } |
| 3711 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3711 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3712 V8TRYCATCH_VOID(int, longArg, toInt32(args[0])); | 3712 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 3713 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::HasInstance(args[1], args.GetIsolate(), worldType(args.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(args[1])) : 0); | 3713 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::HasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); |
| 3714 imp->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg); | 3714 imp->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg); |
| 3715 } | 3715 } |
| 3716 | 3716 |
| 3717 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& args) | 3717 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 3718 { | 3718 { |
| 3719 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3719 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3720 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(arg
s); | 3720 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(inf
o); |
| 3721 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3721 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3722 } | 3722 } |
| 3723 | 3723 |
| 3724 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
gs) | 3724 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 3725 { | 3725 { |
| 3726 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3726 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3727 v8SetReturnValue(args, imp->compareHowMethod()); | 3727 v8SetReturnValue(info, imp->compareHowMethod()); |
| 3728 } | 3728 } |
| 3729 | 3729 |
| 3730 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 3730 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3731 { | 3731 { |
| 3732 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3732 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3733 TestObjectPythonV8Internal::compareHowMethodMethod(args); | 3733 TestObjectPythonV8Internal::compareHowMethodMethod(info); |
| 3734 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3734 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3735 } | 3735 } |
| 3736 | 3736 |
| 3737 static void domStringListMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3737 static void domStringListMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3738 { | 3738 { |
| 3739 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3739 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3740 v8SetReturnValue(args, imp->domStringListMethod()); | 3740 v8SetReturnValue(info, imp->domStringListMethod()); |
| 3741 } | 3741 } |
| 3742 | 3742 |
| 3743 static void domStringListMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 3743 static void domStringListMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 3744 { | 3744 { |
| 3745 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3745 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3746 TestObjectPythonV8Internal::domStringListMethodMethod(args); | 3746 TestObjectPythonV8Internal::domStringListMethodMethod(info); |
| 3747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3748 } | 3748 } |
| 3749 | 3749 |
| 3750 static void mediaQueryListListenerMethodMethod(const v8::FunctionCallbackInfo<v8
::Value>& args) | 3750 static void mediaQueryListListenerMethodMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 3751 { | 3751 { |
| 3752 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3752 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3753 v8SetReturnValue(args, imp->mediaQueryListListenerMethod()); | 3753 v8SetReturnValue(info, imp->mediaQueryListListenerMethod()); |
| 3754 } | 3754 } |
| 3755 | 3755 |
| 3756 static void mediaQueryListListenerMethodMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& args) | 3756 static void mediaQueryListListenerMethodMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 3757 { | 3757 { |
| 3758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3759 TestObjectPythonV8Internal::mediaQueryListListenerMethodMethod(args); | 3759 TestObjectPythonV8Internal::mediaQueryListListenerMethodMethod(info); |
| 3760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3761 } | 3761 } |
| 3762 | 3762 |
| 3763 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 3763 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3764 { | 3764 { |
| 3765 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3765 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3766 v8SetReturnValue(args, imp->anyMethod().v8Value()); | 3766 v8SetReturnValue(info, imp->anyMethod().v8Value()); |
| 3767 } | 3767 } |
| 3768 | 3768 |
| 3769 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 3769 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3770 { | 3770 { |
| 3771 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3771 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3772 TestObjectPythonV8Internal::anyMethodMethod(args); | 3772 TestObjectPythonV8Internal::anyMethodMethod(info); |
| 3773 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3773 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3774 } | 3774 } |
| 3775 | 3775 |
| 3776 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& args) | 3776 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
| 3777 { | 3777 { |
| 3778 if (UNLIKELY(args.Length() < 1)) { | 3778 if (UNLIKELY(info.Length() < 1)) { |
| 3779 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL
istListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, ar
gs.Length())), args.GetIsolate()); | 3779 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL
istListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, in
fo.Length())), info.GetIsolate()); |
| 3780 return; | 3780 return; |
| 3781 } | 3781 } |
| 3782 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3782 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3783 V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, mediaQueryListListenerArg, M
ediaQueryListListener::create(ScriptValue(args[0], args.GetIsolate()))); | 3783 V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, mediaQueryListListenerArg, M
ediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate()))); |
| 3784 imp->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); | 3784 imp->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); |
| 3785 } | 3785 } |
| 3786 | 3786 |
| 3787 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& args) | 3787 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 3788 { | 3788 { |
| 3789 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3789 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3790 TestObjectPythonV8Internal::voidMethodMediaQueryListListenerArgMethod(args); | 3790 TestObjectPythonV8Internal::voidMethodMediaQueryListListenerArgMethod(info); |
| 3791 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3791 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3792 } | 3792 } |
| 3793 | 3793 |
| 3794 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& args) | 3794 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 3795 { | 3795 { |
| 3796 if (UNLIKELY(args.Length() < 1)) { | 3796 if (UNLIKELY(info.Length() < 1)) { |
| 3797 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())
), args.GetIsolate()); | 3797 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
| 3798 return; | 3798 return; |
| 3799 } | 3799 } |
| 3800 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3800 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3801 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare
How>(args[0]->Int32Value())); | 3801 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare
How>(info[0]->Int32Value())); |
| 3802 imp->voidMethodCompareHowArg(compareHowArg); | 3802 imp->voidMethodCompareHowArg(compareHowArg); |
| 3803 } | 3803 } |
| 3804 | 3804 |
| 3805 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& args) | 3805 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 3806 { | 3806 { |
| 3807 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3807 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3808 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(args); | 3808 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(info); |
| 3809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3810 } | 3810 } |
| 3811 | 3811 |
| 3812 static void voidMethodDOMStringListArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& args) | 3812 static void voidMethodDOMStringListArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3813 { | 3813 { |
| 3814 if (UNLIKELY(args.Length() < 1)) { | 3814 if (UNLIKELY(info.Length() < 1)) { |
| 3815 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDOMStringLi
stArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length
())), args.GetIsolate()); | 3815 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDOMStringLi
stArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length
())), info.GetIsolate()); |
| 3816 return; | 3816 return; |
| 3817 } | 3817 } |
| 3818 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3818 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3819 V8TRYCATCH_VOID(RefPtr<DOMStringList>, domStringListArg, toDOMStringList(arg
s[0], args.GetIsolate())); | 3819 V8TRYCATCH_VOID(RefPtr<DOMStringList>, domStringListArg, toDOMStringList(inf
o[0], info.GetIsolate())); |
| 3820 imp->voidMethodDOMStringListArg(domStringListArg); | 3820 imp->voidMethodDOMStringListArg(domStringListArg); |
| 3821 } | 3821 } |
| 3822 | 3822 |
| 3823 static void voidMethodDOMStringListArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& args) | 3823 static void voidMethodDOMStringListArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 3824 { | 3824 { |
| 3825 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3825 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3826 TestObjectPythonV8Internal::voidMethodDOMStringListArgMethod(args); | 3826 TestObjectPythonV8Internal::voidMethodDOMStringListArgMethod(info); |
| 3827 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3827 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3828 } | 3828 } |
| 3829 | 3829 |
| 3830 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
gs) | 3830 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 3831 { | 3831 { |
| 3832 if (UNLIKELY(args.Length() < 1)) { | 3832 if (UNLIKELY(info.Length() < 1)) { |
| 3833 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T
estObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), args
.GetIsolate()); | 3833 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T
estObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info
.GetIsolate()); |
| 3834 return; | 3834 return; |
| 3835 } | 3835 } |
| 3836 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3836 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3837 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(args[0], args.GetIsolate())
); | 3837 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate())
); |
| 3838 imp->voidMethodAnyArg(anyArg); | 3838 imp->voidMethodAnyArg(anyArg); |
| 3839 } | 3839 } |
| 3840 | 3840 |
| 3841 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 3841 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3842 { | 3842 { |
| 3843 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3843 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3844 TestObjectPythonV8Internal::voidMethodAnyArgMethod(args); | 3844 TestObjectPythonV8Internal::voidMethodAnyArgMethod(info); |
| 3845 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3845 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3846 } | 3846 } |
| 3847 | 3847 |
| 3848 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 3848 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3849 { | 3849 { |
| 3850 if (UNLIKELY(args.Length() < 1)) { | 3850 if (UNLIKELY(info.Length() < 1)) { |
| 3851 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), arg
s.GetIsolate()); | 3851 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 3852 return; | 3852 return; |
| 3853 } | 3853 } |
| 3854 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3854 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3855 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::HasInstance(args[0], args.GetIsolate
(), worldType(args.GetIsolate())) ? V8Attr::toNative(v8::Handle<v8::Object>::Cas
t(args[0])) : 0); | 3855 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::HasInstance(info[0], info.GetIsolate
(), worldType(info.GetIsolate())) ? V8Attr::toNative(v8::Handle<v8::Object>::Cas
t(info[0])) : 0); |
| 3856 imp->voidMethodAttrArg(attrArg); | 3856 imp->voidMethodAttrArg(attrArg); |
| 3857 } | 3857 } |
| 3858 | 3858 |
| 3859 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 3859 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3860 { | 3860 { |
| 3861 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3861 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3862 TestObjectPythonV8Internal::voidMethodAttrArgMethod(args); | 3862 TestObjectPythonV8Internal::voidMethodAttrArgMethod(info); |
| 3863 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3863 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3864 } | 3864 } |
| 3865 | 3865 |
| 3866 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& args) | 3866 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 3867 { | 3867 { |
| 3868 if (UNLIKELY(args.Length() < 1)) { | 3868 if (UNLIKELY(info.Length() < 1)) { |
| 3869 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())),
args.GetIsolate()); | 3869 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 3870 return; | 3870 return; |
| 3871 } | 3871 } |
| 3872 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3872 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3873 V8TRYCATCH_VOID(Document*, documentArg, V8Document::HasInstance(args[0], arg
s.GetIsolate(), worldType(args.GetIsolate())) ? V8Document::toNative(v8::Handle<
v8::Object>::Cast(args[0])) : 0); | 3873 V8TRYCATCH_VOID(Document*, documentArg, V8Document::HasInstance(info[0], inf
o.GetIsolate(), worldType(info.GetIsolate())) ? V8Document::toNative(v8::Handle<
v8::Object>::Cast(info[0])) : 0); |
| 3874 imp->voidMethodDocumentArg(documentArg); | 3874 imp->voidMethodDocumentArg(documentArg); |
| 3875 } | 3875 } |
| 3876 | 3876 |
| 3877 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& args) | 3877 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 3878 { | 3878 { |
| 3879 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3879 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3880 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(args); | 3880 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(info); |
| 3881 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3881 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3882 } | 3882 } |
| 3883 | 3883 |
| 3884 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 3884 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3885 { | 3885 { |
| 3886 if (UNLIKELY(args.Length() < 1)) { | 3886 if (UNLIKELY(info.Length() < 1)) { |
| 3887 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp
eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length(
))), args.GetIsolate()); | 3887 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp
eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
| 3888 return; | 3888 return; |
| 3889 } | 3889 } |
| 3890 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3890 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3891 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::HasInstance(
args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8DocumentType::toNa
tive(v8::Handle<v8::Object>::Cast(args[0])) : 0); | 3891 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::HasInstance(
info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentType::toNa
tive(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 3892 imp->voidMethodDocumentTypeArg(documentTypeArg); | 3892 imp->voidMethodDocumentTypeArg(documentTypeArg); |
| 3893 } | 3893 } |
| 3894 | 3894 |
| 3895 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& args) | 3895 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 3896 { | 3896 { |
| 3897 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3897 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3898 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(args); | 3898 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(info); |
| 3899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3900 } | 3900 } |
| 3901 | 3901 |
| 3902 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& args) | 3902 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 3903 { | 3903 { |
| 3904 if (UNLIKELY(args.Length() < 1)) { | 3904 if (UNLIKELY(info.Length() < 1)) { |
| 3905 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())),
args.GetIsolate()); | 3905 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 3906 return; | 3906 return; |
| 3907 } | 3907 } |
| 3908 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3908 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3909 V8TRYCATCH_VOID(Element*, elementArg, V8Element::HasInstance(args[0], args.G
etIsolate(), worldType(args.GetIsolate())) ? V8Element::toNative(v8::Handle<v8::
Object>::Cast(args[0])) : 0); | 3909 V8TRYCATCH_VOID(Element*, elementArg, V8Element::HasInstance(info[0], info.G
etIsolate(), worldType(info.GetIsolate())) ? V8Element::toNative(v8::Handle<v8::
Object>::Cast(info[0])) : 0); |
| 3910 imp->voidMethodElementArg(elementArg); | 3910 imp->voidMethodElementArg(elementArg); |
| 3911 } | 3911 } |
| 3912 | 3912 |
| 3913 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& args) | 3913 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 3914 { | 3914 { |
| 3915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3916 TestObjectPythonV8Internal::voidMethodElementArgMethod(args); | 3916 TestObjectPythonV8Internal::voidMethodElementArgMethod(info); |
| 3917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3918 } | 3918 } |
| 3919 | 3919 |
| 3920 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 3920 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3921 { | 3921 { |
| 3922 if (UNLIKELY(args.Length() < 1)) { | 3922 if (UNLIKELY(info.Length() < 1)) { |
| 3923 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())), arg
s.GetIsolate()); | 3923 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 3924 return; | 3924 return; |
| 3925 } | 3925 } |
| 3926 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3926 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3927 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::HasInstance(args[0], args.GetIsolate
(), worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cas
t(args[0])) : 0); | 3927 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::HasInstance(info[0], info.GetIsolate
(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cas
t(info[0])) : 0); |
| 3928 imp->voidMethodNodeArg(nodeArg); | 3928 imp->voidMethodNodeArg(nodeArg); |
| 3929 } | 3929 } |
| 3930 | 3930 |
| 3931 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 3931 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3932 { | 3932 { |
| 3933 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3933 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3934 TestObjectPythonV8Internal::voidMethodNodeArgMethod(args); | 3934 TestObjectPythonV8Internal::voidMethodNodeArgMethod(info); |
| 3935 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3935 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3936 } | 3936 } |
| 3937 | 3937 |
| 3938 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 3938 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3939 { | 3939 { |
| 3940 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3940 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3941 v8SetReturnValue(args, imp->arrayBufferMethod()); | 3941 v8SetReturnValue(info, imp->arrayBufferMethod()); |
| 3942 } | 3942 } |
| 3943 | 3943 |
| 3944 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 3944 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3945 { | 3945 { |
| 3946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3947 TestObjectPythonV8Internal::arrayBufferMethodMethod(args); | 3947 TestObjectPythonV8Internal::arrayBufferMethodMethod(info); |
| 3948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3949 } | 3949 } |
| 3950 | 3950 |
| 3951 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& args) | 3951 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 3952 { | 3952 { |
| 3953 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3953 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3954 v8SetReturnValue(args, imp->arrayBufferViewMethod()); | 3954 v8SetReturnValue(info, imp->arrayBufferViewMethod()); |
| 3955 } | 3955 } |
| 3956 | 3956 |
| 3957 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& args) | 3957 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 3958 { | 3958 { |
| 3959 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3959 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3960 TestObjectPythonV8Internal::arrayBufferViewMethodMethod(args); | 3960 TestObjectPythonV8Internal::arrayBufferViewMethodMethod(info); |
| 3961 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3961 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3962 } | 3962 } |
| 3963 | 3963 |
| 3964 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 3964 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3965 { | 3965 { |
| 3966 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3966 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3967 v8SetReturnValue(args, imp->float32ArrayMethod()); | 3967 v8SetReturnValue(info, imp->float32ArrayMethod()); |
| 3968 } | 3968 } |
| 3969 | 3969 |
| 3970 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& args) | 3970 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3971 { | 3971 { |
| 3972 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3972 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3973 TestObjectPythonV8Internal::float32ArrayMethodMethod(args); | 3973 TestObjectPythonV8Internal::float32ArrayMethodMethod(info); |
| 3974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3975 } | 3975 } |
| 3976 | 3976 |
| 3977 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
gs) | 3977 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 3978 { | 3978 { |
| 3979 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3979 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3980 v8SetReturnValue(args, imp->int32ArrayMethod()); | 3980 v8SetReturnValue(info, imp->int32ArrayMethod()); |
| 3981 } | 3981 } |
| 3982 | 3982 |
| 3983 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 3983 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3984 { | 3984 { |
| 3985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3986 TestObjectPythonV8Internal::int32ArrayMethodMethod(args); | 3986 TestObjectPythonV8Internal::int32ArrayMethodMethod(info); |
| 3987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3988 } | 3988 } |
| 3989 | 3989 |
| 3990 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
gs) | 3990 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 3991 { | 3991 { |
| 3992 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 3992 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3993 v8SetReturnValue(args, imp->uint8ArrayMethod()); | 3993 v8SetReturnValue(info, imp->uint8ArrayMethod()); |
| 3994 } | 3994 } |
| 3995 | 3995 |
| 3996 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 3996 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3997 { | 3997 { |
| 3998 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3998 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3999 TestObjectPythonV8Internal::uint8ArrayMethodMethod(args); | 3999 TestObjectPythonV8Internal::uint8ArrayMethodMethod(info); |
| 4000 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4000 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4001 } | 4001 } |
| 4002 | 4002 |
| 4003 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 4003 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 4004 { | 4004 { |
| 4005 if (UNLIKELY(args.Length() < 1)) { | 4005 if (UNLIKELY(info.Length() < 1)) { |
| 4006 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length()
)), args.GetIsolate()); | 4006 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); |
| 4007 return; | 4007 return; |
| 4008 } | 4008 } |
| 4009 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4009 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4010 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, args[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(args[0])) : 0); | 4010 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
| 4011 imp->voidMethodArrayBufferArg(arrayBufferArg); | 4011 imp->voidMethodArrayBufferArg(arrayBufferArg); |
| 4012 } | 4012 } |
| 4013 | 4013 |
| 4014 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& args) | 4014 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 4015 { | 4015 { |
| 4016 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4016 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4017 TestObjectPythonV8Internal::voidMethodArrayBufferArgMethod(args); | 4017 TestObjectPythonV8Internal::voidMethodArrayBufferArgMethod(info); |
| 4018 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4018 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4019 } | 4019 } |
| 4020 | 4020 |
| 4021 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& args) | 4021 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 4022 { | 4022 { |
| 4023 if (UNLIKELY(args.Length() < 1)) { | 4023 if (UNLIKELY(info.Length() < 1)) { |
| 4024 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
ViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Leng
th())), args.GetIsolate()); | 4024 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
ViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); |
| 4025 return; | 4025 return; |
| 4026 } | 4026 } |
| 4027 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4027 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4028 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, args[0]->IsArrayBuffer
View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(args[
0])) : 0); | 4028 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer
View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[
0])) : 0); |
| 4029 imp->voidMethodArrayBufferViewArg(arrayBufferViewArg); | 4029 imp->voidMethodArrayBufferViewArg(arrayBufferViewArg); |
| 4030 } | 4030 } |
| 4031 | 4031 |
| 4032 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& args) | 4032 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 4033 { | 4033 { |
| 4034 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4034 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4035 TestObjectPythonV8Internal::voidMethodArrayBufferViewArgMethod(args); | 4035 TestObjectPythonV8Internal::voidMethodArrayBufferViewArgMethod(info); |
| 4036 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4036 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4037 } | 4037 } |
| 4038 | 4038 |
| 4039 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 4039 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4040 { | 4040 { |
| 4041 if (UNLIKELY(args.Length() < 1)) { | 4041 if (UNLIKELY(info.Length() < 1)) { |
| 4042 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra
yArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length(
))), args.GetIsolate()); | 4042 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra
yArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
| 4043 return; | 4043 return; |
| 4044 } | 4044 } |
| 4045 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4045 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4046 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, args[0]->IsFloat32Array() ?
V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(args[0])) : 0); | 4046 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ?
V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); |
| 4047 imp->voidMethodFloat32ArrayArg(float32ArrayArg); | 4047 imp->voidMethodFloat32ArrayArg(float32ArrayArg); |
| 4048 } | 4048 } |
| 4049 | 4049 |
| 4050 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& args) | 4050 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4051 { | 4051 { |
| 4052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4053 TestObjectPythonV8Internal::voidMethodFloat32ArrayArgMethod(args); | 4053 TestObjectPythonV8Internal::voidMethodFloat32ArrayArgMethod(info); |
| 4054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4055 } | 4055 } |
| 4056 | 4056 |
| 4057 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& args) | 4057 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 4058 { | 4058 { |
| 4059 if (UNLIKELY(args.Length() < 1)) { | 4059 if (UNLIKELY(info.Length() < 1)) { |
| 4060 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())
), args.GetIsolate()); | 4060 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
| 4061 return; | 4061 return; |
| 4062 } | 4062 } |
| 4063 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4063 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4064 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, args[0]->IsInt32Array() ? V8Int3
2Array::toNative(v8::Handle<v8::Int32Array>::Cast(args[0])) : 0); | 4064 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3
2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); |
| 4065 imp->voidMethodInt32ArrayArg(int32ArrayArg); | 4065 imp->voidMethodInt32ArrayArg(int32ArrayArg); |
| 4066 } | 4066 } |
| 4067 | 4067 |
| 4068 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& args) | 4068 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4069 { | 4069 { |
| 4070 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4070 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4071 TestObjectPythonV8Internal::voidMethodInt32ArrayArgMethod(args); | 4071 TestObjectPythonV8Internal::voidMethodInt32ArrayArgMethod(info); |
| 4072 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4072 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4073 } | 4073 } |
| 4074 | 4074 |
| 4075 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& args) | 4075 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 4076 { | 4076 { |
| 4077 if (UNLIKELY(args.Length() < 1)) { | 4077 if (UNLIKELY(info.Length() < 1)) { |
| 4078 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())
), args.GetIsolate()); | 4078 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
| 4079 return; | 4079 return; |
| 4080 } | 4080 } |
| 4081 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4081 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4082 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, args[0]->IsUint8Array() ? V8Uint
8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(args[0])) : 0); | 4082 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint
8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); |
| 4083 imp->voidMethodUint8ArrayArg(uint8ArrayArg); | 4083 imp->voidMethodUint8ArrayArg(uint8ArrayArg); |
| 4084 } | 4084 } |
| 4085 | 4085 |
| 4086 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& args) | 4086 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4087 { | 4087 { |
| 4088 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4088 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4089 TestObjectPythonV8Internal::voidMethodUint8ArrayArgMethod(args); | 4089 TestObjectPythonV8Internal::voidMethodUint8ArrayArgMethod(info); |
| 4090 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4090 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4091 } | 4091 } |
| 4092 | 4092 |
| 4093 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& arg
s) | 4093 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
o) |
| 4094 { | 4094 { |
| 4095 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4095 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4096 v8SetReturnValue(args, v8Array(imp->longArrayMethod(), args.GetIsolate())); | 4096 v8SetReturnValue(info, v8Array(imp->longArrayMethod(), info.GetIsolate())); |
| 4097 } | 4097 } |
| 4098 | 4098 |
| 4099 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& args) | 4099 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 4100 { | 4100 { |
| 4101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4102 TestObjectPythonV8Internal::longArrayMethodMethod(args); | 4102 TestObjectPythonV8Internal::longArrayMethodMethod(info); |
| 4103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4104 } | 4104 } |
| 4105 | 4105 |
| 4106 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 4106 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 4107 { | 4107 { |
| 4108 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4108 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4109 v8SetReturnValue(args, v8Array(imp->stringArrayMethod(), args.GetIsolate()))
; | 4109 v8SetReturnValue(info, v8Array(imp->stringArrayMethod(), info.GetIsolate()))
; |
| 4110 } | 4110 } |
| 4111 | 4111 |
| 4112 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 4112 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4113 { | 4113 { |
| 4114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4115 TestObjectPythonV8Internal::stringArrayMethodMethod(args); | 4115 TestObjectPythonV8Internal::stringArrayMethodMethod(info); |
| 4116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4117 } | 4117 } |
| 4118 | 4118 |
| 4119 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& args) | 4119 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 4120 { | 4120 { |
| 4121 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4121 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4122 v8SetReturnValue(args, v8Array(imp->testInterfaceEmptyArrayMethod(), args.Ge
tIsolate())); | 4122 v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayMethod(), info.Ge
tIsolate())); |
| 4123 } | 4123 } |
| 4124 | 4124 |
| 4125 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& args) | 4125 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 4126 { | 4126 { |
| 4127 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4127 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4128 TestObjectPythonV8Internal::testInterfaceEmptyArrayMethodMethod(args); | 4128 TestObjectPythonV8Internal::testInterfaceEmptyArrayMethodMethod(info); |
| 4129 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4129 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4130 } | 4130 } |
| 4131 | 4131 |
| 4132 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& args) | 4132 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 4133 { | 4133 { |
| 4134 if (UNLIKELY(args.Length() < 1)) { | 4134 if (UNLIKELY(info.Length() < 1)) { |
| 4135 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr
g", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length()))
, args.GetIsolate()); | 4135 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr
g", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); |
| 4136 return; | 4136 return; |
| 4137 } | 4137 } |
| 4138 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4138 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4139 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(args[0], 1, ar
gs.GetIsolate())); | 4139 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); |
| 4140 imp->voidMethodArrayLongArg(arrayLongArg); | 4140 imp->voidMethodArrayLongArg(arrayLongArg); |
| 4141 } | 4141 } |
| 4142 | 4142 |
| 4143 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& args) | 4143 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 4144 { | 4144 { |
| 4145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4146 TestObjectPythonV8Internal::voidMethodArrayLongArgMethod(args); | 4146 TestObjectPythonV8Internal::voidMethodArrayLongArgMethod(info); |
| 4147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4148 } | 4148 } |
| 4149 | 4149 |
| 4150 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 4150 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 4151 { | 4151 { |
| 4152 if (UNLIKELY(args.Length() < 1)) { | 4152 if (UNLIKELY(info.Length() < 1)) { |
| 4153 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length()
)), args.GetIsolate()); | 4153 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); |
| 4154 return; | 4154 return; |
| 4155 } | 4155 } |
| 4156 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4156 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4157 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(args[0
], 1, args.GetIsolate())); | 4157 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0
], 1, info.GetIsolate())); |
| 4158 imp->voidMethodArrayStringArg(arrayStringArg); | 4158 imp->voidMethodArrayStringArg(arrayStringArg); |
| 4159 } | 4159 } |
| 4160 | 4160 |
| 4161 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& args) | 4161 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 4162 { | 4162 { |
| 4163 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4163 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4164 TestObjectPythonV8Internal::voidMethodArrayStringArgMethod(args); | 4164 TestObjectPythonV8Internal::voidMethodArrayStringArgMethod(info); |
| 4165 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4165 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4166 } | 4166 } |
| 4167 | 4167 |
| 4168 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& args) | 4168 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 4169 { | 4169 { |
| 4170 if (UNLIKELY(args.Length() < 1)) { | 4170 if (UNLIKELY(info.Length() < 1)) { |
| 4171 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn
terfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, a
rgs.Length())), args.GetIsolate()); | 4171 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn
terfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); |
| 4172 return; | 4172 return; |
| 4173 } | 4173 } |
| 4174 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4174 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4175 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty
Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(args[0], 1,
args.GetIsolate()))); | 4175 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty
Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1,
info.GetIsolate()))); |
| 4176 imp->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 4176 imp->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
| 4177 } | 4177 } |
| 4178 | 4178 |
| 4179 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& args) | 4179 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 4180 { | 4180 { |
| 4181 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4181 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4182 TestObjectPythonV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(args)
; | 4182 TestObjectPythonV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info)
; |
| 4183 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4183 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4184 } | 4184 } |
| 4185 | 4185 |
| 4186 static void sequenceLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 4186 static void sequenceLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4187 { | 4187 { |
| 4188 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4188 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4189 v8SetReturnValue(args, v8Array(imp->sequenceLongMethod(), args.GetIsolate())
); | 4189 v8SetReturnValue(info, v8Array(imp->sequenceLongMethod(), info.GetIsolate())
); |
| 4190 } | 4190 } |
| 4191 | 4191 |
| 4192 static void sequenceLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& args) | 4192 static void sequenceLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 4193 { | 4193 { |
| 4194 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4194 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4195 TestObjectPythonV8Internal::sequenceLongMethodMethod(args); | 4195 TestObjectPythonV8Internal::sequenceLongMethodMethod(info); |
| 4196 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4196 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4197 } | 4197 } |
| 4198 | 4198 |
| 4199 static void sequenceStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& args) | 4199 static void sequenceStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 4200 { | 4200 { |
| 4201 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4201 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4202 v8SetReturnValue(args, v8Array(imp->sequenceStringMethod(), args.GetIsolate(
))); | 4202 v8SetReturnValue(info, v8Array(imp->sequenceStringMethod(), info.GetIsolate(
))); |
| 4203 } | 4203 } |
| 4204 | 4204 |
| 4205 static void sequenceStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& args) | 4205 static void sequenceStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 4206 { | 4206 { |
| 4207 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4207 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4208 TestObjectPythonV8Internal::sequenceStringMethodMethod(args); | 4208 TestObjectPythonV8Internal::sequenceStringMethodMethod(info); |
| 4209 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4209 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4210 } | 4210 } |
| 4211 | 4211 |
| 4212 static void sequenceTestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& args) | 4212 static void sequenceTestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 4213 { | 4213 { |
| 4214 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4214 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4215 v8SetReturnValue(args, v8Array(imp->sequenceTestInterfaceEmptyMethod(), args
.GetIsolate())); | 4215 v8SetReturnValue(info, v8Array(imp->sequenceTestInterfaceEmptyMethod(), info
.GetIsolate())); |
| 4216 } | 4216 } |
| 4217 | 4217 |
| 4218 static void sequenceTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& args) | 4218 static void sequenceTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 4219 { | 4219 { |
| 4220 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4220 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4221 TestObjectPythonV8Internal::sequenceTestInterfaceEmptyMethodMethod(args); | 4221 TestObjectPythonV8Internal::sequenceTestInterfaceEmptyMethodMethod(info); |
| 4222 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4222 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4223 } | 4223 } |
| 4224 | 4224 |
| 4225 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 4225 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4226 { | 4226 { |
| 4227 if (UNLIKELY(args.Length() < 1)) { | 4227 if (UNLIKELY(info.Length() < 1)) { |
| 4228 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length(
))), args.GetIsolate()); | 4228 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
| 4229 return; | 4229 return; |
| 4230 } | 4230 } |
| 4231 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4231 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4232 V8TRYCATCH_VOID(Vector<int>, sequenceLongArg, toNativeArray<int>(args[0], 1,
args.GetIsolate())); | 4232 V8TRYCATCH_VOID(Vector<int>, sequenceLongArg, toNativeArray<int>(info[0], 1,
info.GetIsolate())); |
| 4233 imp->voidMethodSequenceLongArg(sequenceLongArg); | 4233 imp->voidMethodSequenceLongArg(sequenceLongArg); |
| 4234 } | 4234 } |
| 4235 | 4235 |
| 4236 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& args) | 4236 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4237 { | 4237 { |
| 4238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4239 TestObjectPythonV8Internal::voidMethodSequenceLongArgMethod(args); | 4239 TestObjectPythonV8Internal::voidMethodSequenceLongArgMethod(info); |
| 4240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4241 } | 4241 } |
| 4242 | 4242 |
| 4243 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 4243 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4244 { | 4244 { |
| 4245 if (UNLIKELY(args.Length() < 1)) { | 4245 if (UNLIKELY(info.Length() < 1)) { |
| 4246 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Lengt
h())), args.GetIsolate()); | 4246 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt
h())), info.GetIsolate()); |
| 4247 return; | 4247 return; |
| 4248 } | 4248 } |
| 4249 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4249 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4250 V8TRYCATCH_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(arg
s[0], 1, args.GetIsolate())); | 4250 V8TRYCATCH_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(inf
o[0], 1, info.GetIsolate())); |
| 4251 imp->voidMethodSequenceStringArg(sequenceStringArg); | 4251 imp->voidMethodSequenceStringArg(sequenceStringArg); |
| 4252 } | 4252 } |
| 4253 | 4253 |
| 4254 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& args) | 4254 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4255 { | 4255 { |
| 4256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4257 TestObjectPythonV8Internal::voidMethodSequenceStringArgMethod(args); | 4257 TestObjectPythonV8Internal::voidMethodSequenceStringArgMethod(info); |
| 4258 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4258 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4259 } | 4259 } |
| 4260 | 4260 |
| 4261 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& args) | 4261 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4262 { | 4262 { |
| 4263 if (UNLIKELY(args.Length() < 1)) { | 4263 if (UNLIKELY(info.Length() < 1)) { |
| 4264 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes
tInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1
, args.Length())), args.GetIsolate()); | 4264 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes
tInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1
, info.Length())), info.GetIsolate()); |
| 4265 return; | 4265 return; |
| 4266 } | 4266 } |
| 4267 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4267 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4268 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, sequenceTestInterfaceEm
ptyArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(args[0],
1, args.GetIsolate()))); | 4268 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, sequenceTestInterfaceEm
ptyArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0],
1, info.GetIsolate()))); |
| 4269 imp->voidMethodSequenceTestInterfaceEmptyArg(sequenceTestInterfaceEmptyArg); | 4269 imp->voidMethodSequenceTestInterfaceEmptyArg(sequenceTestInterfaceEmptyArg); |
| 4270 } | 4270 } |
| 4271 | 4271 |
| 4272 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& args) | 4272 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4273 { | 4273 { |
| 4274 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4274 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4275 TestObjectPythonV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(ar
gs); | 4275 TestObjectPythonV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(in
fo); |
| 4276 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4276 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4277 } | 4277 } |
| 4278 | 4278 |
| 4279 static void voidMethodNullableStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 4279 static void voidMethodNullableStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4280 { | 4280 { |
| 4281 if (UNLIKELY(args.Length() < 1)) { | 4281 if (UNLIKELY(info.Length() < 1)) { |
| 4282 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNullableStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Lengt
h())), args.GetIsolate()); | 4282 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNullableStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt
h())), info.GetIsolate()); |
| 4283 return; | 4283 return; |
| 4284 } | 4284 } |
| 4285 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4285 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4286 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate(
))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0)
; | 4286 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::HasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate(
))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0)
; |
| 4287 imp->voidMethodNullableStringArg(nullableTestInterfaceEmptyArg); | 4287 imp->voidMethodNullableStringArg(nullableTestInterfaceEmptyArg); |
| 4288 } | 4288 } |
| 4289 | 4289 |
| 4290 static void voidMethodNullableStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& args) | 4290 static void voidMethodNullableStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4291 { | 4291 { |
| 4292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4293 TestObjectPythonV8Internal::voidMethodNullableStringArgMethod(args); | 4293 TestObjectPythonV8Internal::voidMethodNullableStringArgMethod(info); |
| 4294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4295 } | 4295 } |
| 4296 | 4296 |
| 4297 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args
) | 4297 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) |
| 4298 { | 4298 { |
| 4299 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4299 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4300 v8SetReturnValueString(args, imp->testEnumMethod(), args.GetIsolate()); | 4300 v8SetReturnValueString(info, imp->testEnumMethod(), info.GetIsolate()); |
| 4301 } | 4301 } |
| 4302 | 4302 |
| 4303 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& args) | 4303 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 4304 { | 4304 { |
| 4305 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4305 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4306 TestObjectPythonV8Internal::testEnumMethodMethod(args); | 4306 TestObjectPythonV8Internal::testEnumMethodMethod(info); |
| 4307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4308 } | 4308 } |
| 4309 | 4309 |
| 4310 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& args) | 4310 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 4311 { | 4311 { |
| 4312 if (UNLIKELY(args.Length() < 1)) { | 4312 if (UNLIKELY(info.Length() < 1)) { |
| 4313 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())),
args.GetIsolate()); | 4313 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 4314 return; | 4314 return; |
| 4315 } | 4315 } |
| 4316 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4316 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4317 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, ar
gs[0]); | 4317 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in
fo[0]); |
| 4318 String string = testEnumTypeArg; | 4318 String string = testEnumTypeArg; |
| 4319 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { | 4319 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { |
| 4320 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", "parameter 1 ('" + string + "') is not a valid enum value
."), args.GetIsolate()); | 4320 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", "parameter 1 ('" + string + "') is not a valid enum value
."), info.GetIsolate()); |
| 4321 return; | 4321 return; |
| 4322 } | 4322 } |
| 4323 imp->voidMethodTestEnumArg(testEnumTypeArg); | 4323 imp->voidMethodTestEnumArg(testEnumTypeArg); |
| 4324 } | 4324 } |
| 4325 | 4325 |
| 4326 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& args) | 4326 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 4327 { | 4327 { |
| 4328 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4328 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4329 TestObjectPythonV8Internal::voidMethodTestEnumArgMethod(args); | 4329 TestObjectPythonV8Internal::voidMethodTestEnumArgMethod(info); |
| 4330 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4330 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4331 } | 4331 } |
| 4332 | 4332 |
| 4333 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
gs) | 4333 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 4334 { | 4334 { |
| 4335 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4335 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4336 v8SetReturnValue(args, imp->dictionaryMethod()); | 4336 v8SetReturnValue(info, imp->dictionaryMethod()); |
| 4337 } | 4337 } |
| 4338 | 4338 |
| 4339 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 4339 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 4340 { | 4340 { |
| 4341 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4341 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4342 TestObjectPythonV8Internal::dictionaryMethodMethod(args); | 4342 TestObjectPythonV8Internal::dictionaryMethodMethod(info); |
| 4343 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4343 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4344 } | 4344 } |
| 4345 | 4345 |
| 4346 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
gs) | 4346 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 4347 { | 4347 { |
| 4348 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4348 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4349 v8SetReturnValue(args, imp->nodeFilterMethod()); | 4349 v8SetReturnValue(info, imp->nodeFilterMethod()); |
| 4350 } | 4350 } |
| 4351 | 4351 |
| 4352 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 4352 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 4353 { | 4353 { |
| 4354 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4354 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4355 TestObjectPythonV8Internal::nodeFilterMethodMethod(args); | 4355 TestObjectPythonV8Internal::nodeFilterMethodMethod(info); |
| 4356 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4356 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4357 } | 4357 } |
| 4358 | 4358 |
| 4359 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 4359 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4360 { | 4360 { |
| 4361 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4361 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4362 v8SetReturnValue(args, imp->promiseMethod().v8Value()); | 4362 v8SetReturnValue(info, imp->promiseMethod().v8Value()); |
| 4363 } | 4363 } |
| 4364 | 4364 |
| 4365 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& args) | 4365 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 4366 { | 4366 { |
| 4367 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4367 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4368 TestObjectPythonV8Internal::promiseMethodMethod(args); | 4368 TestObjectPythonV8Internal::promiseMethodMethod(info); |
| 4369 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4369 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4370 } | 4370 } |
| 4371 | 4371 |
| 4372 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 4372 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4373 { | 4373 { |
| 4374 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4374 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4375 v8SetReturnValue(args, imp->serializedScriptValueMethod() ? imp->serializedS
criptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(args.GetIsola
te()))); | 4375 v8SetReturnValue(info, imp->serializedScriptValueMethod() ? imp->serializedS
criptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIsola
te()))); |
| 4376 } | 4376 } |
| 4377 | 4377 |
| 4378 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& args) | 4378 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4379 { | 4379 { |
| 4380 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4380 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4381 TestObjectPythonV8Internal::serializedScriptValueMethodMethod(args); | 4381 TestObjectPythonV8Internal::serializedScriptValueMethodMethod(info); |
| 4382 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4382 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4383 } | 4383 } |
| 4384 | 4384 |
| 4385 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& args) | 4385 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 4386 { | 4386 { |
| 4387 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4387 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4388 v8SetReturnValue(args, imp->xPathNSResolverMethod()); | 4388 v8SetReturnValue(info, imp->xPathNSResolverMethod()); |
| 4389 } | 4389 } |
| 4390 | 4390 |
| 4391 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& args) | 4391 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 4392 { | 4392 { |
| 4393 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4393 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4394 TestObjectPythonV8Internal::xPathNSResolverMethodMethod(args); | 4394 TestObjectPythonV8Internal::xPathNSResolverMethodMethod(info); |
| 4395 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4395 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4396 } | 4396 } |
| 4397 | 4397 |
| 4398 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& args) | 4398 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 4399 { | 4399 { |
| 4400 if (UNLIKELY(args.Length() < 1)) { | 4400 if (UNLIKELY(info.Length() < 1)) { |
| 4401 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())
), args.GetIsolate()); | 4401 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
| 4402 return; | 4402 return; |
| 4403 } | 4403 } |
| 4404 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4404 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4405 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(args[0], args.GetIsola
te())); | 4405 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola
te())); |
| 4406 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | 4406 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
| 4407 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", "parameter 1 ('dictionaryArg') is not an object."), arg
s.GetIsolate()); | 4407 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", "parameter 1 ('dictionaryArg') is not an object."), inf
o.GetIsolate()); |
| 4408 return; | 4408 return; |
| 4409 } | 4409 } |
| 4410 imp->voidMethodDictionaryArg(dictionaryArg); | 4410 imp->voidMethodDictionaryArg(dictionaryArg); |
| 4411 } | 4411 } |
| 4412 | 4412 |
| 4413 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& args) | 4413 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4414 { | 4414 { |
| 4415 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4415 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4416 TestObjectPythonV8Internal::voidMethodDictionaryArgMethod(args); | 4416 TestObjectPythonV8Internal::voidMethodDictionaryArgMethod(info); |
| 4417 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4417 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4418 } | 4418 } |
| 4419 | 4419 |
| 4420 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& args) | 4420 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 4421 { | 4421 { |
| 4422 if (UNLIKELY(args.Length() < 1)) { | 4422 if (UNLIKELY(info.Length() < 1)) { |
| 4423 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())
), args.GetIsolate()); | 4423 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
| 4424 return; | 4424 return; |
| 4425 } | 4425 } |
| 4426 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4426 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4427 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(args[0], arg
s.GetIsolate())); | 4427 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf
o.GetIsolate())); |
| 4428 imp->voidMethodNodeFilterArg(nodeFilterArg.get()); | 4428 imp->voidMethodNodeFilterArg(nodeFilterArg.get()); |
| 4429 } | 4429 } |
| 4430 | 4430 |
| 4431 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& args) | 4431 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4432 { | 4432 { |
| 4433 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4433 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4434 TestObjectPythonV8Internal::voidMethodNodeFilterArgMethod(args); | 4434 TestObjectPythonV8Internal::voidMethodNodeFilterArgMethod(info); |
| 4435 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4435 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4436 } | 4436 } |
| 4437 | 4437 |
| 4438 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& args) | 4438 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 4439 { | 4439 { |
| 4440 if (UNLIKELY(args.Length() < 1)) { | 4440 if (UNLIKELY(info.Length() < 1)) { |
| 4441 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Length())),
args.GetIsolate()); | 4441 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 4442 return; | 4442 return; |
| 4443 } | 4443 } |
| 4444 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4444 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4445 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(args[0])); | 4445 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0])); |
| 4446 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { | 4446 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { |
| 4447 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", "parameter 1 ('promiseArg') is not an object."), args.GetI
solate()); | 4447 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", "parameter 1 ('promiseArg') is not an object."), info.GetI
solate()); |
| 4448 return; | 4448 return; |
| 4449 } | 4449 } |
| 4450 imp->voidMethodPromiseArg(promiseArg); | 4450 imp->voidMethodPromiseArg(promiseArg); |
| 4451 } | 4451 } |
| 4452 | 4452 |
| 4453 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& args) | 4453 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 4454 { | 4454 { |
| 4455 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4455 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4456 TestObjectPythonV8Internal::voidMethodPromiseArgMethod(args); | 4456 TestObjectPythonV8Internal::voidMethodPromiseArgMethod(info); |
| 4457 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4457 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4458 } | 4458 } |
| 4459 | 4459 |
| 4460 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& args) | 4460 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 4461 { | 4461 { |
| 4462 if (UNLIKELY(args.Length() < 1)) { | 4462 if (UNLIKELY(info.Length() < 1)) { |
| 4463 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSerializedS
criptValueArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, arg
s.Length())), args.GetIsolate()); | 4463 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSerializedS
criptValueArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, inf
o.Length())), info.GetIsolate()); |
| 4464 return; | 4464 return; |
| 4465 } | 4465 } |
| 4466 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4466 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4467 bool serializedScriptValueArgDidThrow = false; | 4467 bool serializedScriptValueArgDidThrow = false; |
| 4468 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(args[0], 0, 0, serializedScriptValueArgDidThrow, args.GetIsolate()); | 4468 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(info[0], 0, 0, serializedScriptValueArgDidThrow, info.GetIsolate()); |
| 4469 if (serializedScriptValueArgDidThrow) | 4469 if (serializedScriptValueArgDidThrow) |
| 4470 return; | 4470 return; |
| 4471 imp->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 4471 imp->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
| 4472 } | 4472 } |
| 4473 | 4473 |
| 4474 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& args) | 4474 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 4475 { | 4475 { |
| 4476 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4476 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4477 TestObjectPythonV8Internal::voidMethodSerializedScriptValueArgMethod(args); | 4477 TestObjectPythonV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
| 4478 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4478 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4479 } | 4479 } |
| 4480 | 4480 |
| 4481 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& args) | 4481 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 4482 { | 4482 { |
| 4483 if (UNLIKELY(args.Length() < 1)) { | 4483 if (UNLIKELY(info.Length() < 1)) { |
| 4484 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso
lverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Leng
th())), args.GetIsolate()); | 4484 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso
lverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); |
| 4485 return; | 4485 return; |
| 4486 } | 4486 } |
| 4487 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4487 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4488 V8TRYCATCH_VOID(RefPtr<XPathNSResolver>, xPathNSResolverArg, toXPathNSResolv
er(args[0], args.GetIsolate())); | 4488 V8TRYCATCH_VOID(RefPtr<XPathNSResolver>, xPathNSResolverArg, toXPathNSResolv
er(info[0], info.GetIsolate())); |
| 4489 imp->voidMethodXPathNSResolverArg(xPathNSResolverArg.get()); | 4489 imp->voidMethodXPathNSResolverArg(xPathNSResolverArg.get()); |
| 4490 } | 4490 } |
| 4491 | 4491 |
| 4492 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& args) | 4492 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 4493 { | 4493 { |
| 4494 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4494 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4495 TestObjectPythonV8Internal::voidMethodXPathNSResolverArgMethod(args); | 4495 TestObjectPythonV8Internal::voidMethodXPathNSResolverArgMethod(info); |
| 4496 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4496 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4497 } | 4497 } |
| 4498 | 4498 |
| 4499 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& args) | 4499 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 4500 { | 4500 { |
| 4501 if (UNLIKELY(args.Length() < 2)) { | 4501 if (UNLIKELY(info.Length() < 2)) { |
| 4502 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgLo
ngArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, args.Length
())), args.GetIsolate()); | 4502 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgLo
ngArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length
())), info.GetIsolate()); |
| 4503 return; | 4503 return; |
| 4504 } | 4504 } |
| 4505 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4505 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4506 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, args[0])
; | 4506 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
| 4507 V8TRYCATCH_VOID(int, longArg, toInt32(args[1])); | 4507 V8TRYCATCH_VOID(int, longArg, toInt32(info[1])); |
| 4508 imp->voidMethodStringArgLongArg(stringArg, longArg); | 4508 imp->voidMethodStringArgLongArg(stringArg, longArg); |
| 4509 } | 4509 } |
| 4510 | 4510 |
| 4511 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& args) | 4511 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 4512 { | 4512 { |
| 4513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4514 TestObjectPythonV8Internal::voidMethodStringArgLongArgMethod(args); | 4514 TestObjectPythonV8Internal::voidMethodStringArgLongArgMethod(info); |
| 4515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4516 } | 4516 } |
| 4517 | 4517 |
| 4518 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 4518 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4519 { | 4519 { |
| 4520 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4520 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4521 if (UNLIKELY(args.Length() <= 0)) { | 4521 if (UNLIKELY(info.Length() <= 0)) { |
| 4522 imp->voidMethodOptionalStringArg(); | 4522 imp->voidMethodOptionalStringArg(); |
| 4523 return; | 4523 return; |
| 4524 } | 4524 } |
| 4525 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg,
args[0]); | 4525 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg,
info[0]); |
| 4526 imp->voidMethodOptionalStringArg(optionalStringArg); | 4526 imp->voidMethodOptionalStringArg(optionalStringArg); |
| 4527 } | 4527 } |
| 4528 | 4528 |
| 4529 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& args) | 4529 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4530 { | 4530 { |
| 4531 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4531 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4532 TestObjectPythonV8Internal::voidMethodOptionalStringArgMethod(args); | 4532 TestObjectPythonV8Internal::voidMethodOptionalStringArgMethod(info); |
| 4533 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4533 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4534 } | 4534 } |
| 4535 | 4535 |
| 4536 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& args) | 4536 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4537 { | 4537 { |
| 4538 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4538 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4539 if (UNLIKELY(args.Length() <= 0)) { | 4539 if (UNLIKELY(info.Length() <= 0)) { |
| 4540 imp->voidMethodOptionalTestInterfaceEmptyArg(); | 4540 imp->voidMethodOptionalTestInterfaceEmptyArg(); |
| 4541 return; | 4541 return; |
| 4542 } | 4542 } |
| 4543 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate(
))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0)
; | 4543 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::HasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate(
))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0)
; |
| 4544 imp->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg); | 4544 imp->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg); |
| 4545 } | 4545 } |
| 4546 | 4546 |
| 4547 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& args) | 4547 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4548 { | 4548 { |
| 4549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4550 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(ar
gs); | 4550 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(in
fo); |
| 4551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4552 } | 4552 } |
| 4553 | 4553 |
| 4554 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 4554 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4555 { | 4555 { |
| 4556 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4556 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4557 if (UNLIKELY(args.Length() <= 0)) { | 4557 if (UNLIKELY(info.Length() <= 0)) { |
| 4558 imp->voidMethodOptionalLongArg(); | 4558 imp->voidMethodOptionalLongArg(); |
| 4559 return; | 4559 return; |
| 4560 } | 4560 } |
| 4561 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(args[0])); | 4561 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4562 imp->voidMethodOptionalLongArg(optionalLongArg); | 4562 imp->voidMethodOptionalLongArg(optionalLongArg); |
| 4563 } | 4563 } |
| 4564 | 4564 |
| 4565 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& args) | 4565 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4566 { | 4566 { |
| 4567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4568 TestObjectPythonV8Internal::voidMethodOptionalLongArgMethod(args); | 4568 TestObjectPythonV8Internal::voidMethodOptionalLongArgMethod(info); |
| 4569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4570 } | 4570 } |
| 4571 | 4571 |
| 4572 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 4572 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4573 { | 4573 { |
| 4574 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4574 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4575 if (UNLIKELY(args.Length() <= 0)) { | 4575 if (UNLIKELY(info.Length() <= 0)) { |
| 4576 v8SetReturnValueString(args, imp->stringMethodOptionalLongArg(), args.Ge
tIsolate()); | 4576 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(), info.Ge
tIsolate()); |
| 4577 return; | 4577 return; |
| 4578 } | 4578 } |
| 4579 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(args[0])); | 4579 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4580 v8SetReturnValueString(args, imp->stringMethodOptionalLongArg(optionalLongAr
g), args.GetIsolate()); | 4580 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(optionalLongAr
g), info.GetIsolate()); |
| 4581 } | 4581 } |
| 4582 | 4582 |
| 4583 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& args) | 4583 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4584 { | 4584 { |
| 4585 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4585 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4586 TestObjectPythonV8Internal::stringMethodOptionalLongArgMethod(args); | 4586 TestObjectPythonV8Internal::stringMethodOptionalLongArgMethod(info); |
| 4587 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4587 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4588 } | 4588 } |
| 4589 | 4589 |
| 4590 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& args) | 4590 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4591 { | 4591 { |
| 4592 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4592 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4593 if (UNLIKELY(args.Length() <= 0)) { | 4593 if (UNLIKELY(info.Length() <= 0)) { |
| 4594 v8SetReturnValue(args, imp->testInterfaceEmptyMethodOptionalLongArg()); | 4594 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg()); |
| 4595 return; | 4595 return; |
| 4596 } | 4596 } |
| 4597 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(args[0])); | 4597 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4598 v8SetReturnValue(args, imp->testInterfaceEmptyMethodOptionalLongArg(optional
LongArg)); | 4598 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg(optional
LongArg)); |
| 4599 } | 4599 } |
| 4600 | 4600 |
| 4601 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& args) | 4601 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4602 { | 4602 { |
| 4603 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4603 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4604 TestObjectPythonV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(ar
gs); | 4604 TestObjectPythonV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(in
fo); |
| 4605 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4605 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4606 } | 4606 } |
| 4607 | 4607 |
| 4608 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 4608 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4609 { | 4609 { |
| 4610 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4610 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4611 if (UNLIKELY(args.Length() <= 0)) { | 4611 if (UNLIKELY(info.Length() <= 0)) { |
| 4612 v8SetReturnValueInt(args, imp->longMethodOptionalLongArg()); | 4612 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg()); |
| 4613 return; | 4613 return; |
| 4614 } | 4614 } |
| 4615 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(args[0])); | 4615 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4616 v8SetReturnValueInt(args, imp->longMethodOptionalLongArg(optionalLongArg)); | 4616 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg(optionalLongArg)); |
| 4617 } | 4617 } |
| 4618 | 4618 |
| 4619 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& args) | 4619 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4620 { | 4620 { |
| 4621 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4621 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4622 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(args); | 4622 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(info); |
| 4623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4624 } | 4624 } |
| 4625 | 4625 |
| 4626 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& args) | 4626 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4627 { | 4627 { |
| 4628 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4628 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4629 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(args[0], args.
GetIsolate())); | 4629 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.
GetIsolate())); |
| 4630 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { | 4630 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { |
| 4631 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a
n object."), args.GetIsolate()); | 4631 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a
n object."), info.GetIsolate()); |
| 4632 return; | 4632 return; |
| 4633 } | 4633 } |
| 4634 imp->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | 4634 imp->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
| 4635 } | 4635 } |
| 4636 | 4636 |
| 4637 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& args) | 4637 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4638 { | 4638 { |
| 4639 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4639 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4640 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(args); | 4640 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
| 4641 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4641 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4642 } | 4642 } |
| 4643 | 4643 |
| 4644 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& args) | 4644 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 4645 { | 4645 { |
| 4646 if (UNLIKELY(args.Length() < 1)) { | 4646 if (UNLIKELY(info.Length() < 1)) { |
| 4647 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.
Length())), args.GetIsolate()); | 4647 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.
Length())), info.GetIsolate()); |
| 4648 return; | 4648 return; |
| 4649 } | 4649 } |
| 4650 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4650 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4651 V8TRYCATCH_VOID(int, longArg, toInt32(args[0])); | 4651 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4652 if (UNLIKELY(args.Length() <= 1)) { | 4652 if (UNLIKELY(info.Length() <= 1)) { |
| 4653 imp->voidMethodLongArgOptionalLongArg(longArg); | 4653 imp->voidMethodLongArgOptionalLongArg(longArg); |
| 4654 return; | 4654 return; |
| 4655 } | 4655 } |
| 4656 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(args[1])); | 4656 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[1])); |
| 4657 imp->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 4657 imp->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
| 4658 } | 4658 } |
| 4659 | 4659 |
| 4660 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& args) | 4660 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 4661 { | 4661 { |
| 4662 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4662 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4663 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgMethod(args); | 4663 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
| 4664 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4664 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4665 } | 4665 } |
| 4666 | 4666 |
| 4667 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& args) | 4667 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4668 { | 4668 { |
| 4669 if (UNLIKELY(args.Length() < 1)) { | 4669 if (UNLIKELY(info.Length() < 1)) { |
| 4670 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalLongArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, args.Length())), args.GetIsolate()); | 4670 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalLongArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); |
| 4671 return; | 4671 return; |
| 4672 } | 4672 } |
| 4673 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4673 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4674 V8TRYCATCH_VOID(int, longArg, toInt32(args[0])); | 4674 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4675 if (UNLIKELY(args.Length() <= 1)) { | 4675 if (UNLIKELY(info.Length() <= 1)) { |
| 4676 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 4676 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
| 4677 return; | 4677 return; |
| 4678 } | 4678 } |
| 4679 V8TRYCATCH_VOID(int, optionalLongArg1, toInt32(args[1])); | 4679 V8TRYCATCH_VOID(int, optionalLongArg1, toInt32(info[1])); |
| 4680 if (UNLIKELY(args.Length() <= 2)) { | 4680 if (UNLIKELY(info.Length() <= 2)) { |
| 4681 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLo
ngArg1); | 4681 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLo
ngArg1); |
| 4682 return; | 4682 return; |
| 4683 } | 4683 } |
| 4684 V8TRYCATCH_VOID(int, optionalLongArg2, toInt32(args[2])); | 4684 V8TRYCATCH_VOID(int, optionalLongArg2, toInt32(info[2])); |
| 4685 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongAr
g1, optionalLongArg2); | 4685 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongAr
g1, optionalLongArg2); |
| 4686 } | 4686 } |
| 4687 | 4687 |
| 4688 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& args) | 4688 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 4689 { | 4689 { |
| 4690 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4690 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4691 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgM
ethod(args); | 4691 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgM
ethod(info); |
| 4692 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4692 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4693 } | 4693 } |
| 4694 | 4694 |
| 4695 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& args) | 4695 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 4696 { | 4696 { |
| 4697 if (UNLIKELY(args.Length() < 1)) { | 4697 if (UNLIKELY(info.Length() < 1)) { |
| 4698 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArgu
ments(1, args.Length())), args.GetIsolate()); | 4698 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArgu
ments(1, info.Length())), info.GetIsolate()); |
| 4699 return; | 4699 return; |
| 4700 } | 4700 } |
| 4701 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4701 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4702 V8TRYCATCH_VOID(int, longArg, toInt32(args[0])); | 4702 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4703 if (UNLIKELY(args.Length() <= 1)) { | 4703 if (UNLIKELY(info.Length() <= 1)) { |
| 4704 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 4704 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
| 4705 return; | 4705 return; |
| 4706 } | 4706 } |
| 4707 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::HasInstance(args[1], args.GetIsolate(), worldType(args.GetIsolate()))
? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(args[1])) : 0); | 4707 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::HasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate()))
? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); |
| 4708 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestInt
erfaceEmpty); | 4708 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestInt
erfaceEmpty); |
| 4709 } | 4709 } |
| 4710 | 4710 |
| 4711 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& args) | 4711 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 4712 { | 4712 { |
| 4713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4714 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe
thod(args); | 4714 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe
thod(info); |
| 4715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4716 } | 4716 } |
| 4717 | 4717 |
| 4718 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& args) | 4718 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 4719 { | 4719 { |
| 4720 if (UNLIKELY(args.Length() < 1)) { | 4720 if (UNLIKELY(info.Length() < 1)) { |
| 4721 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArgu
ments(1, args.Length())), args.GetIsolate()); | 4721 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArgu
ments(1, info.Length())), info.GetIsolate()); |
| 4722 return; | 4722 return; |
| 4723 } | 4723 } |
| 4724 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4724 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4725 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate()))
? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); | 4725 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::HasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))
? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 4726 if (UNLIKELY(args.Length() <= 1)) { | 4726 if (UNLIKELY(info.Length() <= 1)) { |
| 4727 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfac
eEmpty); | 4727 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfac
eEmpty); |
| 4728 return; | 4728 return; |
| 4729 } | 4729 } |
| 4730 V8TRYCATCH_VOID(int, longArg, toInt32(args[1])); | 4730 V8TRYCATCH_VOID(int, longArg, toInt32(info[1])); |
| 4731 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp
ty, longArg); | 4731 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp
ty, longArg); |
| 4732 } | 4732 } |
| 4733 | 4733 |
| 4734 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& args) | 4734 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 4735 { | 4735 { |
| 4736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4737 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe
thod(args); | 4737 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe
thod(info); |
| 4738 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4738 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4739 } | 4739 } |
| 4740 | 4740 |
| 4741 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 4741 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4742 { | 4742 { |
| 4743 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4743 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4744 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(args, 0)); | 4744 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 0)); |
| 4745 imp->voidMethodVariadicStringArg(variadicStringArgs); | 4745 imp->voidMethodVariadicStringArg(variadicStringArgs); |
| 4746 } | 4746 } |
| 4747 | 4747 |
| 4748 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& args) | 4748 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4749 { | 4749 { |
| 4750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4751 TestObjectPythonV8Internal::voidMethodVariadicStringArgMethod(args); | 4751 TestObjectPythonV8Internal::voidMethodVariadicStringArgMethod(info); |
| 4752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4753 } | 4753 } |
| 4754 | 4754 |
| 4755 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& args) | 4755 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 4756 { | 4756 { |
| 4757 if (UNLIKELY(args.Length() < 1)) { | 4757 if (UNLIKELY(info.Length() < 1)) { |
| 4758 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa
riadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, a
rgs.Length())), args.GetIsolate()); | 4758 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa
riadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); |
| 4759 return; | 4759 return; |
| 4760 } | 4760 } |
| 4761 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4761 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4762 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, args[0])
; | 4762 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
| 4763 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(args, 1)); | 4763 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 1)); |
| 4764 imp->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 4764 imp->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
| 4765 } | 4765 } |
| 4766 | 4766 |
| 4767 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& args) | 4767 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 4768 { | 4768 { |
| 4769 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4769 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4770 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(args)
; | 4770 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(info)
; |
| 4771 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4771 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4772 } | 4772 } |
| 4773 | 4773 |
| 4774 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& args) | 4774 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4775 { | 4775 { |
| 4776 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4776 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4777 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 4777 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
| 4778 for (int i = 0; i < args.Length(); ++i) { | 4778 for (int i = 0; i < info.Length(); ++i) { |
| 4779 if (!V8TestInterfaceEmpty::HasInstance(args[i], args.GetIsolate(), world
Type(args.GetIsolate()))) { | 4779 if (!V8TestInterfaceEmpty::HasInstance(info[i], info.GetIsolate(), world
Type(info.GetIsolate()))) { |
| 4780 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn
terfaceEmpty'."), args.GetIsolate()); | 4780 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn
terfaceEmpty'."), info.GetIsolate()); |
| 4781 return; | 4781 return; |
| 4782 } | 4782 } |
| 4783 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(args[i]))); | 4783 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); |
| 4784 } | 4784 } |
| 4785 imp->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs)
; | 4785 imp->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs)
; |
| 4786 } | 4786 } |
| 4787 | 4787 |
| 4788 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& args) | 4788 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4789 { | 4789 { |
| 4790 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4790 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4791 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(ar
gs); | 4791 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(in
fo); |
| 4792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4793 } | 4793 } |
| 4794 | 4794 |
| 4795 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& args) | 4795 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 4796 { | 4796 { |
| 4797 if (UNLIKELY(args.Length() < 1)) { | 4797 if (UNLIKELY(info.Length() < 1)) { |
| 4798 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages:
:notEnoughArguments(1, args.Length())), args.GetIsolate()); | 4798 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages:
:notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 4799 return; | 4799 return; |
| 4800 } | 4800 } |
| 4801 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4801 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4802 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); | 4802 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::HasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 4803 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 4803 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
| 4804 for (int i = 1; i < args.Length(); ++i) { | 4804 for (int i = 1; i < info.Length(); ++i) { |
| 4805 if (!V8TestInterfaceEmpty::HasInstance(args[i], args.GetIsolate(), world
Type(args.GetIsolate()))) { | 4805 if (!V8TestInterfaceEmpty::HasInstance(info[i], info.GetIsolate(), world
Type(info.GetIsolate()))) { |
| 4806 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i
s not of type 'TestInterfaceEmpty'."), args.GetIsolate()); | 4806 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i
s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
| 4807 return; | 4807 return; |
| 4808 } | 4808 } |
| 4809 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(args[i]))); | 4809 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); |
| 4810 } | 4810 } |
| 4811 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf
aceEmptyArg, variadicTestInterfaceEmptyArgs); | 4811 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf
aceEmptyArg, variadicTestInterfaceEmptyArgs); |
| 4812 } | 4812 } |
| 4813 | 4813 |
| 4814 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& args) | 4814 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4815 { | 4815 { |
| 4816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4817 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(args); | 4817 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(info); |
| 4818 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4818 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4819 } | 4819 } |
| 4820 | 4820 |
| 4821 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& args) | 4821 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4822 { | 4822 { |
| 4823 if (UNLIKELY(args.Length() < 1)) { | 4823 if (UNLIKELY(info.Length() < 1)) { |
| 4824 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.L
ength())), args.GetIsolate()); | 4824 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
| 4825 return; | 4825 return; |
| 4826 } | 4826 } |
| 4827 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4827 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4828 unsigned clampUnsignedShortArg = 0; | 4828 unsigned clampUnsignedShortArg = 0; |
| 4829 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, args[0]->NumberVal
ue()); | 4829 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); |
| 4830 if (!std::isnan(clampUnsignedShortArgNativeValue)) | 4830 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
| 4831 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); | 4831 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); |
| 4832 imp->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); | 4832 imp->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
| 4833 } | 4833 } |
| 4834 | 4834 |
| 4835 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& args) | 4835 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4836 { | 4836 { |
| 4837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4838 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgMethod(args); | 4838 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgMethod(info); |
| 4839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4840 } | 4840 } |
| 4841 | 4841 |
| 4842 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& args) | 4842 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 4843 { | 4843 { |
| 4844 if (UNLIKELY(args.Length() < 1)) { | 4844 if (UNLIKELY(info.Length() < 1)) { |
| 4845 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Le
ngth())), args.GetIsolate()); | 4845 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Le
ngth())), info.GetIsolate()); |
| 4846 return; | 4846 return; |
| 4847 } | 4847 } |
| 4848 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4848 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4849 unsigned clampUnsignedLongArg = 0; | 4849 unsigned clampUnsignedLongArg = 0; |
| 4850 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, args[0]->NumberValu
e()); | 4850 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu
e()); |
| 4851 if (!std::isnan(clampUnsignedLongArgNativeValue)) | 4851 if (!std::isnan(clampUnsignedLongArgNativeValue)) |
| 4852 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); | 4852 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); |
| 4853 imp->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); | 4853 imp->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
| 4854 } | 4854 } |
| 4855 | 4855 |
| 4856 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& args) | 4856 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 4857 { | 4857 { |
| 4858 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4858 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4859 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(args); | 4859 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(info); |
| 4860 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4860 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4861 } | 4861 } |
| 4862 | 4862 |
| 4863 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& args) | 4863 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4864 { | 4864 { |
| 4865 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4865 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4866 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg,
V8TestInterfaceEmpty::HasInstance(args[0], args.GetIsolate(), worldType(args.Get
Isolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(args[0
])) : 0); | 4866 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg,
V8TestInterfaceEmpty::HasInstance(info[0], info.GetIsolate(), worldType(info.Get
Isolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0
])) : 0); |
| 4867 imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInt
erfaceEmptyArg); | 4867 imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInt
erfaceEmptyArg); |
| 4868 } | 4868 } |
| 4869 | 4869 |
| 4870 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& args) | 4870 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 4871 { | 4871 { |
| 4872 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4872 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4873 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM
ethod(args); | 4873 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM
ethod(info); |
| 4874 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4874 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4875 } | 4875 } |
| 4876 | 4876 |
| 4877 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& args) | 4877 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4878 { | 4878 { |
| 4879 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4879 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4880 V8TRYCATCH_VOID(int, defaultUndefinedLongArg, toInt32(args[0])); | 4880 V8TRYCATCH_VOID(int, defaultUndefinedLongArg, toInt32(info[0])); |
| 4881 imp->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); | 4881 imp->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
| 4882 } | 4882 } |
| 4883 | 4883 |
| 4884 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& args) | 4884 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 4885 { | 4885 { |
| 4886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4887 TestObjectPythonV8Internal::voidMethodDefaultUndefinedLongArgMethod(args); | 4887 TestObjectPythonV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); |
| 4888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4889 } | 4889 } |
| 4890 | 4890 |
| 4891 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& args) | 4891 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4892 { | 4892 { |
| 4893 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4893 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4894 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr
ingArg, args[0]); | 4894 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr
ingArg, info[0]); |
| 4895 imp->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); | 4895 imp->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
| 4896 } | 4896 } |
| 4897 | 4897 |
| 4898 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& args) | 4898 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 4899 { | 4899 { |
| 4900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4901 TestObjectPythonV8Internal::voidMethodDefaultUndefinedStringArgMethod(args); | 4901 TestObjectPythonV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); |
| 4902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4903 } | 4903 } |
| 4904 | 4904 |
| 4905 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& args) | 4905 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 4906 { | 4906 { |
| 4907 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4907 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4908 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt
ringArg, argumentOrNull(args, 0)); | 4908 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt
ringArg, argumentOrNull(info, 0)); |
| 4909 imp->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); | 4909 imp->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); |
| 4910 } | 4910 } |
| 4911 | 4911 |
| 4912 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& args) | 4912 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 4913 { | 4913 { |
| 4914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4915 TestObjectPythonV8Internal::voidMethodDefaultNullStringStringArgMethod(args)
; | 4915 TestObjectPythonV8Internal::voidMethodDefaultNullStringStringArgMethod(info)
; |
| 4916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4917 } | 4917 } |
| 4918 | 4918 |
| 4919 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& args) | 4919 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 4920 { | 4920 { |
| 4921 if (UNLIKELY(args.Length() < 1)) { | 4921 if (UNLIKELY(info.Length() < 1)) { |
| 4922 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEnforceRang
eLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Len
gth())), args.GetIsolate()); | 4922 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEnforceRang
eLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Len
gth())), info.GetIsolate()); |
| 4923 return; | 4923 return; |
| 4924 } | 4924 } |
| 4925 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4925 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4926 V8TRYCATCH_WITH_TYPECHECK_VOID(int, enforceRangeLongArg, toInt32(args[0], En
forceRange, ok), args.GetIsolate()); | 4926 V8TRYCATCH_WITH_TYPECHECK_VOID(int, enforceRangeLongArg, toInt32(info[0], En
forceRange, ok), info.GetIsolate()); |
| 4927 imp->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 4927 imp->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
| 4928 } | 4928 } |
| 4929 | 4929 |
| 4930 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& args) | 4930 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 4931 { | 4931 { |
| 4932 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4932 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4933 TestObjectPythonV8Internal::voidMethodEnforceRangeLongArgMethod(args); | 4933 TestObjectPythonV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
| 4934 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4934 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4935 } | 4935 } |
| 4936 | 4936 |
| 4937 } // namespace TestObjectPythonV8Internal | 4937 } // namespace TestObjectPythonV8Internal |
| 4938 | 4938 |
| 4939 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { | 4939 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { |
| 4940 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4940 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4941 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly
TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, | 4941 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly
TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, |
| 4942 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4942 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4943 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 4943 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
| 4944 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 4944 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
| 4945 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, | 4945 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, |
| 4946 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 4946 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5339 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 5339 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 5340 return wrapper; | 5340 return wrapper; |
| 5341 } | 5341 } |
| 5342 | 5342 |
| 5343 void V8TestObjectPython::derefObject(void* object) | 5343 void V8TestObjectPython::derefObject(void* object) |
| 5344 { | 5344 { |
| 5345 fromInternalPointer(object)->deref(); | 5345 fromInternalPointer(object)->deref(); |
| 5346 } | 5346 } |
| 5347 | 5347 |
| 5348 } // namespace WebCore | 5348 } // namespace WebCore |
| OLD | NEW |