Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: Source/bindings/v8/V8PerIsolateData.cpp

Issue 13975005: Update V8GCController to use new V8 GC-related APIs. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/v8/V8PerIsolateData.cpp
diff --git a/Source/bindings/v8/V8PerIsolateData.cpp b/Source/bindings/v8/V8PerIsolateData.cpp
index 66e36ab87f168b6e0ea32f69e8cc991ad20256cc..38b83da315681d5e8ed4701074e5407812453ddb 100644
--- a/Source/bindings/v8/V8PerIsolateData.cpp
+++ b/Source/bindings/v8/V8PerIsolateData.cpp
@@ -82,8 +82,11 @@ void V8PerIsolateData::ensureInitialized(v8::Isolate* isolate)
v8::Persistent<v8::Value> V8PerIsolateData::ensureLiveRoot()
{
- if (m_liveRoot.isEmpty())
+ if (m_liveRoot.isEmpty()) {
m_liveRoot.set(v8::Null());
+ v8::UniqueId id(reinterpret_cast<intptr_t>(*(m_liveRoot.get())));
+ v8::V8::SetObjectGroupId(m_isolate, m_liveRoot.get(), id);
+ }
return m_liveRoot.get();
}
« Source/bindings/v8/V8GCController.cpp ('K') | « Source/bindings/v8/V8GCController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698