@@ -304,8 +304,10 @@ RB_HEAD(ares_task_list, ares_task_t);
304304
305305class IsolateData {
306306 public:
307- inline IsolateData (v8::Isolate* isolate, uv_loop_t * event_loop);
307+ inline IsolateData (v8::Isolate* isolate, uv_loop_t * event_loop,
308+ uint32_t * zero_fill_field = nullptr );
308309 inline uv_loop_t * event_loop () const ;
310+ inline uint32_t * zero_fill_field () const ;
309311
310312#define VP (PropertyName, StringValue ) V(v8::Private, PropertyName, StringValue)
311313#define VS (PropertyName, StringValue ) V(v8::String, PropertyName, StringValue)
@@ -330,6 +332,7 @@ class IsolateData {
330332
331333 v8::Isolate* const isolate_;
332334 uv_loop_t * const event_loop_;
335+ uint32_t * const zero_fill_field_;
333336
334337 DISALLOW_COPY_AND_ASSIGN (IsolateData);
335338};
@@ -414,27 +417,6 @@ class Environment {
414417 DISALLOW_COPY_AND_ASSIGN (TickInfo);
415418 };
416419
417- class ArrayBufferAllocatorInfo {
418- public:
419- inline uint32_t * fields ();
420- inline int fields_count () const ;
421- inline bool no_zero_fill () const ;
422- inline void reset_fill_flag ();
423-
424- private:
425- friend class Environment ; // So we can call the constructor.
426- inline ArrayBufferAllocatorInfo ();
427-
428- enum Fields {
429- kNoZeroFill ,
430- kFieldsCount
431- };
432-
433- uint32_t fields_[kFieldsCount ];
434-
435- DISALLOW_COPY_AND_ASSIGN (ArrayBufferAllocatorInfo);
436- };
437-
438420 typedef void (*HandleCleanupCb)(Environment* env,
439421 uv_handle_t * handle,
440422 void * arg);
@@ -497,14 +479,14 @@ class Environment {
497479 inline AsyncHooks* async_hooks ();
498480 inline DomainFlag* domain_flag ();
499481 inline TickInfo* tick_info ();
500- inline ArrayBufferAllocatorInfo* array_buffer_allocator_info ();
501482 inline uint64_t timer_base () const ;
502483
503484 static inline Environment* from_cares_timer_handle (uv_timer_t * handle);
504485 inline uv_timer_t * cares_timer_handle ();
505486 inline ares_channel cares_channel ();
506487 inline ares_channel* cares_channel_ptr ();
507488 inline ares_task_list* cares_task_list ();
489+ inline IsolateData* isolate_data () const ;
508490
509491 inline bool using_domains () const ;
510492 inline void set_using_domains (bool value);
@@ -602,7 +584,6 @@ class Environment {
602584 private:
603585 inline Environment (IsolateData* isolate_data, v8::Local<v8::Context> context);
604586 inline ~Environment ();
605- inline IsolateData* isolate_data () const ;
606587
607588 v8::Isolate* const isolate_;
608589 IsolateData* const isolate_data_;
@@ -613,7 +594,6 @@ class Environment {
613594 AsyncHooks async_hooks_;
614595 DomainFlag domain_flag_;
615596 TickInfo tick_info_;
616- ArrayBufferAllocatorInfo array_buffer_allocator_info_;
617597 const uint64_t timer_base_;
618598 uv_timer_t cares_timer_handle_;
619599 ares_channel cares_channel_;
0 commit comments