Index: Source/bindings/tests/results/V8TestInterfaceEmpty.h |
diff --git a/Source/bindings/tests/results/V8TestInterfaceEmpty.h b/Source/bindings/tests/results/V8TestInterfaceEmpty.h |
index 8b470f25bba97c434794a34d27ad20cbe59ebd06..0b1ab6e9b69cce9d07cd7c5f7ba30ec0d0aac554 100644 |
--- a/Source/bindings/tests/results/V8TestInterfaceEmpty.h |
+++ b/Source/bindings/tests/results/V8TestInterfaceEmpty.h |
@@ -80,6 +80,21 @@ inline v8::Handle<v8::Value> toV8(TestInterfaceEmpty* impl, v8::Handle<v8::Objec |
return wrap(impl, creationContext, isolate); |
} |
+inline UnsafePersistent<v8::Object> toV8Persistent(TestInterfaceEmpty* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
+{ |
+ ASSERT(impl); |
+ |
+ UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestInterfaceEmpty>(impl, isolate); |
+ if (LIKELY(!wrapperPersistent.isEmpty())) |
+ return wrapperPersistent; |
+ |
+ wrap(impl, creationContext, isolate); |
+ |
+ wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestInterfaceEmpty>(impl, isolate); |
+ ASSERT(!wrapperPersistent.isEmpty()); |
+ return wrapperPersistent; |
+} |
+ |
template<typename CallbackInfo> |
inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceEmpty* impl, v8::Handle<v8::Object> creationContext) |
{ |