Index: Source/bindings/tests/results/core/V8TestTypedefs.cpp |
diff --git a/Source/bindings/tests/results/core/V8TestTypedefs.cpp b/Source/bindings/tests/results/core/V8TestTypedefs.cpp |
index 1248598f877992e4666ca79e7ea89b8bd8350e70..f619162e8d013df8808f944d3571621e21f7b8a1 100644 |
--- a/Source/bindings/tests/results/core/V8TestTypedefs.cpp |
+++ b/Source/bindings/tests/results/core/V8TestTypedefs.cpp |
@@ -34,21 +34,21 @@ const WrapperTypeInfo& TestTypedefs::s_wrapperTypeInfo = V8TestTypedefs::wrapper |
namespace TestTypedefsV8Internal { |
-static void uLongLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
+static void uLongLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestTypedefs* impl = V8TestTypedefs::toImpl(holder); |
v8SetReturnValue(info, static_cast<double>(impl->uLongLongAttribute())); |
} |
-static void uLongLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
+static void uLongLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
TestTypedefsV8Internal::uLongLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
-static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
+static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "uLongLongAttribute", "TestTypedefs", holder, info.GetIsolate()); |
@@ -57,8 +57,9 @@ static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons |
impl->setULongLongAttribute(cppValue); |
} |
-static void uLongLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
+static void uLongLongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ v8::Local<v8::Value> v8Value = info[0]; |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
TestTypedefsV8Internal::uLongLongAttributeAttributeSetter(v8Value, info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
@@ -275,10 +276,13 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
} // namespace TestTypedefsV8Internal |
static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes[] = { |
- {"uLongLongAttribute", TestTypedefsV8Internal::uLongLongAttributeAttributeGetterCallback, TestTypedefsV8Internal::uLongLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
{"tAttribute", TestTypedefsV8Internal::TestTypedefsConstructorGetter, TestTypedefsV8Internal::TestTypedefsForceSetAttributeOnThisCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
}; |
+static const V8DOMConfiguration::AccessorConfiguration V8TestTypedefsAccessors[] = { |
+ {"uLongLongAttribute", TestTypedefsV8Internal::uLongLongAttributeAttributeGetterCallback, TestTypedefsV8Internal::uLongLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
+}; |
+ |
static const V8DOMConfiguration::MethodConfiguration V8TestTypedefsMethods[] = { |
{"voidMethodArrayOfLongsArg", TestTypedefsV8Internal::voidMethodArrayOfLongsArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
{"voidMethodFloatArgStringArg", TestTypedefsV8Internal::voidMethodFloatArgStringArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, |
@@ -313,7 +317,7 @@ static void installV8TestTypedefsTemplate(v8::Local<v8::FunctionTemplate> functi |
v8::Local<v8::Signature> defaultSignature; |
defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestTypedefs", v8::Local<v8::FunctionTemplate>(), V8TestTypedefs::internalFieldCount, |
V8TestTypedefsAttributes, WTF_ARRAY_LENGTH(V8TestTypedefsAttributes), |
- 0, 0, |
+ V8TestTypedefsAccessors, WTF_ARRAY_LENGTH(V8TestTypedefsAccessors), |
V8TestTypedefsMethods, WTF_ARRAY_LENGTH(V8TestTypedefsMethods)); |
functionTemplate->SetCallHandler(V8TestTypedefs::constructorCallback); |
functionTemplate->SetLength(1); |