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