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