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

Unified Diff: Source/bindings/tests/results/core/V8TestInterfaceDocument.h

Issue 651713002: Oilpan: DOM wrappers don't need to keep persistent handles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/tests/results/core/V8TestInterfaceDocument.h
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceDocument.h b/Source/bindings/tests/results/core/V8TestInterfaceDocument.h
index c0a56a5d424bea57e47d54be9d2fe7e7a748e96d..7aa93016e6d57b6ffd78e2be7e2ec3e24012542a 100644
--- a/Source/bindings/tests/results/core/V8TestInterfaceDocument.h
+++ b/Source/bindings/tests/results/core/V8TestInterfaceDocument.h
@@ -30,14 +30,14 @@ public:
static const WrapperTypeInfo wrapperTypeInfo;
static void refObject(ScriptWrappableBase* internalPointer);
static void derefObject(ScriptWrappableBase* internalPointer);
- static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* internalPointer);
- static EventTarget* toEventTarget(v8::Handle<v8::Object>);
+ static void trace(Visitor* visitor, ScriptWrappableBase* internalPointer)
+ {
#if ENABLE(OILPAN)
- static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + 0;
- static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 + 1;
-#else
- static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
+ visitor->trace(internalPointer->toImpl<TestInterfaceDocument>());
#endif
+ }
+ static EventTarget* toEventTarget(v8::Handle<v8::Object>);
+ static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
static inline ScriptWrappableBase* toScriptWrappableBase(TestInterfaceDocument* impl)
{
return impl->toScriptWrappableBase();

Powered by Google App Engine
This is Rietveld 408576698