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

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

Issue 26792002: Reland: Reland: Implement new Blink IDL attribute [SetReference] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/V8GCController.cpp
diff --git a/Source/bindings/v8/V8GCController.cpp b/Source/bindings/v8/V8GCController.cpp
index d19dd649becad2db10c0c165f3747546ff0cbde6..265ded47476dfc1eec3c4bab09c3e52e48f390a4 100644
--- a/Source/bindings/v8/V8GCController.cpp
+++ b/Source/bindings/v8/V8GCController.cpp
@@ -239,6 +239,7 @@ public:
return;
v8::Handle<v8::Object>* wrapper = reinterpret_cast<v8::Handle<v8::Object>*>(value);
+ v8::Persistent<v8::Object>* wrapperpers = reinterpret_cast<v8::Persistent<v8::Object>*>(value);
haraken 2013/10/10 06:08:32 You can write this just before you use |wrapperper
ASSERT(V8DOMWrapper::maybeDOMWrapper(*wrapper));
@@ -284,7 +285,7 @@ public:
m_groupsWhichNeedRetainerInfo.append(root);
} else if (classId == v8DOMObjectClassId) {
ASSERT(!value->IsIndependent());
- void* root = type->opaqueRootForGC(object, m_isolate);
+ void* root = type->resolveWrapperReachability(object, *wrapperpers, m_isolate);
m_isolate->SetObjectGroupId(*value, v8::UniqueId(reinterpret_cast<intptr_t>(root)));
haraken 2013/10/10 06:08:32 This is a bit confusing. resolveWrapperReachabilit
} else {
ASSERT_NOT_REACHED();

Powered by Google App Engine
This is Rietveld 408576698