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

Unified Diff: Source/bindings/templates/interface.cpp

Issue 525353002: [oilpan]: optimize the way we allocate persistent handles in wrappers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/templates/interface.cpp
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp
index c9bb60f5f998efc228bf66a848d2a0b512b45f2a..5d7b5e3287d9530d165fbff871e27b73dc0a1fe7 100644
--- a/Source/bindings/templates/interface.cpp
+++ b/Source/bindings/templates/interface.cpp
@@ -1246,13 +1246,13 @@ void {{v8_class}}::derefObject(ScriptWrappableBase* internalPointer)
{% endif %}
}
-PersistentNode* {{v8_class}}::createPersistentHandle(ScriptWrappableBase* internalPointer)
+WrapperPersistentNode* {{v8_class}}::createPersistentHandle(ScriptWrappableBase* internalPointer)
{
{% if gc_type == 'GarbageCollectedObject' %}
- return new Persistent<{{cpp_class}}>(fromInternalPointer(internalPointer));
+ return new WrapperPersistent<{{cpp_class}}>(fromInternalPointer(internalPointer));
{% elif gc_type == 'WillBeGarbageCollectedObject' %}
#if ENABLE(OILPAN)
- return new Persistent<{{cpp_class}}>(fromInternalPointer(internalPointer));
+ return new WrapperPersistent<{{cpp_class}}>(fromInternalPointer(internalPointer));
#else
ASSERT_NOT_REACHED();
return 0;

Powered by Google App Engine
This is Rietveld 408576698