1 #ifndef SRC_NODE_V8_H_ 2 #define SRC_NODE_V8_H_ 3 4 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 5 6 #include "aliased_buffer.h" 7 #include "base_object.h" 8 #include "util.h" 9 #include "v8.h" 10 11 namespace node { 12 class Environment; 13 14 namespace v8_utils { 15 class BindingData : public BaseObject { 16 public: 17 BindingData(Environment* env, v8::Local<v8::Object> obj); 18 19 static constexpr FastStringKey type_name{"node::v8::BindingData"}; 20 21 AliasedFloat64Array heap_statistics_buffer; 22 AliasedFloat64Array heap_space_statistics_buffer; 23 AliasedFloat64Array heap_code_statistics_buffer; 24 25 void MemoryInfo(MemoryTracker* tracker) const override; 26 SET_SELF_SIZE(BindingData) 27 SET_MEMORY_INFO_NAME(BindingData) 28 }; 29 30 } // namespace v8_utils 31 32 } // namespace node 33 34 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 35 36 #endif // SRC_NODE_V8_H_ 37