| 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 c2ed5ef83b98fde7d8d720bf52080f193d37cbd0..5e02ab9b9a9dc2989903d024c59ae0719dd2eba4 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| @@ -49,6 +49,7 @@
|
| #include "core/CoreExport.h"
|
| #include "platform/JSONValues.h"
|
| #include "platform/heap/Handle.h"
|
| +#include "platform/text/CompressibleString.h"
|
| #include "wtf/text/AtomicString.h"
|
| #include <v8.h>
|
|
|
| @@ -436,6 +437,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);
|
|
|