File tree Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,6 @@ inline uv_loop_t* IsolateData::event_loop() const {
4949 return event_loop_;
5050}
5151
52- inline bool IsolateData::uses_node_allocator () const {
53- return uses_node_allocator_;
54- }
55-
56- inline v8::ArrayBuffer::Allocator* IsolateData::allocator () const {
57- return allocator_;
58- }
59-
6052inline NodeArrayBufferAllocator* IsolateData::node_allocator () const {
6153 return node_allocator_;
6254}
Original file line number Diff line number Diff line change @@ -189,13 +189,9 @@ IsolateData::IsolateData(Isolate* isolate,
189189 const std::vector<size_t >* indexes)
190190 : isolate_(isolate),
191191 event_loop_ (event_loop),
192- allocator_(isolate->GetArrayBufferAllocator ()),
193192 node_allocator_(node_allocator == nullptr ? nullptr
194193 : node_allocator->GetImpl ()),
195- uses_node_allocator_(allocator_ == node_allocator_),
196194 platform_(platform) {
197- CHECK_NOT_NULL (allocator_);
198-
199195 options_.reset (
200196 new PerIsolateOptions (*(per_process::cli_options->per_isolate )));
201197
@@ -222,9 +218,6 @@ void IsolateData::MemoryInfo(MemoryTracker* tracker) const {
222218 if (node_allocator_ != nullptr ) {
223219 tracker->TrackFieldWithSize (
224220 " node_allocator" , sizeof (*node_allocator_), " NodeArrayBufferAllocator" );
225- } else {
226- tracker->TrackFieldWithSize (
227- " allocator" , sizeof (*allocator_), " v8::ArrayBuffer::Allocator" );
228221 }
229222 tracker->TrackFieldWithSize (
230223 " platform" , sizeof (*platform_), " MultiIsolatePlatform" );
Original file line number Diff line number Diff line change @@ -505,8 +505,6 @@ class IsolateData : public MemoryRetainer {
505505 inline std::shared_ptr<PerIsolateOptions> options ();
506506 inline void set_options (std::shared_ptr<PerIsolateOptions> options);
507507
508- inline bool uses_node_allocator () const ;
509- inline v8::ArrayBuffer::Allocator* allocator () const ;
510508 inline NodeArrayBufferAllocator* node_allocator () const ;
511509
512510 inline worker::Worker* worker_context () const ;
@@ -556,9 +554,7 @@ class IsolateData : public MemoryRetainer {
556554
557555 v8::Isolate* const isolate_;
558556 uv_loop_t * const event_loop_;
559- v8::ArrayBuffer::Allocator* const allocator_;
560557 NodeArrayBufferAllocator* const node_allocator_;
561- const bool uses_node_allocator_;
562558 MultiIsolatePlatform* platform_;
563559 std::shared_ptr<PerIsolateOptions> options_;
564560 worker::Worker* worker_context_ = nullptr ;
You can’t perform that action at this time.
0 commit comments