Chromium Code Reviews| Index: Source/bindings/tests/results/core/V8TestObject.cpp |
| diff --git a/Source/bindings/tests/results/core/V8TestObject.cpp b/Source/bindings/tests/results/core/V8TestObject.cpp |
| index db3a462b0884443f6da75bb3b7c62a0ca2d1ca6a..835739e85bcc820f00d025e9e3941b653dca1028 100644 |
| --- a/Source/bindings/tests/results/core/V8TestObject.cpp |
| +++ b/Source/bindings/tests/results/core/V8TestObject.cpp |
| @@ -9967,6 +9967,20 @@ static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal |
| TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| } |
| +static void callWithThisValueMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| +{ |
| + TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| + ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| + impl->callWithThisValue(ScriptValue(scriptState, info.This())); |
|
haraken
2015/03/31 09:35:21
Help me understand: Where is the 'ScriptValue(scri
|
| +} |
| + |
| +static void callWithThisValueMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| +{ |
| + TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| + TestObjectV8Internal::callWithThisValueMethod(info); |
| + TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| +} |
| + |
| static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| @@ -12477,6 +12491,7 @@ static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { |
| {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| {"callWithActiveWindow", TestObjectV8Internal::callWithActiveWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| {"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWindowScriptWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| + {"callWithThisValue", TestObjectV8Internal::callWithThisValueMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| {"checkSecurityForNodeVoidMethod", TestObjectV8Internal::checkSecurityForNodeVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| #if ENABLE(CONDITION) |
| {"conditionalConditionVoidMethod", TestObjectV8Internal::conditionalConditionVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |