Use v8::ArrayBuffer::Allocator inside Node

This commit is contained in:
Cheng Zhao 2017-05-14 19:25:07 +09:00
parent 9ce3a8c3a7
commit f4420b449f
11 changed files with 5 additions and 145 deletions

View file

@ -14,14 +14,6 @@ class Environment;
namespace atom {
// ArrayBuffer's allocator, used on Chromium's side.
class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
public:
void* Allocate(size_t length) override;
void* AllocateUninitialized(size_t length) override;
void Free(void* data, size_t length) override;
};
// Manage the V8 isolate and context automatically.
class JavascriptEnvironment {
public:
@ -39,7 +31,6 @@ class JavascriptEnvironment {
bool Initialize();
bool initialized_;
ArrayBufferAllocator allocator_;
gin::IsolateHolder isolate_holder_;
v8::Isolate* isolate_;
v8::Isolate::Scope isolate_scope_;