| Index: Source/bindings/v8/V8Binding.cpp
|
| diff --git a/Source/bindings/v8/V8Binding.cpp b/Source/bindings/v8/V8Binding.cpp
|
| index adc023a6e769fc9a5f4b4b9f04960b6dcf25a8af..6614112722dc47625ab2739fe612fbf260313b8e 100644
|
| --- a/Source/bindings/v8/V8Binding.cpp
|
| +++ b/Source/bindings/v8/V8Binding.cpp
|
| @@ -54,7 +54,6 @@
|
| #include "core/page/Settings.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| #include "core/xml/XPathNSResolver.h"
|
| -#include "wtf/ArrayBufferContents.h"
|
| #include "wtf/MainThread.h"
|
| #include "wtf/MathExtras.h"
|
| #include "wtf/StdLibExtras.h"
|
| @@ -92,28 +91,6 @@ v8::Handle<v8::Value> throwNotEnoughArgumentsError(v8::Isolate* isolate)
|
| return V8ThrowException::throwNotEnoughArgumentsError(isolate);
|
| }
|
|
|
| -class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
|
| - virtual void* Allocate(size_t size) OVERRIDE
|
| - {
|
| - void* data;
|
| - if (WTF::ArrayBufferContents::allocateMemory(size, WTF::ArrayBufferContents::ZeroInitialize, data))
|
| - return data;
|
| - return 0;
|
| - }
|
| -
|
| - virtual void Free(void* data) OVERRIDE
|
| - {
|
| - WTF::ArrayBufferContents::freeMemory(data);
|
| - }
|
| -};
|
| -
|
| -v8::ArrayBuffer::Allocator* v8ArrayBufferAllocator()
|
| -{
|
| - DEFINE_STATIC_LOCAL(ArrayBufferAllocator, arrayBufferAllocator, ());
|
| - return &arrayBufferAllocator;
|
| -}
|
| -
|
| -
|
| v8::Handle<v8::Value> v8Array(PassRefPtr<DOMStringList> stringList, v8::Isolate* isolate)
|
| {
|
| if (!stringList)
|
|
|