@@ -304,8 +304,10 @@ RB_HEAD(ares_task_list, ares_task_t);
304
304
305
305
class IsolateData {
306
306
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 );
308
309
inline uv_loop_t * event_loop () const ;
310
+ inline uint32_t * zero_fill_field () const ;
309
311
310
312
#define VP (PropertyName, StringValue ) V(v8::Private, PropertyName, StringValue)
311
313
#define VS (PropertyName, StringValue ) V(v8::String, PropertyName, StringValue)
@@ -330,6 +332,7 @@ class IsolateData {
330
332
331
333
v8::Isolate* const isolate_;
332
334
uv_loop_t * const event_loop_;
335
+ uint32_t * const zero_fill_field_;
333
336
334
337
DISALLOW_COPY_AND_ASSIGN (IsolateData);
335
338
};
@@ -414,27 +417,6 @@ class Environment {
414
417
DISALLOW_COPY_AND_ASSIGN (TickInfo);
415
418
};
416
419
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
-
438
420
typedef void (*HandleCleanupCb)(Environment* env,
439
421
uv_handle_t * handle,
440
422
void * arg);
@@ -497,14 +479,14 @@ class Environment {
497
479
inline AsyncHooks* async_hooks ();
498
480
inline DomainFlag* domain_flag ();
499
481
inline TickInfo* tick_info ();
500
- inline ArrayBufferAllocatorInfo* array_buffer_allocator_info ();
501
482
inline uint64_t timer_base () const ;
502
483
503
484
static inline Environment* from_cares_timer_handle (uv_timer_t * handle);
504
485
inline uv_timer_t * cares_timer_handle ();
505
486
inline ares_channel cares_channel ();
506
487
inline ares_channel* cares_channel_ptr ();
507
488
inline ares_task_list* cares_task_list ();
489
+ inline IsolateData* isolate_data () const ;
508
490
509
491
inline bool using_domains () const ;
510
492
inline void set_using_domains (bool value);
@@ -602,7 +584,6 @@ class Environment {
602
584
private:
603
585
inline Environment (IsolateData* isolate_data, v8::Local<v8::Context> context);
604
586
inline ~Environment ();
605
- inline IsolateData* isolate_data () const ;
606
587
607
588
v8::Isolate* const isolate_;
608
589
IsolateData* const isolate_data_;
@@ -613,7 +594,6 @@ class Environment {
613
594
AsyncHooks async_hooks_;
614
595
DomainFlag domain_flag_;
615
596
TickInfo tick_info_;
616
- ArrayBufferAllocatorInfo array_buffer_allocator_info_;
617
597
const uint64_t timer_base_;
618
598
uv_timer_t cares_timer_handle_;
619
599
ares_channel cares_channel_;
0 commit comments