| 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;
|
|
|