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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h

Issue 1389383003: WIP: Introduce CompressibleString Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h b/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h
index 2c4ec572004142bf645a4a9770ab2da7723e5ed8..d6c941ba81be4337f8b45abb566576f1ba279461 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h
@@ -33,6 +33,7 @@
#include "wtf/Noncopyable.h"
#include "wtf/RefPtr.h"
#include "wtf/text/AtomicString.h"
+#include "wtf/text/CompressableString.h"
#include "wtf/text/WTFString.h"
#include <v8.h>
@@ -79,6 +80,12 @@ public:
return v8ExternalStringSlow(isolate, stringImpl);
}
+ v8::Local<v8::String> v8ExternalString(v8::Isolate* isolate, PassRefPtr<CompressableString> string)
+ {
+ ASSERT(string);
+ return v8ExternalStringSlow(isolate, string);
+ }
+
void setReturnValueFromString(v8::ReturnValue<v8::Value> returnValue, StringImpl* stringImpl)
{
ASSERT(stringImpl);
@@ -94,8 +101,10 @@ public:
private:
v8::Local<v8::String> v8ExternalStringSlow(v8::Isolate*, StringImpl*);
+ v8::Local<v8::String> v8ExternalStringSlow(v8::Isolate*, PassRefPtr<CompressableString>);
void setReturnValueFromStringSlow(v8::ReturnValue<v8::Value>, StringImpl*);
v8::Local<v8::String> createStringAndInsertIntoCache(v8::Isolate*, StringImpl*);
+ v8::Local<v8::String> createStringAndInsertIntoCache(v8::Isolate*, PassRefPtr<CompressableString>);
void InvalidateLastString();
StringCacheMapTraits::MapType m_stringCache;

Powered by Google App Engine
This is Rietveld 408576698