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