| 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 #if ENABLE(Condition11) || ENABLE(Condition12) | 526 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 527 static void Node15AttributeSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 527 static void Node15AttributeSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 528 { | 528 { |
| 529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 530 TestInterfaceV8Internal::Node15AttributeSetter(name, jsValue, info); | 530 TestInterfaceV8Internal::Node15AttributeSetter(name, jsValue, info); |
| 531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 532 } | 532 } |
| 533 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 533 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 534 | 534 |
| 535 static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 535 static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 536 { | 536 { |
| 537 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 537 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 538 TestImplements::implementsMethod1(imp); | 538 TestImplements::implementsMethod1(imp); |
| 539 } | 539 } |
| 540 | 540 |
| 541 static void implementsMethod1MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 541 static void implementsMethod1MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 542 { | 542 { |
| 543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 544 TestInterfaceV8Internal::implementsMethod1Method(args); | 544 TestInterfaceV8Internal::implementsMethod1Method(info); |
| 545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 546 } | 546 } |
| 547 | 547 |
| 548 static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 548 static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 549 { | 549 { |
| 550 if (UNLIKELY(args.Length() < 2)) { | 550 if (UNLIKELY(info.Length() < 2)) { |
| 551 throwTypeError(ExceptionMessages::failedToExecute("implementsMethod2", "
TestInterface", ExceptionMessages::notEnoughArguments(2, args.Length())), args.G
etIsolate()); | 551 throwTypeError(ExceptionMessages::failedToExecute("implementsMethod2", "
TestInterface", ExceptionMessages::notEnoughArguments(2, info.Length())), info.G
etIsolate()); |
| 552 return; | 552 return; |
| 553 } | 553 } |
| 554 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 554 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 555 ExceptionState es(args.GetIsolate()); | 555 ExceptionState es(info.GetIsolate()); |
| 556 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); | 556 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); |
| 557 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); | 557 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(info[1], info.Ge
tIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(info[1])) : 0); |
| 558 ExecutionContext* scriptContext = getExecutionContext(); | 558 ExecutionContext* scriptContext = getExecutionContext(); |
| 559 RefPtr<TestObj> result = TestImplements::implementsMethod2(scriptContext, im
p, strArg, objArg, es); | 559 RefPtr<TestObj> result = TestImplements::implementsMethod2(scriptContext, im
p, strArg, objArg, es); |
| 560 if (es.throwIfNeeded()) | 560 if (es.throwIfNeeded()) |
| 561 return; | 561 return; |
| 562 v8SetReturnValue(args, result.release()); | 562 v8SetReturnValue(info, result.release()); |
| 563 } | 563 } |
| 564 | 564 |
| 565 static void implementsMethod2MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 565 static void implementsMethod2MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 566 { | 566 { |
| 567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 568 TestInterfaceV8Internal::implementsMethod2Method(args); | 568 TestInterfaceV8Internal::implementsMethod2Method(info); |
| 569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 570 } | 570 } |
| 571 | 571 |
| 572 static void implementsMethod3MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 572 static void implementsMethod3MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 573 { | 573 { |
| 574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 575 V8TestInterface::implementsMethod3MethodCustom(args); | 575 V8TestInterface::implementsMethod3MethodCustom(info); |
| 576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 577 } | 577 } |
| 578 | 578 |
| 579 static void implementsMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 579 static void implementsMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 580 { | 580 { |
| 581 TestImplements::implementsMethod4(); | 581 TestImplements::implementsMethod4(); |
| 582 } | 582 } |
| 583 | 583 |
| 584 static void implementsMethod4MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 584 static void implementsMethod4MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 585 { | 585 { |
| 586 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 586 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 587 TestInterfaceV8Internal::implementsMethod4Method(args); | 587 TestInterfaceV8Internal::implementsMethod4Method(info); |
| 588 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 588 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 589 } | 589 } |
| 590 | 590 |
| 591 #if ENABLE(Condition11) || ENABLE(Condition12) | 591 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 592 | 592 |
| 593 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>&
args) | 593 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 594 { | 594 { |
| 595 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 595 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 596 TestPartialInterface::supplementalMethod1(imp); | 596 TestPartialInterface::supplementalMethod1(imp); |
| 597 } | 597 } |
| 598 | 598 |
| 599 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 599 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 600 | 600 |
| 601 #if ENABLE(Condition11) || ENABLE(Condition12) | 601 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 602 | 602 |
| 603 static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 603 static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 604 { | 604 { |
| 605 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 605 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 606 TestInterfaceV8Internal::supplementalMethod1Method(args); | 606 TestInterfaceV8Internal::supplementalMethod1Method(info); |
| 607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 608 } | 608 } |
| 609 | 609 |
| 610 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 610 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 611 | 611 |
| 612 #if ENABLE(Condition11) || ENABLE(Condition12) | 612 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 613 | 613 |
| 614 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
args) | 614 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 615 { | 615 { |
| 616 if (UNLIKELY(args.Length() < 2)) { | 616 if (UNLIKELY(info.Length() < 2)) { |
| 617 throwTypeError(ExceptionMessages::failedToExecute("supplementalMethod2",
"TestInterface", ExceptionMessages::notEnoughArguments(2, args.Length())), args
.GetIsolate()); | 617 throwTypeError(ExceptionMessages::failedToExecute("supplementalMethod2",
"TestInterface", ExceptionMessages::notEnoughArguments(2, info.Length())), info
.GetIsolate()); |
| 618 return; | 618 return; |
| 619 } | 619 } |
| 620 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 620 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 621 ExceptionState es(args.GetIsolate()); | 621 ExceptionState es(info.GetIsolate()); |
| 622 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); | 622 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); |
| 623 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); | 623 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(info[1], info.Ge
tIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(info[1])) : 0); |
| 624 ExecutionContext* scriptContext = getExecutionContext(); | 624 ExecutionContext* scriptContext = getExecutionContext(); |
| 625 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon
text, imp, strArg, objArg, es); | 625 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon
text, imp, strArg, objArg, es); |
| 626 if (es.throwIfNeeded()) | 626 if (es.throwIfNeeded()) |
| 627 return; | 627 return; |
| 628 v8SetReturnValue(args, result.release()); | 628 v8SetReturnValue(info, result.release()); |
| 629 } | 629 } |
| 630 | 630 |
| 631 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 631 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 632 | 632 |
| 633 #if ENABLE(Condition11) || ENABLE(Condition12) | 633 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 634 | 634 |
| 635 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 635 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 636 { | 636 { |
| 637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 638 TestInterfaceV8Internal::supplementalMethod2Method(args); | 638 TestInterfaceV8Internal::supplementalMethod2Method(info); |
| 639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 640 } | 640 } |
| 641 | 641 |
| 642 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 642 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 643 | 643 |
| 644 #if ENABLE(Condition11) || ENABLE(Condition12) | 644 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 645 | 645 |
| 646 static void supplementalMethod3MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 646 static void supplementalMethod3MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 647 { | 647 { |
| 648 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 648 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 649 V8TestInterface::supplementalMethod3MethodCustom(args); | 649 V8TestInterface::supplementalMethod3MethodCustom(info); |
| 650 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 650 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 651 } | 651 } |
| 652 | 652 |
| 653 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 653 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 654 | 654 |
| 655 #if ENABLE(Condition11) || ENABLE(Condition12) | 655 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 656 | 656 |
| 657 static void supplementalMethod4Method(const v8::FunctionCallbackInfo<v8::Value>&
args) | 657 static void supplementalMethod4Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 658 { | 658 { |
| 659 TestPartialInterface::supplementalMethod4(); | 659 TestPartialInterface::supplementalMethod4(); |
| 660 } | 660 } |
| 661 | 661 |
| 662 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 662 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 663 | 663 |
| 664 #if ENABLE(Condition11) || ENABLE(Condition12) | 664 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 665 | 665 |
| 666 static void supplementalMethod4MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 666 static void supplementalMethod4MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 667 { | 667 { |
| 668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 669 TestInterfaceV8Internal::supplementalMethod4Method(args); | 669 TestInterfaceV8Internal::supplementalMethod4Method(info); |
| 670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 671 } | 671 } |
| 672 | 672 |
| 673 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 673 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 674 | 674 |
| 675 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) | 675 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 676 { | 676 { |
| 677 if (UNLIKELY(args.Length() < 1)) { | 677 if (UNLIKELY(info.Length() < 1)) { |
| 678 throwTypeError(ExceptionMessages::failedToExecute("Constructor", "TestIn
terface", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsol
ate()); | 678 throwTypeError(ExceptionMessages::failedToExecute("Constructor", "TestIn
terface", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsol
ate()); |
| 679 return; | 679 return; |
| 680 } | 680 } |
| 681 ExceptionState es(args.GetIsolate()); | 681 ExceptionState es(info.GetIsolate()); |
| 682 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, args[0]); | 682 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, info[0]); |
| 683 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]); | 683 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, info[1]); |
| 684 | 684 |
| 685 ExecutionContext* context = getExecutionContext(); | 685 ExecutionContext* context = getExecutionContext(); |
| 686 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, es); | 686 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, es); |
| 687 v8::Handle<v8::Object> wrapper = args.Holder(); | 687 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 688 if (es.throwIfNeeded()) | 688 if (es.throwIfNeeded()) |
| 689 return; | 689 return; |
| 690 | 690 |
| 691 V8DOMWrapper::associateObjectWithWrapper<V8TestInterface>(impl.release(), &V
8TestInterface::wrapperTypeInfo, wrapper, args.GetIsolate(), WrapperConfiguratio
n::Dependent); | 691 V8DOMWrapper::associateObjectWithWrapper<V8TestInterface>(impl.release(), &V
8TestInterface::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguratio
n::Dependent); |
| 692 args.GetReturnValue().Set(wrapper); | 692 info.GetReturnValue().Set(wrapper); |
| 693 } | 693 } |
| 694 | 694 |
| 695 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) | 695 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) |
| 696 { | 696 { |
| 697 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 697 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
| 698 return; | 698 return; |
| 699 if (info.Holder()->HasRealNamedCallbackProperty(name)) | 699 if (info.Holder()->HasRealNamedCallbackProperty(name)) |
| 700 return; | 700 return; |
| 701 if (info.Holder()->HasRealNamedProperty(name)) | 701 if (info.Holder()->HasRealNamedProperty(name)) |
| 702 return; | 702 return; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 {"implementsMethod1", TestInterfaceV8Internal::implementsMethod1MethodCallba
ck, 0, 0}, | 817 {"implementsMethod1", TestInterfaceV8Internal::implementsMethod1MethodCallba
ck, 0, 0}, |
| 818 {"implementsMethod3", TestInterfaceV8Internal::implementsMethod3MethodCallba
ck, 0, 0}, | 818 {"implementsMethod3", TestInterfaceV8Internal::implementsMethod3MethodCallba
ck, 0, 0}, |
| 819 #if ENABLE(Condition11) || ENABLE(Condition12) | 819 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 820 {"supplementalMethod1", TestInterfaceV8Internal::supplementalMethod1MethodCa
llback, 0, 0}, | 820 {"supplementalMethod1", TestInterfaceV8Internal::supplementalMethod1MethodCa
llback, 0, 0}, |
| 821 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 821 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 822 #if ENABLE(Condition11) || ENABLE(Condition12) | 822 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 823 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa
llback, 0, 0}, | 823 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa
llback, 0, 0}, |
| 824 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 824 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 825 }; | 825 }; |
| 826 | 826 |
| 827 void V8TestInterface::constructorCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& args) | 827 void V8TestInterface::constructorCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 828 { | 828 { |
| 829 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); | 829 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); |
| 830 if (!args.IsConstructCall()) { | 830 if (!info.IsConstructCall()) { |
| 831 throwTypeError(ExceptionMessages::failedToConstruct("TestInterface", "Pl
ease use the 'new' operator, this DOM object constructor cannot be called as a f
unction."), args.GetIsolate()); | 831 throwTypeError(ExceptionMessages::failedToConstruct("TestInterface", "Pl
ease use the 'new' operator, this DOM object constructor cannot be called as a f
unction."), info.GetIsolate()); |
| 832 return; | 832 return; |
| 833 } | 833 } |
| 834 | 834 |
| 835 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { | 835 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { |
| 836 args.GetReturnValue().Set(args.Holder()); | 836 info.GetReturnValue().Set(info.Holder()); |
| 837 return; | 837 return; |
| 838 } | 838 } |
| 839 | 839 |
| 840 TestInterfaceV8Internal::constructor(args); | 840 TestInterfaceV8Internal::constructor(info); |
| 841 } | 841 } |
| 842 | 842 |
| 843 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8::Han
dle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWo
rldType) | 843 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8::Han
dle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWo
rldType) |
| 844 { | 844 { |
| 845 desc->ReadOnlyPrototype(); | 845 desc->ReadOnlyPrototype(); |
| 846 | 846 |
| 847 v8::Local<v8::Signature> defaultSignature; | 847 v8::Local<v8::Signature> defaultSignature; |
| 848 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestIn
terface", v8::Local<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount
, | 848 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestIn
terface", v8::Local<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount
, |
| 849 V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttributes), | 849 V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttributes), |
| 850 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods), | 850 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods), |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 } | 985 } |
| 986 | 986 |
| 987 void V8TestInterface::derefObject(void* object) | 987 void V8TestInterface::derefObject(void* object) |
| 988 { | 988 { |
| 989 fromInternalPointer(object)->deref(); | 989 fromInternalPointer(object)->deref(); |
| 990 } | 990 } |
| 991 | 991 |
| 992 } // namespace WebCore | 992 } // namespace WebCore |
| 993 | 993 |
| 994 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 994 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |