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

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

Issue 1185843010: bindings: Moves custom getters/setters to the prototype chain. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/tests/results/core/V8TestObject.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 2574 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 } 2585 }
2586 2586
2587 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeAttributeS etterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::Prope rtyCallbackInfo<void>& info) 2587 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeAttributeS etterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::Prope rtyCallbackInfo<void>& info)
2588 { 2588 {
2589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2590 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::FeatureName); 2590 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::FeatureName);
2591 TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstructorAttri buteAttributeSetter(v8Value, info); 2591 TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstructorAttri buteAttributeSetter(v8Value, info);
2592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2593 } 2593 }
2594 2594
2595 static void customObjectAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 2595 static void customObjectAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
2596 { 2596 {
2597 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2597 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2598 V8TestObject::customObjectAttributeAttributeGetterCustom(info); 2598 V8TestObject::customObjectAttributeAttributeGetterCustom(info);
2599 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2599 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2600 } 2600 }
2601 2601
2602 static void customObjectAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2602 static void customObjectAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
2603 { 2603 {
2604 v8::Local<v8::Value> v8Value = info[0];
2604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2605 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2605 V8TestObject::customObjectAttributeAttributeSetterCustom(v8Value, info); 2606 V8TestObject::customObjectAttributeAttributeSetterCustom(v8Value, info);
2606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2607 } 2608 }
2608 2609
2609 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info) 2610 static void customGetterLongAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
2610 { 2611 {
2611 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2612 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2612 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); 2613 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info);
2613 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2614 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2614 } 2615 }
2615 2616
2616 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 2617 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
2617 { 2618 {
2618 v8::Local<v8::Object> holder = info.Holder(); 2619 v8::Local<v8::Object> holder = info.Holder();
2619 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo ngAttribute", "TestObject", holder, info.GetIsolate()); 2620 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo ngAttribute", "TestObject", holder, info.GetIsolate());
2620 TestObject* impl = V8TestObject::toImpl(holder); 2621 TestObject* impl = V8TestObject::toImpl(holder);
2621 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2622 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2622 if (exceptionState.throwIfNeeded()) 2623 if (exceptionState.throwIfNeeded())
2623 return; 2624 return;
2624 impl->setCustomGetterLongAttribute(cppValue); 2625 impl->setCustomGetterLongAttribute(cppValue);
2625 } 2626 }
2626 2627
2627 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2628 static void customGetterLongAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
2628 { 2629 {
2630 v8::Local<v8::Value> v8Value = info[0];
2629 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2631 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2630 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info ); 2632 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info );
2631 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2633 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2632 } 2634 }
2633 2635
2634 static void customGetterReadonlyObjectAttributeAttributeGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2636 static void customGetterReadonlyObjectAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
2635 { 2637 {
2636 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2637 V8TestObject::customGetterReadonlyObjectAttributeAttributeGetterCustom(info) ; 2639 V8TestObject::customGetterReadonlyObjectAttributeAttributeGetterCustom(info) ;
2638 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2639 } 2641 }
2640 2642
2641 static void customSetterLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2643 static void customSetterLongAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
2642 { 2644 {
2643 v8::Local<v8::Object> holder = info.Holder(); 2645 v8::Local<v8::Object> holder = info.Holder();
2644 TestObject* impl = V8TestObject::toImpl(holder); 2646 TestObject* impl = V8TestObject::toImpl(holder);
2645 v8SetReturnValueInt(info, impl->customSetterLongAttribute()); 2647 v8SetReturnValueInt(info, impl->customSetterLongAttribute());
2646 } 2648 }
2647 2649
2648 static void customSetterLongAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info) 2650 static void customSetterLongAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
2649 { 2651 {
2650 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2652 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2651 TestObjectV8Internal::customSetterLongAttributeAttributeGetter(info); 2653 TestObjectV8Internal::customSetterLongAttributeAttributeGetter(info);
2652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2653 } 2655 }
2654 2656
2655 static void customSetterLongAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2657 static void customSetterLongAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
2656 { 2658 {
2659 v8::Local<v8::Value> v8Value = info[0];
2657 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2658 V8TestObject::customSetterLongAttributeAttributeSetterCustom(v8Value, info); 2661 V8TestObject::customSetterLongAttributeAttributeSetterCustom(v8Value, info);
2659 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2660 } 2663 }
2661 2664
2662 #if ENABLE(CONDITION) 2665 #if ENABLE(CONDITION)
2663 static void customLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 2666 static void customLongAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
2664 { 2667 {
2665 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2666 V8TestObject::customLongAttributeAttributeGetterCustom(info); 2669 V8TestObject::customLongAttributeAttributeGetterCustom(info);
2667 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2668 } 2671 }
2669 #endif // ENABLE(CONDITION) 2672 #endif // ENABLE(CONDITION)
2670 2673
2671 #if ENABLE(CONDITION) 2674 #if ENABLE(CONDITION)
2672 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2675 static void customLongAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
2673 { 2676 {
2677 v8::Local<v8::Value> v8Value = info[0];
2674 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2678 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2675 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info); 2679 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info);
2676 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2680 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2677 } 2681 }
2678 #endif // ENABLE(CONDITION) 2682 #endif // ENABLE(CONDITION)
2679 2683
2680 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info) 2684 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info)
2681 { 2685 {
2682 v8::Local<v8::Object> holder = info.Holder(); 2686 v8::Local<v8::Object> holder = info.Holder();
2683 TestObject* impl = V8TestObject::toImpl(holder); 2687 TestObject* impl = V8TestObject::toImpl(holder);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
2818 } 2822 }
2819 2823
2820 static void implementedAsLongAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info) 2824 static void implementedAsLongAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
2821 { 2825 {
2822 v8::Local<v8::Value> v8Value = info[0]; 2826 v8::Local<v8::Value> v8Value = info[0];
2823 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2827 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2824 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o); 2828 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o);
2825 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2829 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2826 } 2830 }
2827 2831
2828 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8 ::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2832 static void customImplementedAsLongAttributeAttributeGetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
2829 { 2833 {
2830 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2834 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2831 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info); 2835 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info);
2832 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2836 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2833 } 2837 }
2834 2838
2835 static void customImplementedAsLongAttributeAttributeSetterCallback(v8::Local<v8 ::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 2839 static void customImplementedAsLongAttributeAttributeSetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
2836 { 2840 {
2841 v8::Local<v8::Value> v8Value = info[0];
2837 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2838 V8TestObject::customImplementedAsLongAttributeAttributeSetterCustom(v8Value, info); 2843 V8TestObject::customImplementedAsLongAttributeAttributeSetterCustom(v8Value, info);
2839 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2844 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2840 } 2845 }
2841 2846
2842 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2847 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2843 { 2848 {
2844 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2849 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2845 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in fo); 2850 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in fo);
2846 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2851 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2847 } 2852 }
2848 2853
2849 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2854 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2850 { 2855 {
2851 v8::Local<v8::Object> holder = info.Holder(); 2856 v8::Local<v8::Object> holder = info.Holder();
2852 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); 2857 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObject", holder, info.GetIsolate());
2853 TestObject* impl = V8TestObject::toImpl(holder); 2858 TestObject* impl = V8TestObject::toImpl(holder);
2854 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2859 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2855 if (exceptionState.throwIfNeeded()) 2860 if (exceptionState.throwIfNeeded())
2856 return; 2861 return;
2857 impl->setImplementedAsNameWithCustomGetter(cppValue); 2862 impl->setImplementedAsNameWithCustomGetter(cppValue);
2858 } 2863 }
2859 2864
2860 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2865 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2861 { 2866 {
2867 v8::Local<v8::Value> v8Value = info[0];
2862 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2868 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2863 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter( v8Value, info); 2869 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter( v8Value, info);
2864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2870 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2865 } 2871 }
2866 2872
2867 static void customSetterImplementedAsLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 2873 static void customSetterImplementedAsLongAttributeAttributeGetter(const v8::Func tionCallbackInfo<v8::Value>& info)
2868 { 2874 {
2869 v8::Local<v8::Object> holder = info.Holder(); 2875 v8::Local<v8::Object> holder = info.Holder();
2870 TestObject* impl = V8TestObject::toImpl(holder); 2876 TestObject* impl = V8TestObject::toImpl(holder);
2871 v8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter()); 2877 v8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter());
2872 } 2878 }
2873 2879
2874 static void customSetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2880 static void customSetterImplementedAsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2875 { 2881 {
2876 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2882 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2877 TestObjectV8Internal::customSetterImplementedAsLongAttributeAttributeGetter( info); 2883 TestObjectV8Internal::customSetterImplementedAsLongAttributeAttributeGetter( info);
2878 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2884 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2879 } 2885 }
2880 2886
2881 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2887 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2882 { 2888 {
2889 v8::Local<v8::Value> v8Value = info[0];
2883 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2890 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2884 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info); 2891 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info);
2885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2892 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2886 } 2893 }
2887 2894
2888 static void measureAsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) 2895 static void measureAsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
2889 { 2896 {
2890 v8::Local<v8::Object> holder = info.Holder(); 2897 v8::Local<v8::Object> holder = info.Holder();
2891 TestObject* impl = V8TestObject::toImpl(holder); 2898 TestObject* impl = V8TestObject::toImpl(holder);
2892 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); 2899 v8SetReturnValueInt(info, impl->measureAsLongAttribute());
(...skipping 9546 matching lines...) Expand 10 before | Expand all | Expand 10 after
12439 TestObjectV8Internal::namedPropertyEnumerator(info); 12446 TestObjectV8Internal::namedPropertyEnumerator(info);
12440 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 12447 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
12441 } 12448 }
12442 12449
12443 } // namespace TestObjectV8Internal 12450 } // namespace TestObjectV8Internal
12444 12451
12445 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = { 12452 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = {
12446 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback , 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst ance, V8DOMConfiguration::CheckHolder}, 12453 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback , 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst ance, V8DOMConfiguration::CheckHolder},
12447 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguratio n::CheckHolder}, 12454 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguratio n::CheckHolder},
12448 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr uctorAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, 12455 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr uctorAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
12449 {"customObjectAttribute", TestObjectV8Internal::customObjectAttributeAttribu teGetterCallback, TestObjectV8Internal::customObjectAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance, V8DOMConfiguration::CheckHolder},
12450 {"customGetterLongAttribute", TestObjectV8Internal::customGetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customGetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
12451 {"customGetterReadonlyObjectAttribute", TestObjectV8Internal::customGetterRe adonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration ::CheckHolder},
12452 {"customSetterLongAttribute", TestObjectV8Internal::customSetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customSetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
12453 #if ENABLE(CONDITION)
12454 {"customLongAttribute", TestObjectV8Internal::customLongAttributeAttributeGe tterCallback, TestObjectV8Internal::customLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance, V8DOMConfiguration::CheckHolder},
12455 #endif // ENABLE(CONDITION)
12456 {"customImplementedAsLongAttribute", TestObjectV8Internal::customImplemented AsLongAttributeAttributeGetterCallback, TestObjectV8Internal::customImplementedA sLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHol der},
12457 {"customGetterImplementedAsLongAttribute", TestObjectV8Internal::customGette rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom GetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfi guration::CheckHolder},
12458 {"customSetterImplementedAsLongAttribute", TestObjectV8Internal::customSette rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom SetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfi guration::CheckHolder},
12459 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING ), static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder} , 12456 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING ), static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder} ,
12460 }; 12457 };
12461 12458
12462 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = { 12459 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = {
12463 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnPrototype, V8DOMConfiguration::CheckHolder}, 12460 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnPrototype, V8DOMConfiguration::CheckHolder},
12464 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12461 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12465 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio n::CheckHolder}, 12462 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio n::CheckHolder},
12466 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12463 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12467 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder}, 12464 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder},
12468 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype , V8DOMConfiguration::CheckHolder}, 12465 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype , V8DOMConfiguration::CheckHolder},
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
12531 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12528 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12532 {"cachedArrayAttribute", TestObjectV8Internal::cachedArrayAttributeAttribute GetterCallback, TestObjectV8Internal::cachedArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnPrototype, V8DOMConfiguration::CheckHolder}, 12529 {"cachedArrayAttribute", TestObjectV8Internal::cachedArrayAttributeAttribute GetterCallback, TestObjectV8Internal::cachedArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnPrototype, V8DOMConfiguration::CheckHolder},
12533 {"cachedStringOrNoneAttribute", TestObjectV8Internal::cachedStringOrNoneAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedStringOrNoneAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12530 {"cachedStringOrNoneAttribute", TestObjectV8Internal::cachedStringOrNoneAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedStringOrNoneAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12534 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder}, 12531 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder},
12535 {"callWithScriptStateAnyAttribute", TestObjectV8Internal::callWithScriptStat eAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithScriptStateA nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r}, 12532 {"callWithScriptStateAnyAttribute", TestObjectV8Internal::callWithScriptStat eAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithScriptStateA nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r},
12536 {"callWithExecutionContextAndScriptStateAnyAttribute", TestObjectV8Internal: :callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, Test ObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12533 {"callWithExecutionContextAndScriptStateAnyAttribute", TestObjectV8Internal: :callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, Test ObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12537 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp e, V8DOMConfiguration::CheckHolder}, 12534 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp e, V8DOMConfiguration::CheckHolder},
12538 #if ENABLE(CONDITION) 12535 #if ENABLE(CONDITION)
12539 {"conditionalLongAttribute", TestObjectV8Internal::conditionalLongAttributeA ttributeGetterCallback, TestObjectV8Internal::conditionalLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO MConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12536 {"conditionalLongAttribute", TestObjectV8Internal::conditionalLongAttributeA ttributeGetterCallback, TestObjectV8Internal::conditionalLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO MConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12540 #endif // ENABLE(CONDITION) 12537 #endif // ENABLE(CONDITION)
12538 {"customObjectAttribute", TestObjectV8Internal::customObjectAttributeAttribu teGetterCallback, TestObjectV8Internal::customObjectAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnPrototype, V8DOMConfiguration::CheckHolder},
12539 {"customGetterLongAttribute", TestObjectV8Internal::customGetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customGetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12540 {"customGetterReadonlyObjectAttribute", TestObjectV8Internal::customGetterRe adonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio n::CheckHolder},
12541 {"customSetterLongAttribute", TestObjectV8Internal::customSetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customSetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12542 #if ENABLE(CONDITION)
12543 {"customLongAttribute", TestObjectV8Internal::customLongAttributeAttributeGe tterCallback, TestObjectV8Internal::customLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnPrototype, V8DOMConfiguration::CheckHolder},
12544 #endif // ENABLE(CONDITION)
12541 {"customElementsCallbacksReadonlyLongAttribute", TestObjectV8Internal::custo mElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12545 {"customElementsCallbacksReadonlyLongAttribute", TestObjectV8Internal::custo mElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12542 {"deprecatedLongAttribute", TestObjectV8Internal::deprecatedLongAttributeAtt ributeGetterCallback, TestObjectV8Internal::deprecatedLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12546 {"deprecatedLongAttribute", TestObjectV8Internal::deprecatedLongAttributeAtt ributeGetterCallback, TestObjectV8Internal::deprecatedLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12543 {"enforceRangeLongAttribute", TestObjectV8Internal::enforceRangeLongAttribut eAttributeGetterCallback, TestObjectV8Internal::enforceRangeLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12547 {"enforceRangeLongAttribute", TestObjectV8Internal::enforceRangeLongAttribut eAttributeGetterCallback, TestObjectV8Internal::enforceRangeLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12544 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12548 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12545 {"implementedAsLongAttribute", TestObjectV8Internal::implementedAsLongAttrib uteAttributeGetterCallback, TestObjectV8Internal::implementedAsLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12549 {"implementedAsLongAttribute", TestObjectV8Internal::implementedAsLongAttrib uteAttributeGetterCallback, TestObjectV8Internal::implementedAsLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12550 {"customImplementedAsLongAttribute", TestObjectV8Internal::customImplemented AsLongAttributeAttributeGetterCallback, TestObjectV8Internal::customImplementedA sLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHo lder},
12551 {"customGetterImplementedAsLongAttribute", TestObjectV8Internal::customGette rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom GetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder},
12552 {"customSetterImplementedAsLongAttribute", TestObjectV8Internal::customSette rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom SetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder},
12546 {"measureAsLongAttribute", TestObjectV8Internal::measureAsLongAttributeAttri buteGetterCallback, TestObjectV8Internal::measureAsLongAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi guration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12553 {"measureAsLongAttribute", TestObjectV8Internal::measureAsLongAttributeAttri buteGetterCallback, TestObjectV8Internal::measureAsLongAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi guration::OnPrototype, V8DOMConfiguration::CheckHolder},
12547 {"notEnumerableLongAttribute", TestObjectV8Internal::notEnumerableLongAttrib uteAttributeGetterCallback, TestObjectV8Internal::notEnumerableLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12554 {"notEnumerableLongAttribute", TestObjectV8Internal::notEnumerableLongAttrib uteAttributeGetterCallback, TestObjectV8Internal::notEnumerableLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12548 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestObjectV8Internal ::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0, TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttrib uteGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12555 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestObjectV8Internal ::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0, TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttrib uteGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12549 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectV8Internal: :activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSet terCallback, TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttr ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingA ccessPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V 8DOMConfiguration::CheckHolder}, 12556 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectV8Internal: :activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSet terCallback, TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttr ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingA ccessPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V 8DOMConfiguration::CheckHolder},
12550 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttr ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingAccessForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte rnal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttribu teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingAccessForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder}, 12557 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttr ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingAccessForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte rnal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttribu teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingAccessForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder},
12551 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectV8Internal: :activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSet terCallback, TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttr ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingG etterPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V 8DOMConfiguration::CheckHolder}, 12558 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectV8Internal: :activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSet terCallback, TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttr ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingG etterPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V 8DOMConfiguration::CheckHolder},
12552 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttr ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingGetterForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte rnal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttribu teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingGetterForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder}, 12559 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttr ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingGetterForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte rnal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttribu teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingGetterForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder},
12553 {"location", TestObjectV8Internal::locationAttributeGetterCallback, TestObje ctV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration: :CheckHolder}, 12560 {"location", TestObjectV8Internal::locationAttributeGetterCallback, TestObje ctV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration: :CheckHolder},
12554 {"locationWithException", TestObjectV8Internal::locationWithExceptionAttribu teGetterCallback, TestObjectV8Internal::locationWithExceptionAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnPrototype, V8DOMConfiguration::CheckHolder}, 12561 {"locationWithException", TestObjectV8Internal::locationWithExceptionAttribu teGetterCallback, TestObjectV8Internal::locationWithExceptionAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnPrototype, V8DOMConfiguration::CheckHolder},
12555 {"locationWithCallWith", TestObjectV8Internal::locationWithCallWithAttribute GetterCallback, TestObjectV8Internal::locationWithCallWithAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnPrototype, V8DOMConfiguration::CheckHolder}, 12562 {"locationWithCallWith", TestObjectV8Internal::locationWithCallWithAttribute GetterCallback, TestObjectV8Internal::locationWithCallWithAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnPrototype, V8DOMConfiguration::CheckHolder},
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
13590 ScriptState::Scope scope(scriptState); 13597 ScriptState::Scope scope(scriptState);
13591 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13598 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13592 if (holder.IsEmpty()) 13599 if (holder.IsEmpty())
13593 return false; 13600 return false;
13594 13601
13595 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13602 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13596 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13603 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13597 } 13604 }
13598 13605
13599 } // namespace blink 13606 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698