1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
8 #include "V8TestInterfaceNode.h"
10 #include "bindings/core/v8/ExceptionState.h"
11 #include "bindings/core/v8/V8AbstractEventListener.h"
12 #include "bindings/core/v8/V8DOMConfiguration.h"
13 #include "bindings/core/v8/V8EventListenerList.h"
14 #include "bindings/core/v8/V8HiddenValue.h"
15 #include "bindings/core/v8/V8ObjectConstructor.h"
16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h"
17 #include "core/HTMLNames.h"
18 #include "core/dom/ContextFeatures.h"
19 #include "core/dom/Document.h"
20 #include "core/dom/custom/CustomElementCallbackDispatcher.h"
21 #include "platform/RuntimeEnabledFeatures.h"
22 #include "platform/TraceEvent.h"
23 #include "wtf/GetPtr.h"
24 #include "wtf/RefPtr.h"
28 static void initializeScriptWrappableForInterface(TestInterfaceNode* object)
30 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
31 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestInterfaceNode::wrapperTypeInfo);
38 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceNode* object)
40 blink::initializeScriptWrappableForInterface(object);
44 const WrapperTypeInfo V8TestInterfaceNode::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceNode::domTemplate, V8TestInterfaceNode::derefObject, 0, V8TestInterfaceNode::toEventTarget, 0, V8TestInterfaceNode::installConditionallyEnabledMethods, &V8Node::wrapperTypeInfo, WrapperTypeObjectPrototype, WillBeGarbageCollectedObject };
46 namespace TestInterfaceNodeV8Internal {
48 template <typename T> void V8_USE(T) { }
50 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
52 v8::Handle<v8::Object> holder = info.Holder();
53 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder);
54 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate());
57 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
59 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
60 TestInterfaceNodeV8Internal::stringAttributeAttributeGetter(info);
61 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
64 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
66 v8::Handle<v8::Object> holder = info.Holder();
67 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder);
68 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
69 impl->setStringAttribute(cppValue);
72 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
74 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
75 TestInterfaceNodeV8Internal::stringAttributeAttributeSetter(v8Value, info);
76 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
79 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
81 v8::Handle<v8::Object> holder = info.Holder();
82 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder);
83 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyTestInterfaceEmptyAttribute()), impl);
86 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
88 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
89 TestInterfaceNodeV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(info);
90 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
93 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
95 v8::Handle<v8::Object> holder = info.Holder();
96 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder);
97 EventListener* cppValue(impl->eventHandlerAttribute());
98 v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListener::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate())));
101 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
104 TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeGetter(info);
105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
108 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
110 v8::Handle<v8::Object> holder = info.Holder();
111 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder);
112 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptState::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate));
115 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
118 TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info);
119 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
122 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
124 v8::Handle<v8::Object> holder = info.Holder();
125 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder);
126 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsReadonlyTestInterfaceEmptyAttribute()), impl);
129 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
131 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
132 TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(info);
133 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
136 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
138 v8::Handle<v8::Object> holder = info.Holder();
139 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder);
140 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsReadonlyTestInterfaceEmptyAttribute()));
143 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
145 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
146 TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterForMainWorld(info);
147 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
150 static void reflectStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
152 v8::Handle<v8::Object> holder = info.Holder();
153 Element* impl = V8Element::toNative(holder);
154 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::reflectstringattributeAttr), info.GetIsolate());
157 static void reflectStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
159 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
160 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeGetter(info);
161 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
164 static void reflectStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
166 v8::Handle<v8::Object> holder = info.Holder();
167 Element* impl = V8Element::toNative(holder);
168 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
169 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue);
172 static void reflectStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
174 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
175 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
176 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value, info);
177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
180 static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
182 v8::Handle<v8::Object> holder = info.Holder();
183 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder);
184 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstringattributeAttr), info.GetIsolate());
187 static void reflectUrlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
189 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
190 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info);
191 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
194 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
196 v8::Handle<v8::Object> holder = info.Holder();
197 Element* impl = V8Element::toNative(holder);
198 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
199 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue);
202 static void reflectUrlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
205 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
206 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Value, info);
207 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
210 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
212 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
213 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyMethod()), impl);
216 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
218 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
219 TestInterfaceNodeV8Internal::testInterfaceEmptyMethodMethod(info);
220 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
223 static void perWorldBindingsTestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
225 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
226 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethod()), impl);
229 static void perWorldBindingsTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
232 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethod(info);
233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
236 static void perWorldBindingsTestInterfaceEmptyMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
238 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
239 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethod()));
242 static void perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
244 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
245 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodForMainWorld(info);
246 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
249 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
251 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
252 bool optionalBooleanArgument;
255 V8RethrowTryCatchScope rethrow(block);
256 if (UNLIKELY(info.Length() <= 0)) {
257 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg()), impl);
260 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue());
262 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl);
265 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
267 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
268 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(info);
269 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
272 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
274 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
275 bool optionalBooleanArgument;
278 V8RethrowTryCatchScope rethrow(block);
279 if (UNLIKELY(info.Length() <= 0)) {
280 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg()));
283 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue());
285 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument)));
288 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
290 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
291 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForMainWorld(info);
292 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
295 } // namespace TestInterfaceNodeV8Internal
297 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNodeAttributes[] = {
298 {"stringAttribute", TestInterfaceNodeV8Internal::stringAttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
299 {"readonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
300 {"eventHandlerAttribute", TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
301 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0, TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
302 {"reflectStringAttribute", TestInterfaceNodeV8Internal::reflectStringAttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
303 {"reflectUrlStringAttribute", TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
306 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceNodeMethods[] = {
307 {"testInterfaceEmptyMethod", TestInterfaceNodeV8Internal::testInterfaceEmptyMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
308 {"perWorldBindingsTestInterfaceEmptyMethod", TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodCallback, TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts},
309 {"perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg", TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallback, TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts},
312 static void installV8TestInterfaceNodeTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate)
314 functionTemplate->ReadOnlyPrototype();
316 v8::Local<v8::Signature> defaultSignature;
317 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTemplate, "TestInterfaceNode", V8Node::domTemplate(isolate), V8TestInterfaceNode::internalFieldCount,
318 V8TestInterfaceNodeAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceNodeAttributes),
320 V8TestInterfaceNodeMethods, WTF_ARRAY_LENGTH(V8TestInterfaceNodeMethods),
322 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTemplate->InstanceTemplate();
323 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTemplate->PrototypeTemplate();
325 // Custom toString template
326 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData::from(isolate)->toStringTemplate());
329 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNode::domTemplate(v8::Isolate* isolate)
331 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), installV8TestInterfaceNodeTemplate);
334 bool V8TestInterfaceNode::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
336 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value);
339 v8::Handle<v8::Object> V8TestInterfaceNode::findInstanceInPrototypeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
341 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperTypeInfo, v8Value);
344 TestInterfaceNode* V8TestInterfaceNode::toNativeWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value)
346 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPointer(v8::Handle<v8::Object>::Cast(value))) : 0;
349 EventTarget* V8TestInterfaceNode::toEventTarget(v8::Handle<v8::Object> object)
351 return toNative(object);
354 v8::Handle<v8::Object> wrap(TestInterfaceNode* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
357 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNode>(impl, isolate));
358 return V8TestInterfaceNode::createWrapper(impl, creationContext, isolate);
361 v8::Handle<v8::Object> V8TestInterfaceNode::createWrapper(PassRefPtrWillBeRawPtr<TestInterfaceNode> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
364 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNode>(impl.get(), isolate));
365 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) {
366 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get())->typeInfo();
367 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapperTypeInfo. These will both have
368 // the same object de-ref functions, though, so use that as the basis of the check.
369 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction);
372 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate);
373 if (UNLIKELY(wrapper.IsEmpty()))
376 installConditionallyEnabledProperties(wrapper, isolate);
377 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNode>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent);
381 void V8TestInterfaceNode::derefObject(ScriptWrappableBase* internalPointer)
384 fromInternalPointer(internalPointer)->deref();
385 #endif // !ENABLE(OILPAN)
389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
391 return toV8(impl, creationContext, isolate);