Chromium Code Reviews| Index: Source/bindings/tests/results/V8TestObjectPython.cpp |
| diff --git a/Source/bindings/tests/results/V8TestObjectPython.cpp b/Source/bindings/tests/results/V8TestObjectPython.cpp |
| index 8b81523a75fe46fc7ce0a54f7e038599a79411de..4186ead664d7721eb306f05d2b5b0b678de8fe6a 100644 |
| --- a/Source/bindings/tests/results/V8TestObjectPython.cpp |
| +++ b/Source/bindings/tests/results/V8TestObjectPython.cpp |
| @@ -836,6 +836,19 @@ static void customGetterReadonlyLongAttributeAttributeGetterCallback(v8::Local<v |
| } |
| #endif // ENABLE(Condition) |
| +static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| +{ |
| + TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| + v8SetReturnValueInt(info, imp->customElementsCallbacksReadonlyLongAttribute()); |
| +} |
| + |
| +static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
|
haraken
2013/10/08 11:06:51
Is this generated code correct? I expected:
Cus
Nils Barth (inactive)
2013/10/09 00:43:36
This is what the Perl generates.
It only adds that
|
| +{ |
| + TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| + TestObjectPythonV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeGetter(name, info); |
| + TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| +} |
| + |
| static void readonlyDocumentFragmentAttributeAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| { |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| @@ -921,6 +934,7 @@ static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib |
| #if ENABLE(Condition) |
| {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGetterReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| #endif // ENABLE(Condition) |
| + {"customElementsCallbacksReadonlyLongAttribute", TestObjectPythonV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| {"readonlyDocumentFragmentAttribute", TestObjectPythonV8Internal::readonlyDocumentFragmentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| }; |