| Index: Source/bindings/tests/results/core/V8TestInterfaceOwnPropertiesDerived.cpp
|
| diff --git a/Source/bindings/tests/results/core/V8TestInterfaceOwnPropertiesDerived.cpp b/Source/bindings/tests/results/core/V8TestInterfaceOwnPropertiesDerived.cpp
|
| index b64506af90dc8ff55a1779b3ab7552769a08cd6b..0a037664b29a2067d4b495003392389447e57396 100644
|
| --- a/Source/bindings/tests/results/core/V8TestInterfaceOwnPropertiesDerived.cpp
|
| +++ b/Source/bindings/tests/results/core/V8TestInterfaceOwnPropertiesDerived.cpp
|
| @@ -37,21 +37,21 @@ const WrapperTypeInfo& TestInterfaceOwnPropertiesDerived::s_wrapperTypeInfo = V8
|
|
|
| namespace TestInterfaceOwnPropertiesDerivedV8Internal {
|
|
|
| -static void noExposeJSAccessorAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| +static void noExposeJSAccessorAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| v8::Local<v8::Object> holder = info.Holder();
|
| TestInterfaceOwnPropertiesDerived* impl = V8TestInterfaceOwnPropertiesDerived::toImpl(holder);
|
| v8SetReturnValueInt(info, impl->noExposeJSAccessorAttribute());
|
| }
|
|
|
| -static void noExposeJSAccessorAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| +static void noExposeJSAccessorAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
|
| TestInterfaceOwnPropertiesDerivedV8Internal::noExposeJSAccessorAttributeAttributeGetter(info);
|
| TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| }
|
|
|
| -static void noExposeJSAccessorAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
|
| +static void noExposeJSAccessorAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| v8::Local<v8::Object> holder = info.Holder();
|
| ExceptionState exceptionState(ExceptionState::SetterContext, "noExposeJSAccessorAttribute", "TestInterfaceOwnPropertiesDerived", holder, info.GetIsolate());
|
| @@ -62,8 +62,9 @@ static void noExposeJSAccessorAttributeAttributeSetter(v8::Local<v8::Value> v8Va
|
| impl->setNoExposeJSAccessorAttribute(cppValue);
|
| }
|
|
|
| -static void noExposeJSAccessorAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
|
| +static void noExposeJSAccessorAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + v8::Local<v8::Value> v8Value = info[0];
|
| TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
|
| TestInterfaceOwnPropertiesDerivedV8Internal::noExposeJSAccessorAttributeAttributeSetter(v8Value, info);
|
| TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| @@ -102,21 +103,21 @@ static void exposeJSAccessorAttributeAttributeSetterCallback(const v8::FunctionC
|
| TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| }
|
|
|
| -static void doNotExposeJSAccessorAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| +static void doNotExposeJSAccessorAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| v8::Local<v8::Object> holder = info.Holder();
|
| TestInterfaceOwnPropertiesDerived* impl = V8TestInterfaceOwnPropertiesDerived::toImpl(holder);
|
| v8SetReturnValueInt(info, impl->doNotExposeJSAccessorAttribute());
|
| }
|
|
|
| -static void doNotExposeJSAccessorAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| +static void doNotExposeJSAccessorAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
|
| TestInterfaceOwnPropertiesDerivedV8Internal::doNotExposeJSAccessorAttributeAttributeGetter(info);
|
| TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| }
|
|
|
| -static void doNotExposeJSAccessorAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
|
| +static void doNotExposeJSAccessorAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| v8::Local<v8::Object> holder = info.Holder();
|
| ExceptionState exceptionState(ExceptionState::SetterContext, "doNotExposeJSAccessorAttribute", "TestInterfaceOwnPropertiesDerived", holder, info.GetIsolate());
|
| @@ -127,8 +128,9 @@ static void doNotExposeJSAccessorAttributeAttributeSetter(v8::Local<v8::Value> v
|
| impl->setDoNotExposeJSAccessorAttribute(cppValue);
|
| }
|
|
|
| -static void doNotExposeJSAccessorAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
|
| +static void doNotExposeJSAccessorAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + v8::Local<v8::Value> v8Value = info[0];
|
| TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
|
| TestInterfaceOwnPropertiesDerivedV8Internal::doNotExposeJSAccessorAttributeAttributeSetter(v8Value, info);
|
| TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| @@ -136,22 +138,10 @@ static void doNotExposeJSAccessorAttributeAttributeSetterCallback(v8::Local<v8::
|
|
|
| } // namespace TestInterfaceOwnPropertiesDerivedV8Internal
|
|
|
| -// Suppress warning: global constructors, because AttributeConfiguration is trivial
|
| -// and does not depend on another global objects.
|
| -#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| -#pragma clang diagnostic push
|
| -#pragma clang diagnostic ignored "-Wglobal-constructors"
|
| -#endif
|
| -static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceOwnPropertiesDerivedAttributes[] = {
|
| - {"noExposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Internal::noExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesDerivedV8Internal::noExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
|
| - {"doNotExposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Internal::doNotExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesDerivedV8Internal::doNotExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
|
| -};
|
| -#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| -#pragma clang diagnostic pop
|
| -#endif
|
| -
|
| static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceOwnPropertiesDerivedAccessors[] = {
|
| - {"exposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Internal::exposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesDerivedV8Internal::exposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"noExposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Internal::noExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesDerivedV8Internal::noExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
|
| + {"exposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Internal::exposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesDerivedV8Internal::exposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"doNotExposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Internal::doNotExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesDerivedV8Internal::doNotExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
|
| };
|
|
|
| static void installV8TestInterfaceOwnPropertiesDerivedTemplate(v8::Local<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate)
|
| @@ -160,7 +150,7 @@ static void installV8TestInterfaceOwnPropertiesDerivedTemplate(v8::Local<v8::Fun
|
|
|
| v8::Local<v8::Signature> defaultSignature;
|
| defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterfaceOwnPropertiesDerived", V8TestInterfaceOwnProperties::domTemplate(isolate), V8TestInterfaceOwnPropertiesDerived::internalFieldCount,
|
| - V8TestInterfaceOwnPropertiesDerivedAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceOwnPropertiesDerivedAttributes),
|
| + 0, 0,
|
| V8TestInterfaceOwnPropertiesDerivedAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceOwnPropertiesDerivedAccessors),
|
| 0, 0);
|
| v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceTemplate();
|
|
|