| Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| index fc9d5be4d7e2359b3f6fc44ed8776f60961227b8..ed61a6c376d44868c05751e9a1838ed319816a56 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| @@ -48,6 +48,7 @@
|
| #include "platform/JSONValues.h"
|
| #include "platform/heap/Handle.h"
|
| #include "wtf/text/AtomicString.h"
|
| +#include "wtf/text/CompressibleString.h"
|
| #include <v8.h>
|
|
|
| namespace blink {
|
| @@ -433,6 +434,13 @@ inline v8::Local<v8::String> v8String(v8::Isolate* isolate, const String& string
|
| return V8PerIsolateData::from(isolate)->stringCache()->v8ExternalString(isolate, string.impl());
|
| }
|
|
|
| +inline v8::Local<v8::String> v8String(v8::Isolate* isolate, const CompressibleString& string)
|
| +{
|
| + if (string.isNull())
|
| + return v8::String::Empty(isolate);
|
| + return V8PerIsolateData::from(isolate)->stringCache()->v8ExternalString(isolate, string);
|
| +}
|
| +
|
| inline v8::Local<v8::String> v8AtomicString(v8::Isolate* isolate, const char* str, int length = -1)
|
| {
|
| ASSERT(isolate);
|
|
|