Index: third_party/WebKit/Source/platform/bindings/V8ValueCache.h |
diff --git a/third_party/WebKit/Source/platform/bindings/V8ValueCache.h b/third_party/WebKit/Source/platform/bindings/V8ValueCache.h |
index f34d4b0ef4f2559471daac8fb146637fc0404e14..a64630bccd904ec9bef2b0d0968227ac73246c31 100644 |
--- a/third_party/WebKit/Source/platform/bindings/V8ValueCache.h |
+++ b/third_party/WebKit/Source/platform/bindings/V8ValueCache.h |
@@ -74,6 +74,9 @@ class StringCacheMapTraits |
static void DisposeWeak(const v8::WeakCallbackInfo<WeakCallbackDataType>&); |
}; |
+// String cache helps convert WTF strings (StringImpl*) into v8 strings by |
+// only creating a v8::String for a particular StringImpl* once and caching it |
+// for future use. It is held by and can be retrieved from V8PerIsolateData. |
haraken
2017/04/29 02:39:11
Add a comment about how the cache is maintained (w
adithyas
2017/05/01 17:41:16
Done.
|
class PLATFORM_EXPORT StringCache { |
USING_FAST_MALLOC(StringCache); |
WTF_MAKE_NONCOPYABLE(StringCache); |