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

Unified Diff: Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.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/V8TestInterfaceEventConstructor.h
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.h b/Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.h
index f481ef7fce28dfb99d67b06448f3e269eb09a79e..40b89764a3c0dc53d4e696d2b20087a8c2f6b9f4 100644
--- a/Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.h
+++ b/Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.h
@@ -31,14 +31,14 @@ public:
static const WrapperTypeInfo wrapperTypeInfo;
static void refObject(ScriptWrappableBase* internalPointer);
static void derefObject(ScriptWrappableBase* internalPointer);
- static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* internalPointer);
- static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
+ 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<TestInterfaceEventConstructor>());
#endif
+ }
+ static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
+ static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
static inline ScriptWrappableBase* toScriptWrappableBase(TestInterfaceEventConstructor* impl)
{
return impl->toScriptWrappableBase();

Powered by Google App Engine
This is Rietveld 408576698