File tree 3 files changed +0
-19
lines changed
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 {
49
49
return event_loop_;
50
50
}
51
51
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
-
60
52
inline NodeArrayBufferAllocator* IsolateData::node_allocator () const {
61
53
return node_allocator_;
62
54
}
Original file line number Diff line number Diff line change @@ -189,13 +189,9 @@ IsolateData::IsolateData(Isolate* isolate,
189
189
const std::vector<size_t >* indexes)
190
190
: isolate_(isolate),
191
191
event_loop_ (event_loop),
192
- allocator_(isolate->GetArrayBufferAllocator ()),
193
192
node_allocator_(node_allocator == nullptr ? nullptr
194
193
: node_allocator->GetImpl ()),
195
- uses_node_allocator_(allocator_ == node_allocator_),
196
194
platform_(platform) {
197
- CHECK_NOT_NULL (allocator_);
198
-
199
195
options_.reset (
200
196
new PerIsolateOptions (*(per_process::cli_options->per_isolate )));
201
197
@@ -222,9 +218,6 @@ void IsolateData::MemoryInfo(MemoryTracker* tracker) const {
222
218
if (node_allocator_ != nullptr ) {
223
219
tracker->TrackFieldWithSize (
224
220
" node_allocator" , sizeof (*node_allocator_), " NodeArrayBufferAllocator" );
225
- } else {
226
- tracker->TrackFieldWithSize (
227
- " allocator" , sizeof (*allocator_), " v8::ArrayBuffer::Allocator" );
228
221
}
229
222
tracker->TrackFieldWithSize (
230
223
" platform" , sizeof (*platform_), " MultiIsolatePlatform" );
Original file line number Diff line number Diff line change @@ -505,8 +505,6 @@ class IsolateData : public MemoryRetainer {
505
505
inline std::shared_ptr<PerIsolateOptions> options ();
506
506
inline void set_options (std::shared_ptr<PerIsolateOptions> options);
507
507
508
- inline bool uses_node_allocator () const ;
509
- inline v8::ArrayBuffer::Allocator* allocator () const ;
510
508
inline NodeArrayBufferAllocator* node_allocator () const ;
511
509
512
510
inline worker::Worker* worker_context () const ;
@@ -556,9 +554,7 @@ class IsolateData : public MemoryRetainer {
556
554
557
555
v8::Isolate* const isolate_;
558
556
uv_loop_t * const event_loop_;
559
- v8::ArrayBuffer::Allocator* const allocator_;
560
557
NodeArrayBufferAllocator* const node_allocator_;
561
- const bool uses_node_allocator_;
562
558
MultiIsolatePlatform* platform_;
563
559
std::shared_ptr<PerIsolateOptions> options_;
564
560
worker::Worker* worker_context_ = nullptr ;
You can’t perform that action at this time.
0 commit comments