Index: Source/bindings/tests/results/V8TestObjectPython.cpp |
diff --git a/Source/bindings/tests/results/V8TestObjectPython.cpp b/Source/bindings/tests/results/V8TestObjectPython.cpp |
index 4e8e78aa2135d0c106330763ca53f6b4d12d9d35..eca1c3f6a029deb5112f005454f0176b60964150 100644 |
--- a/Source/bindings/tests/results/V8TestObjectPython.cpp |
+++ b/Source/bindings/tests/results/V8TestObjectPython.cpp |
@@ -3233,6 +3233,21 @@ static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str |
TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name, jsValue, info); |
} |
+static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) |
+{ |
+ TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); |
+ imp->voidMethod(); |
+ |
+ return; |
+} |
+ |
+static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) |
+{ |
+ TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
+ TestObjectPythonV8Internal::voidMethodMethod(args); |
+ TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
+} |
+ |
} // namespace TestObjectPythonV8Internal |
static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttributes[] = { |
@@ -3353,6 +3368,10 @@ static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib |
{"unforgeableLongAttribute", TestObjectPythonV8Internal::unforgeableLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on instance */}, |
}; |
+static const V8DOMConfiguration::MethodConfiguration V8TestObjectPythonMethods[] = { |
+ {"voidMethod", TestObjectPythonV8Internal::voidMethodMethodCallback, 0, 0}, |
+}; |
+ |
static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorldType) |
{ |
desc->ReadOnlyPrototype(); |
@@ -3360,7 +3379,7 @@ static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8:: |
v8::Local<v8::Signature> defaultSignature; |
defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestObjectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFieldCount, |
V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttributes), |
- 0, 0, isolate, currentWorldType); |
+ V8TestObjectPythonMethods, WTF_ARRAY_LENGTH(V8TestObjectPythonMethods), isolate, currentWorldType); |
UNUSED_PARAM(defaultSignature); |
v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); |
v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); |