| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 #if ENABLE(Condition11) || ENABLE(Condition12) | 269 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 270 static void supplementalStaticAttrAttributeGetterCallback(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) | 270 static void supplementalStaticAttrAttributeGetterCallback(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 271 { | 271 { |
| 272 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 272 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 273 TestInterfaceV8Internal::supplementalStaticAttrAttributeGetter(name, info); | 273 TestInterfaceV8Internal::supplementalStaticAttrAttributeGetter(name, info); |
| 274 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 274 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 275 } | 275 } |
| 276 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 276 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 277 | 277 |
| 278 #if ENABLE(Condition11) || ENABLE(Condition12) | 278 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 279 | |
| 280 static void supplementalStaticAttrAttributeSetter(v8::Local<v8::String> name, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 279 static void supplementalStaticAttrAttributeSetter(v8::Local<v8::String> name, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 281 { | 280 { |
| 282 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 281 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 283 TestPartialInterface::setSupplementalStaticAttr(cppValue); | 282 TestPartialInterface::setSupplementalStaticAttr(cppValue); |
| 284 } | 283 } |
| 285 | |
| 286 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 284 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 287 | 285 |
| 288 #if ENABLE(Condition11) || ENABLE(Condition12) | 286 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 289 | |
| 290 static void supplementalStaticAttrAttributeSetterCallback(v8::Local<v8::String>
name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 287 static void supplementalStaticAttrAttributeSetterCallback(v8::Local<v8::String>
name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 291 { | 288 { |
| 292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 293 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(name, jsValue
, info); | 290 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(name, jsValue
, info); |
| 294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 295 } | 292 } |
| 296 | |
| 297 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 293 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 298 | 294 |
| 299 #if ENABLE(Condition11) || ENABLE(Condition12) | 295 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 300 static void supplementalStr1AttributeGetter(v8::Local<v8::String> name, const v8
::PropertyCallbackInfo<v8::Value>& info) | 296 static void supplementalStr1AttributeGetter(v8::Local<v8::String> name, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 301 { | 297 { |
| 302 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 298 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 303 v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(imp), in
fo.GetIsolate()); | 299 v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(imp), in
fo.GetIsolate()); |
| 304 } | 300 } |
| 305 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 301 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 306 | 302 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 324 #if ENABLE(Condition11) || ENABLE(Condition12) | 320 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 325 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) | 321 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 326 { | 322 { |
| 327 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 323 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 328 TestInterfaceV8Internal::supplementalStr2AttributeGetter(name, info); | 324 TestInterfaceV8Internal::supplementalStr2AttributeGetter(name, info); |
| 329 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 325 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 330 } | 326 } |
| 331 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 327 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 332 | 328 |
| 333 #if ENABLE(Condition11) || ENABLE(Condition12) | 329 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 334 | |
| 335 static void supplementalStr2AttributeSetter(v8::Local<v8::String> name, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 330 static void supplementalStr2AttributeSetter(v8::Local<v8::String> name, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 336 { | 331 { |
| 337 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 332 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 338 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 333 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 339 TestPartialInterface::setSupplementalStr2(imp, cppValue); | 334 TestPartialInterface::setSupplementalStr2(imp, cppValue); |
| 340 } | 335 } |
| 341 | |
| 342 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 336 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 343 | 337 |
| 344 #if ENABLE(Condition11) || ENABLE(Condition12) | 338 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 345 | |
| 346 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 339 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 347 { | 340 { |
| 348 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 341 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 349 TestInterfaceV8Internal::supplementalStr2AttributeSetter(name, jsValue, info
); | 342 TestInterfaceV8Internal::supplementalStr2AttributeSetter(name, jsValue, info
); |
| 350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 343 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 351 } | 344 } |
| 352 | |
| 353 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 345 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 354 | 346 |
| 355 #if ENABLE(Condition11) || ENABLE(Condition12) | 347 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 356 static void supplementalStr3AttributeGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) | 348 static void supplementalStr3AttributeGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 357 { | 349 { |
| 358 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 359 V8TestInterface::supplementalStr3AttributeGetterCustom(name, info); | 351 V8TestInterface::supplementalStr3AttributeGetterCustom(name, info); |
| 360 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 361 } | 353 } |
| 362 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 354 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 363 | 355 |
| 364 #if ENABLE(Condition11) || ENABLE(Condition12) | 356 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 365 | |
| 366 static void supplementalStr3AttributeSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 357 static void supplementalStr3AttributeSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 367 { | 358 { |
| 368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 359 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 369 V8TestInterface::supplementalStr3AttributeSetterCustom(name, jsValue, info); | 360 V8TestInterface::supplementalStr3AttributeSetterCustom(name, jsValue, info); |
| 370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 361 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 371 } | 362 } |
| 372 | |
| 373 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 363 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 374 | 364 |
| 375 #if ENABLE(Condition11) || ENABLE(Condition12) | 365 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 376 static void supplementalNodeAttributeGetter(v8::Local<v8::String> name, const v8
::PropertyCallbackInfo<v8::Value>& info) | 366 static void supplementalNodeAttributeGetter(v8::Local<v8::String> name, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 377 { | 367 { |
| 378 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 368 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 379 v8SetReturnValueFast(info, TestPartialInterface::supplementalNode(imp), imp)
; | 369 v8SetReturnValueFast(info, TestPartialInterface::supplementalNode(imp), imp)
; |
| 380 } | 370 } |
| 381 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 371 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 382 | 372 |
| 383 #if ENABLE(Condition11) || ENABLE(Condition12) | 373 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 384 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) | 374 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 385 { | 375 { |
| 386 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 376 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 387 TestInterfaceV8Internal::supplementalNodeAttributeGetter(name, info); | 377 TestInterfaceV8Internal::supplementalNodeAttributeGetter(name, info); |
| 388 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 389 } | 379 } |
| 390 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 380 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 391 | 381 |
| 392 #if ENABLE(Condition11) || ENABLE(Condition12) | 382 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 393 | |
| 394 static void supplementalNodeAttributeSetter(v8::Local<v8::String> name, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 383 static void supplementalNodeAttributeSetter(v8::Local<v8::String> name, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 395 { | 384 { |
| 396 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 385 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 397 V8TRYCATCH_VOID(Node*, cppValue, V8Node::HasInstance(jsValue, info.GetIsolat
e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca
st(jsValue)) : 0); | 386 V8TRYCATCH_VOID(Node*, cppValue, V8Node::HasInstance(jsValue, info.GetIsolat
e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca
st(jsValue)) : 0); |
| 398 TestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue)); | 387 TestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue)); |
| 399 } | 388 } |
| 400 | |
| 401 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 389 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 402 | 390 |
| 403 #if ENABLE(Condition11) || ENABLE(Condition12) | 391 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 404 | |
| 405 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 392 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 406 { | 393 { |
| 407 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 408 TestInterfaceV8Internal::supplementalNodeAttributeSetter(name, jsValue, info
); | 395 TestInterfaceV8Internal::supplementalNodeAttributeSetter(name, jsValue, info
); |
| 409 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 410 } | 397 } |
| 411 | |
| 412 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 398 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 413 | 399 |
| 414 #if ENABLE(Condition11) || ENABLE(Condition12) | 400 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 415 static void Node13AttributeGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) | 401 static void Node13AttributeGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) |
| 416 { | 402 { |
| 417 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 403 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 418 v8SetReturnValueFast(info, TestPartialInterface::node13(imp), imp); | 404 v8SetReturnValueFast(info, TestPartialInterface::node13(imp), imp); |
| 419 } | 405 } |
| 420 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 406 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 421 | 407 |
| 422 #if ENABLE(Condition11) || ENABLE(Condition12) | 408 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 423 static void Node13AttributeGetterCallback(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) | 409 static void Node13AttributeGetterCallback(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) |
| 424 { | 410 { |
| 425 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 411 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 426 TestInterfaceV8Internal::Node13AttributeGetter(name, info); | 412 TestInterfaceV8Internal::Node13AttributeGetter(name, info); |
| 427 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 413 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 428 } | 414 } |
| 429 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 415 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 430 | 416 |
| 431 #if ENABLE(Condition11) || ENABLE(Condition12) | 417 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 432 | |
| 433 static void Node13AttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 418 static void Node13AttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 434 { | 419 { |
| 435 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 420 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 436 V8TRYCATCH_VOID(Node*, cppValue, V8Node::HasInstance(jsValue, info.GetIsolat
e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca
st(jsValue)) : 0); | 421 V8TRYCATCH_VOID(Node*, cppValue, V8Node::HasInstance(jsValue, info.GetIsolat
e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca
st(jsValue)) : 0); |
| 437 TestPartialInterface::setNode13(imp, WTF::getPtr(cppValue)); | 422 TestPartialInterface::setNode13(imp, WTF::getPtr(cppValue)); |
| 438 } | 423 } |
| 439 | |
| 440 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 424 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 441 | 425 |
| 442 #if ENABLE(Condition11) || ENABLE(Condition12) | 426 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 443 | |
| 444 static void Node13AttributeSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 427 static void Node13AttributeSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 445 { | 428 { |
| 446 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 429 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 447 TestInterfaceV8Internal::Node13AttributeSetter(name, jsValue, info); | 430 TestInterfaceV8Internal::Node13AttributeSetter(name, jsValue, info); |
| 448 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 431 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 449 } | 432 } |
| 450 | |
| 451 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 433 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 452 | 434 |
| 453 #if ENABLE(Condition11) || ENABLE(Condition12) | 435 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 454 static void Node14AttributeGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) | 436 static void Node14AttributeGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) |
| 455 { | 437 { |
| 456 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 438 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 457 v8SetReturnValueFast(info, TestPartialInterface::node14(imp), imp); | 439 v8SetReturnValueFast(info, TestPartialInterface::node14(imp), imp); |
| 458 } | 440 } |
| 459 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 441 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 460 | 442 |
| 461 #if ENABLE(Condition11) || ENABLE(Condition12) | 443 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 462 static void Node14AttributeGetterCallback(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) | 444 static void Node14AttributeGetterCallback(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) |
| 463 { | 445 { |
| 464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 446 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 465 TestInterfaceV8Internal::Node14AttributeGetter(name, info); | 447 TestInterfaceV8Internal::Node14AttributeGetter(name, info); |
| 466 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 448 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 467 } | 449 } |
| 468 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 450 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 469 | 451 |
| 470 #if ENABLE(Condition11) || ENABLE(Condition12) | 452 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 471 | |
| 472 static void Node14AttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 453 static void Node14AttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 473 { | 454 { |
| 474 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 455 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 475 V8TRYCATCH_VOID(Node*, cppValue, V8Node::HasInstance(jsValue, info.GetIsolat
e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca
st(jsValue)) : 0); | 456 V8TRYCATCH_VOID(Node*, cppValue, V8Node::HasInstance(jsValue, info.GetIsolat
e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca
st(jsValue)) : 0); |
| 476 TestPartialInterface::setNode14(imp, WTF::getPtr(cppValue)); | 457 TestPartialInterface::setNode14(imp, WTF::getPtr(cppValue)); |
| 477 } | 458 } |
| 478 | |
| 479 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 459 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 480 | 460 |
| 481 #if ENABLE(Condition11) || ENABLE(Condition12) | 461 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 482 | |
| 483 static void Node14AttributeSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 462 static void Node14AttributeSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 484 { | 463 { |
| 485 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 486 TestInterfaceV8Internal::Node14AttributeSetter(name, jsValue, info); | 465 TestInterfaceV8Internal::Node14AttributeSetter(name, jsValue, info); |
| 487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 466 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 488 } | 467 } |
| 489 | |
| 490 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 468 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 491 | 469 |
| 492 #if ENABLE(Condition11) || ENABLE(Condition12) | 470 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 493 static void Node15AttributeGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) | 471 static void Node15AttributeGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) |
| 494 { | 472 { |
| 495 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 473 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 496 v8SetReturnValueFast(info, TestPartialInterface::node15(imp), imp); | 474 v8SetReturnValueFast(info, TestPartialInterface::node15(imp), imp); |
| 497 } | 475 } |
| 498 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 476 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 499 | 477 |
| 500 #if ENABLE(Condition11) || ENABLE(Condition12) | 478 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 501 static void Node15AttributeGetterCallback(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) | 479 static void Node15AttributeGetterCallback(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) |
| 502 { | 480 { |
| 503 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 481 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 504 TestInterfaceV8Internal::Node15AttributeGetter(name, info); | 482 TestInterfaceV8Internal::Node15AttributeGetter(name, info); |
| 505 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 506 } | 484 } |
| 507 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 485 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 508 | 486 |
| 509 #if ENABLE(Condition11) || ENABLE(Condition12) | 487 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 510 | |
| 511 static void Node15AttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 488 static void Node15AttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 512 { | 489 { |
| 513 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 490 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 514 V8TRYCATCH_VOID(Node*, cppValue, V8Node::HasInstance(jsValue, info.GetIsolat
e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca
st(jsValue)) : 0); | 491 V8TRYCATCH_VOID(Node*, cppValue, V8Node::HasInstance(jsValue, info.GetIsolat
e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca
st(jsValue)) : 0); |
| 515 TestPartialInterface::setNode15(imp, WTF::getPtr(cppValue)); | 492 TestPartialInterface::setNode15(imp, WTF::getPtr(cppValue)); |
| 516 } | 493 } |
| 517 | |
| 518 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 494 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 519 | 495 |
| 520 #if ENABLE(Condition11) || ENABLE(Condition12) | 496 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 521 | |
| 522 static void Node15AttributeSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 497 static void Node15AttributeSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 523 { | 498 { |
| 524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 499 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 525 TestInterfaceV8Internal::Node15AttributeSetter(name, jsValue, info); | 500 TestInterfaceV8Internal::Node15AttributeSetter(name, jsValue, info); |
| 526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 501 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 527 } | 502 } |
| 528 | |
| 529 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 503 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 530 | 504 |
| 531 static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 505 static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) |
| 532 { | 506 { |
| 533 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 507 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
| 534 TestImplements::implementsMethod1(imp); | 508 TestImplements::implementsMethod1(imp); |
| 535 | 509 |
| 536 return; | 510 return; |
| 537 } | 511 } |
| 538 | 512 |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 } | 962 } |
| 989 | 963 |
| 990 void V8TestInterface::derefObject(void* object) | 964 void V8TestInterface::derefObject(void* object) |
| 991 { | 965 { |
| 992 fromInternalPointer(object)->deref(); | 966 fromInternalPointer(object)->deref(); |
| 993 } | 967 } |
| 994 | 968 |
| 995 } // namespace WebCore | 969 } // namespace WebCore |
| 996 | 970 |
| 997 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 971 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |