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

Unified Diff: Source/bindings/dart/DartDOMData.h

Issue 23895004: Keep a persistent handle for the bindings classes to avoid repeated lookups that involve performing… (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: . Created 7 years, 3 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
« no previous file with comments | « no previous file | Source/bindings/dart/DartDOMData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/dart/DartDOMData.h
diff --git a/Source/bindings/dart/DartDOMData.h b/Source/bindings/dart/DartDOMData.h
index 2f6927dc0214e394716dc9653ce0ef7533463b45..db093775cead55d23436e851c37039fa547b7fbe 100644
--- a/Source/bindings/dart/DartDOMData.h
+++ b/Source/bindings/dart/DartDOMData.h
@@ -31,6 +31,7 @@
#ifndef DartDOMData_h
#define DartDOMData_h
+#include "DartWebkitClassIds.h"
#include "bindings/dart/DartStringCache.h"
#include "wtf/HashMap.h"
@@ -64,6 +65,7 @@ typedef HashMap<EventTarget*, Dart_WeakPersistentHandle> DartEventTargetMap;
typedef HashSet<DartWeakCallback*> DartWeakCallbacks;
typedef HashSet<DartIsolateDestructionObserver*> DartIsolateDestructionObservers;
typedef HashMap<String, Dart_PersistentHandle> DartCustomElementMap;
+typedef Dart_PersistentHandle ClassTable[NumWebkitClassIds];
class DartDOMData {
public:
@@ -97,6 +99,7 @@ public:
DartIsolateDestructionObservers* isolateDestructionObservers() { return &m_isolateDestructionObservers; }
DartCustomElementMap* customElementMap() { return &m_customElementMap; }
DartCustomElementMap* customBaseElementMap() { return &m_customBaseElementMap; }
+ ClassTable* classHandleCache() { return &m_classHandleCache; }
private:
ScriptExecutionContext* m_scriptExecutionContext;
@@ -118,6 +121,7 @@ private:
DartIsolateDestructionObservers m_isolateDestructionObservers;
DartCustomElementMap m_customElementMap;
DartCustomElementMap m_customBaseElementMap;
+ ClassTable m_classHandleCache;
};
}
« no previous file with comments | « no previous file | Source/bindings/dart/DartDOMData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698