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