Index: Source/bindings/v8/DOMDataStore.cpp |
diff --git a/Source/bindings/v8/DOMDataStore.cpp b/Source/bindings/v8/DOMDataStore.cpp |
index bbcac2b337fa65c7b8ec91c1e99134132eef33a2..2626f5c9af9c1533bf072377e88eec4afe42e44e 100644 |
--- a/Source/bindings/v8/DOMDataStore.cpp |
+++ b/Source/bindings/v8/DOMDataStore.cpp |
@@ -51,18 +51,18 @@ DOMDataStore::~DOMDataStore() |
m_wrapperMap.clear(); |
} |
-DOMDataStore* DOMDataStore::mainWorldStore() |
+DOMDataStore& DOMDataStore::mainWorldStore() |
{ |
DEFINE_STATIC_LOCAL(DOMDataStore, mainWorldDOMDataStore, (MainWorld)); |
ASSERT(isMainThread()); |
- return &mainWorldDOMDataStore; |
+ return mainWorldDOMDataStore; |
} |
-DOMDataStore* DOMDataStore::current(v8::Isolate* isolate) |
+DOMDataStore& DOMDataStore::current(v8::Isolate* isolate) |
{ |
V8PerIsolateData* data = isolate ? V8PerIsolateData::from(isolate) : V8PerIsolateData::current(); |
if (UNLIKELY(!!data->workerDOMDataStore())) |
- return data->workerDOMDataStore(); |
+ return *data->workerDOMDataStore(); |
if (DOMWrapperWorld::isolatedWorldsExist()) { |
DOMWrapperWorld* isolatedWorld = DOMWrapperWorld::isolatedWorld(v8::Context::GetEntered()); |