@@ -611,9 +611,9 @@ class AsyncHooks : public MemoryRetainer {
611
611
kUidFieldsCount ,
612
612
};
613
613
614
- inline AliasedBuffer< uint32_t , v8::Uint32Array> & fields ();
615
- inline AliasedBuffer< double , v8::Float64Array> & async_id_fields ();
616
- inline AliasedBuffer< double , v8::Float64Array> & async_ids_stack ();
614
+ inline AliasedUint32Array & fields ();
615
+ inline AliasedFloat64Array & async_id_fields ();
616
+ inline AliasedFloat64Array & async_ids_stack ();
617
617
618
618
inline v8::Local<v8::String> provider_string (int idx);
619
619
@@ -652,12 +652,12 @@ class AsyncHooks : public MemoryRetainer {
652
652
// Keep a list of all Persistent strings used for Provider types.
653
653
std::array<v8::Eternal<v8::String>, AsyncWrap::PROVIDERS_LENGTH> providers_;
654
654
// Stores the ids of the current execution context stack.
655
- AliasedBuffer< double , v8::Float64Array> async_ids_stack_;
655
+ AliasedFloat64Array async_ids_stack_;
656
656
// Attached to a Uint32Array that tracks the number of active hooks for
657
657
// each type.
658
- AliasedBuffer< uint32_t , v8::Uint32Array> fields_;
658
+ AliasedUint32Array fields_;
659
659
// Attached to a Float64Array that tracks the state of async resources.
660
- AliasedBuffer< double , v8::Float64Array> async_id_fields_;
660
+ AliasedFloat64Array async_id_fields_;
661
661
662
662
void grow_async_ids_stack ();
663
663
};
@@ -676,7 +676,7 @@ class AsyncCallbackScope {
676
676
677
677
class ImmediateInfo : public MemoryRetainer {
678
678
public:
679
- inline AliasedBuffer< uint32_t , v8::Uint32Array> & fields ();
679
+ inline AliasedUint32Array & fields ();
680
680
inline uint32_t count () const ;
681
681
inline uint32_t ref_count () const ;
682
682
inline bool has_outstanding () const ;
@@ -698,12 +698,12 @@ class ImmediateInfo : public MemoryRetainer {
698
698
699
699
enum Fields { kCount , kRefCount , kHasOutstanding , kFieldsCount };
700
700
701
- AliasedBuffer< uint32_t , v8::Uint32Array> fields_;
701
+ AliasedUint32Array fields_;
702
702
};
703
703
704
704
class TickInfo : public MemoryRetainer {
705
705
public:
706
- inline AliasedBuffer< uint8_t , v8::Uint8Array> & fields ();
706
+ inline AliasedUint8Array & fields ();
707
707
inline bool has_tick_scheduled () const ;
708
708
inline bool has_rejection_to_warn () const ;
709
709
@@ -720,7 +720,7 @@ class TickInfo : public MemoryRetainer {
720
720
721
721
enum Fields { kHasTickScheduled = 0 , kHasRejectionToWarn , kFieldsCount };
722
722
723
- AliasedBuffer< uint8_t , v8::Uint8Array> fields_;
723
+ AliasedUint8Array fields_;
724
724
};
725
725
726
726
class TrackingTraceStateObserver :
@@ -908,10 +908,9 @@ class Environment : public MemoryRetainer {
908
908
// This is a pseudo-boolean that keeps track of whether an uncaught exception
909
909
// should abort the process or not if --abort-on-uncaught-exception was
910
910
// passed to Node. If the flag was not passed, it is ignored.
911
- inline AliasedBuffer<uint32_t , v8::Uint32Array>&
912
- should_abort_on_uncaught_toggle ();
911
+ inline AliasedUint32Array& should_abort_on_uncaught_toggle ();
913
912
914
- inline AliasedBuffer< int32_t , v8::Int32Array> & stream_base_state ();
913
+ inline AliasedInt32Array & stream_base_state ();
915
914
916
915
// The necessary API for async_hooks.
917
916
inline double new_async_id ();
@@ -957,9 +956,8 @@ class Environment : public MemoryRetainer {
957
956
inline void set_debug_enabled (DebugCategory category, bool enabled);
958
957
void set_debug_categories (const std::string& cats, bool enabled);
959
958
960
- inline AliasedBuffer<double , v8::Float64Array>* fs_stats_field_array ();
961
- inline AliasedBuffer<uint64_t , v8::BigUint64Array>*
962
- fs_stats_field_bigint_array ();
959
+ inline AliasedFloat64Array* fs_stats_field_array ();
960
+ inline AliasedBigUint64Array* fs_stats_field_bigint_array ();
963
961
964
962
inline std::vector<std::unique_ptr<fs::FileHandleReadWrap>>&
965
963
file_handle_read_wrap_freelist ();
@@ -1204,12 +1202,12 @@ class Environment : public MemoryRetainer {
1204
1202
uint32_t script_id_counter_ = 0 ;
1205
1203
uint32_t function_id_counter_ = 0 ;
1206
1204
1207
- AliasedBuffer< uint32_t , v8::Uint32Array> should_abort_on_uncaught_toggle_;
1205
+ AliasedUint32Array should_abort_on_uncaught_toggle_;
1208
1206
int should_not_abort_scope_counter_ = 0 ;
1209
1207
1210
1208
std::unique_ptr<TrackingTraceStateObserver> trace_state_observer_;
1211
1209
1212
- AliasedBuffer< int32_t , v8::Int32Array> stream_base_state_;
1210
+ AliasedInt32Array stream_base_state_;
1213
1211
1214
1212
std::unique_ptr<performance::performance_state> performance_state_;
1215
1213
std::unordered_map<std::string, uint64_t > performance_marks_;
@@ -1252,8 +1250,8 @@ class Environment : public MemoryRetainer {
1252
1250
1253
1251
bool debug_enabled_[static_cast <int >(DebugCategory::CATEGORY_COUNT)] = {0 };
1254
1252
1255
- AliasedBuffer< double , v8::Float64Array> fs_stats_field_array_;
1256
- AliasedBuffer< uint64_t , v8::BigUint64Array> fs_stats_field_bigint_array_;
1253
+ AliasedFloat64Array fs_stats_field_array_;
1254
+ AliasedBigUint64Array fs_stats_field_bigint_array_;
1257
1255
1258
1256
std::vector<std::unique_ptr<fs::FileHandleReadWrap>>
1259
1257
file_handle_read_wrap_freelist_;
0 commit comments