| Index: Source/bindings/tests/results/V8TestInterface.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestInterface.cpp b/Source/bindings/tests/results/V8TestInterface.cpp
|
| index f9e7fa55456ff2822df6e00f3e4f7ad341802e65..10faa72ffeb0f9a7cc59d881512823c199426a3e 100644
|
| --- a/Source/bindings/tests/results/V8TestInterface.cpp
|
| +++ b/Source/bindings/tests/results/V8TestInterface.cpp
|
| @@ -121,9 +121,9 @@ static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8:
|
|
|
| static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribute(*imp), info.GetIsolate());
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribute(*impl), info.GetIsolate());
|
| }
|
|
|
| static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| @@ -135,9 +135,9 @@ static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v
|
|
|
| static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*imp), info.GetIsolate());
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*impl), info.GetIsolate());
|
| }
|
|
|
| static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| @@ -149,10 +149,10 @@ static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin
|
|
|
| static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| - TestImplements::setImplementsStringAttribute(*imp, cppValue);
|
| + TestImplements::setImplementsStringAttribute(*impl, cppValue);
|
| }
|
|
|
| static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| @@ -164,9 +164,9 @@ static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
|
|
|
| static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsNodeAttribute(*imp)), imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsNodeAttribute(*impl)), impl);
|
| }
|
|
|
| static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| @@ -178,10 +178,10 @@ static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String>
|
|
|
| static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate(), jsValue));
|
| - TestImplements::setImplementsNodeAttribute(*imp, WTF::getPtr(cppValue));
|
| + TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue));
|
| }
|
|
|
| static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| @@ -193,10 +193,10 @@ static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
|
|
|
| static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*imp);
|
| - v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListener::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate())));
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*impl);
|
| + v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListener::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate())));
|
| }
|
|
|
| static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| @@ -208,10 +208,10 @@ static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8:
|
|
|
| static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEventHandlerAttribute(*imp), jsValue, V8TestInterface::eventListenerCacheIndex, info.GetIsolate());
|
| - TestImplements::setImplementsEventHandlerAttribute(*imp, V8EventListenerList::getEventListener(jsValue, true, ListenerFindOrCreate));
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEventHandlerAttribute(*impl), jsValue, V8TestInterface::eventListenerCacheIndex, info.GetIsolate());
|
| + TestImplements::setImplementsEventHandlerAttribute(*impl, V8EventListenerList::getEventListener(jsValue, true, ListenerFindOrCreate));
|
| }
|
|
|
| static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| @@ -223,9 +223,9 @@ static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8:
|
|
|
| static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsRuntimeEnabledNodeAttribute(*imp)), imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsRuntimeEnabledNodeAttribute(*impl)), impl);
|
| }
|
|
|
| static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| @@ -237,10 +237,10 @@ static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc
|
|
|
| static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate(), jsValue));
|
| - TestImplements::setImplementsRuntimeEnabledNodeAttribute(*imp, WTF::getPtr(cppValue));
|
| + TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr(cppValue));
|
| }
|
|
|
| static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| @@ -252,9 +252,9 @@ static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
|
|
|
| static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsPerContextEnabledNodeAttribute(*imp)), imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsPerContextEnabledNodeAttribute(*impl)), impl);
|
| }
|
|
|
| static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| @@ -266,10 +266,10 @@ static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8::
|
|
|
| static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate(), jsValue));
|
| - TestImplements::setImplementsPerContextEnabledNodeAttribute(*imp, WTF::getPtr(cppValue));
|
| + TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getPtr(cppValue));
|
| }
|
|
|
| static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| @@ -331,9 +331,9 @@ static void supplementalStaticAttrAttributeSetterCallback(v8::Local<v8::String>,
|
| #if ENABLE(CONDITION_PARTIAL)
|
| static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(*imp), info.GetIsolate());
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(*impl), info.GetIsolate());
|
| }
|
| #endif // ENABLE(CONDITION_PARTIAL)
|
|
|
| @@ -349,9 +349,9 @@ static void supplementalStr1AttributeGetterCallback(v8::Local<v8::String>, const
|
| #if ENABLE(CONDITION_PARTIAL)
|
| static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(*imp), info.GetIsolate());
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(*impl), info.GetIsolate());
|
| }
|
| #endif // ENABLE(CONDITION_PARTIAL)
|
|
|
| @@ -367,10 +367,10 @@ static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const
|
| #if ENABLE(CONDITION_PARTIAL)
|
| static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| - TestPartialInterface::setSupplementalStr2(*imp, cppValue);
|
| + TestPartialInterface::setSupplementalStr2(*impl, cppValue);
|
| }
|
| #endif // ENABLE(CONDITION_PARTIAL)
|
|
|
| @@ -386,9 +386,9 @@ static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L
|
| #if ENABLE(CONDITION_PARTIAL)
|
| static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::supplementalNode(*imp)), imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::supplementalNode(*impl)), impl);
|
| }
|
| #endif // ENABLE(CONDITION_PARTIAL)
|
|
|
| @@ -404,10 +404,10 @@ static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const
|
| #if ENABLE(CONDITION_PARTIAL)
|
| static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate(), jsValue));
|
| - TestPartialInterface::setSupplementalNode(*imp, WTF::getPtr(cppValue));
|
| + TestPartialInterface::setSupplementalNode(*impl, WTF::getPtr(cppValue));
|
| }
|
| #endif // ENABLE(CONDITION_PARTIAL)
|
|
|
| @@ -423,9 +423,9 @@ static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L
|
| #if ENABLE(CONDITION_PARTIAL)
|
| static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::node13(*imp)), imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::node13(*impl)), impl);
|
| }
|
| #endif // ENABLE(CONDITION_PARTIAL)
|
|
|
| @@ -441,10 +441,10 @@ static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope
|
| #if ENABLE(CONDITION_PARTIAL)
|
| static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate(), jsValue));
|
| - TestPartialInterface::setNode13(*imp, WTF::getPtr(cppValue));
|
| + TestPartialInterface::setNode13(*impl, WTF::getPtr(cppValue));
|
| }
|
| #endif // ENABLE(CONDITION_PARTIAL)
|
|
|
| @@ -463,13 +463,13 @@ static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| throwTypeError(ExceptionMessages::failedToExecute("namedItem", "TestInterface", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| }
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, info[0]);
|
| bool result0Enabled = false;
|
| RefPtr<Node> result0;
|
| bool result1Enabled = false;
|
| RefPtr<NodeList> result1;
|
| - imp->getItem(name, result0Enabled, result0, result1Enabled, result1);
|
| + impl->getItem(name, result0Enabled, result0, result1Enabled, result1);
|
| if (result0Enabled) {
|
| v8SetReturnValue(info, result0.release());
|
| return;
|
| @@ -490,9 +490,9 @@ static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
|
|
|
| static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - TestImplements::implementsVoidMethod(*imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + TestImplements::implementsVoidMethod(*impl);
|
| }
|
|
|
| static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -510,12 +510,12 @@ static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val
|
| exceptionState.throwIfNeeded();
|
| return;
|
| }
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]);
|
| V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1]));
|
| - ASSERT(imp);
|
| + ASSERT(impl);
|
| ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate());
|
| - RefPtr<TestInterfaceEmpty> result = TestImplements::implementsComplexMethod(scriptContext, *imp, strArg, testInterfaceEmptyArg, exceptionState);
|
| + RefPtr<TestInterfaceEmpty> result = TestImplements::implementsComplexMethod(scriptContext, *impl, strArg, testInterfaceEmptyArg, exceptionState);
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
| v8SetReturnValue(info, result.release());
|
| @@ -550,9 +550,9 @@ static void implementsStaticVoidMethodMethodCallback(const v8::FunctionCallbackI
|
| #if ENABLE(CONDITION_PARTIAL)
|
| static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| - ASSERT(imp);
|
| - TestPartialInterface::supplementalMethod1(*imp);
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| + ASSERT(impl);
|
| + TestPartialInterface::supplementalMethod1(*impl);
|
| }
|
| #endif // ENABLE(CONDITION_PARTIAL)
|
|
|
| @@ -574,12 +574,12 @@ static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| exceptionState.throwIfNeeded();
|
| return;
|
| }
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]);
|
| V8TRYCATCH_VOID(TestObject*, objArg, V8TestObject::toNativeWithTypeCheck(info.GetIsolate(), info[1]));
|
| - ASSERT(imp);
|
| + ASSERT(impl);
|
| ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate());
|
| - RefPtr<TestObject> result = TestPartialInterface::supplementalMethod2(scriptContext, *imp, strArg, objArg, exceptionState);
|
| + RefPtr<TestObject> result = TestPartialInterface::supplementalMethod2(scriptContext, *impl, strArg, objArg, exceptionState);
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
| v8SetReturnValue(info, result.release());
|
| @@ -647,21 +647,21 @@ static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
|
| if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
|
| return;
|
|
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name);
|
| bool result0Enabled = false;
|
| RefPtr<Node> result0;
|
| bool result1Enabled = false;
|
| RefPtr<NodeList> result1;
|
| - imp->getItem(propertyName, result0Enabled, result0, result1Enabled, result1);
|
| + impl->getItem(propertyName, result0Enabled, result0, result1Enabled, result1);
|
| if (!result0Enabled && !result1Enabled)
|
| return;
|
| if (result0Enabled) {
|
| - v8SetReturnValueFast(info, WTF::getPtr(result0.release()), imp);
|
| + v8SetReturnValueFast(info, WTF::getPtr(result0.release()), impl);
|
| return;
|
| }
|
| if (result1Enabled) {
|
| - v8SetReturnValueFast(info, WTF::getPtr(result1.release()), imp);
|
| + v8SetReturnValueFast(info, WTF::getPtr(result1.release()), impl);
|
| return;
|
| }
|
| v8SetReturnValueNull(info);
|
| @@ -683,11 +683,11 @@ static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
|
|
|
| static void namedPropertyQuery(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Integer>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name);
|
| v8::String::Utf8Value namedProperty(name);
|
| ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "TestInterface", info.Holder(), info.GetIsolate());
|
| - bool result = imp->namedPropertyQuery(propertyName, exceptionState);
|
| + bool result = impl->namedPropertyQuery(propertyName, exceptionState);
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
| if (!result)
|
| @@ -704,10 +704,10 @@ static void namedPropertyQueryCallback(v8::Local<v8::String> name, const v8::Pro
|
|
|
| static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& info)
|
| {
|
| - TestInterface* imp = V8TestInterface::toNative(info.Holder());
|
| + TestInterface* impl = V8TestInterface::toNative(info.Holder());
|
| Vector<String> names;
|
| ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestInterface", info.Holder(), info.GetIsolate());
|
| - imp->namedPropertyEnumerator(names, exceptionState);
|
| + impl->namedPropertyEnumerator(names, exceptionState);
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
| v8::Handle<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size());
|
|
|