/third_party/node/src/ |
D | base_object-inl.h | 42 BaseObject::BaseObject(Environment* env, v8::Local<v8::Object> object) in BaseObject() function 47 BaseObject::kSlot, in BaseObject() 53 BaseObject::~BaseObject() { in ~BaseObject() 72 object()->SetAlignedPointerInInternalField(BaseObject::kSlot, nullptr); in ~BaseObject() 76 void BaseObject::Detach() { in Detach() 81 v8::Global<v8::Object>& BaseObject::persistent() { in persistent() 86 v8::Local<v8::Object> BaseObject::object() const { in object() 90 v8::Local<v8::Object> BaseObject::object(v8::Isolate* isolate) const { in object() 99 Environment* BaseObject::env() const { in env() 103 BaseObject* BaseObject::FromJSObject(v8::Local<v8::Value> value) { in FromJSObject() [all …]
|
D | base_object.h | 41 class BaseObject : public MemoryRetainer { 47 inline BaseObject(Environment* env, v8::Local<v8::Object> object); 48 inline ~BaseObject() override; 50 BaseObject() = delete; 68 static inline BaseObject* FromJSObject(v8::Local<v8::Value> object); 150 virtual v8::Maybe<std::vector<BaseObjectPtrImpl<BaseObject, false>>> 195 BaseObject* self = nullptr; 214 return BaseObject::FromJSObject<T>(obj); in Unwrap() 220 BaseObject::FromJSObject(obj)); \ 262 BaseObject* target; // Used for strong pointers. [all …]
|
D | node_messaging.cc | 42 using BaseObjectList = std::vector<BaseObjectPtr<BaseObject>>; 44 BaseObject::TransferMode BaseObject::GetTransferMode() const { in GetTransferMode() 45 return BaseObject::TransferMode::kUntransferable; in GetTransferMode() 48 std::unique_ptr<worker::TransferData> BaseObject::TransferForMessaging() { in TransferForMessaging() 52 std::unique_ptr<worker::TransferData> BaseObject::CloneForMessaging() const { in CloneForMessaging() 56 Maybe<BaseObjectList> BaseObject::NestedTransferables() const { in NestedTransferables() 60 Maybe<bool> BaseObject::FinalizeTransferRead( in FinalizeTransferRead() 88 const std::vector<BaseObjectPtr<BaseObject>>& host_objects, in DeserializerDelegate() 120 const std::vector<BaseObjectPtr<BaseObject>>& host_objects_; 135 std::vector<BaseObjectPtr<BaseObject>> host_objects(transferables_.size()); in Deserialize() [all …]
|
D | node_postmortem_metadata.cc | 20 V(BaseObject, persistent_handle_, v8_Persistent_v8_Object, \ 21 BaseObject::persistent_handle_) \ 55 BaseObject::kInternalFieldCount; in GenDebugSymbols()
|
D | node_messaging.h | 29 virtual BaseObjectPtr<BaseObject> Deserialize( 135 BaseObjectPtr<BaseObject> Deserialize( 252 class JSTransferable : public BaseObject { 260 v8::Maybe<std::vector<BaseObjectPtr<BaseObject>>> 277 BaseObjectPtr<BaseObject> Deserialize(
|
D | node_crypto.h | 89 class SecureContext final : public BaseObject { 448 class KeyObjectHandle : public BaseObject { 488 class NativeKeyObject : public BaseObject { 501 BaseObjectPtr<BaseObject> Deserialize( in SET_MEMORY_INFO_NAME() 514 BaseObject::TransferMode GetTransferMode() const override; 521 : BaseObject(env, wrap), in NativeKeyObject() 529 class CipherBase : public BaseObject { 606 class Hmac : public BaseObject { 630 class Hash final : public BaseObject { 658 class SignBase : public BaseObject { [all …]
|
D | README.md | 113 pointer to a [`BaseObject`][] subclass, which then contains all relevant 302 It also provides [cleanup hooks][] and maintains a list of [`BaseObject`][] 309 * Given a [`BaseObject`][], using `env()` or `self->env()`. 395 // Allow for 1 internal field, see `BaseObject` for details on this: 472 That object is always a [`BaseObject`][]. 481 class BindingData : public BaseObject { 483 BindingData(Environment* env, Local<Object> obj) : BaseObject(env, obj) {} 696 Every [`BaseObject`][] has its own cleanup hook that deletes it. For 745 ### `BaseObject` 748 need to be tied together. `BaseObject` is the main abstraction for that in [all …]
|
D | node_blob.h | 24 class Blob : public BaseObject { 65 BaseObjectPtr<BaseObject> Deserialize( 79 BaseObject::TransferMode GetTransferMode() const override;
|
D | node_blob.cc | 42 BaseObject::kInternalFieldCount); in GetConstructorTemplate() 43 tmpl->Inherit(BaseObject::GetConstructorTemplate(env)); in GetConstructorTemplate() 196 : BaseObject(env, obj), in Blob() 202 BaseObjectPtr<BaseObject> 214 BaseObject::TransferMode Blob::GetTransferMode() const { in GetTransferMode() 215 return BaseObject::TransferMode::kCloneable; in GetTransferMode()
|
D | env.cc | 264 BaseObject::kInternalFieldCount); in CreateProperties() 265 templ->Inherit(BaseObject::GetConstructorTemplate(this)); in CreateProperties() 1098 ForEachBaseObject([](BaseObject* obj) { in VerifyNoStrongBaseObjects() 1132 env->ForEachBaseObject([&](BaseObject* obj) { in BuildEmbedderGraph() 1309 void BaseObject::DeleteMe(void* data) { in DeleteMe() 1310 BaseObject* self = static_cast<BaseObject*>(data); in DeleteMe() 1318 bool BaseObject::IsDoneInitializing() const { return true; } in IsDoneInitializing() 1320 Local<Object> BaseObject::WrappedObject() const { in WrappedObject() 1324 bool BaseObject::IsRootNode() const { in IsRootNode() 1328 Local<FunctionTemplate> BaseObject::GetConstructorTemplate(Environment* env) { in GetConstructorTemplate() [all …]
|
D | node_trace_events.cc | 26 class NodeCategorySet : public BaseObject { 50 BaseObject(env, wrap), categories_(std::move(categories)) { in NodeCategorySet() 134 category_set->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize()
|
D | node_http2_state.h | 84 class Http2State : public BaseObject { 87 : BaseObject(env, obj), in Http2State()
|
D | stream_base.h | 39 kSlot = BaseObject::kSlot, 40 kStreamReqField = BaseObject::kInternalFieldCount, 303 kSlot = BaseObject::kSlot, 304 kStreamBaseField = BaseObject::kInternalFieldCount,
|
D | node_contextify.h | 13 class MicrotaskQueueWrap : public BaseObject { 134 class ContextifyScript : public BaseObject { 165 class CompiledFnEntry final : public BaseObject {
|
D | node_serdes.cc | 31 class SerializerContext : public BaseObject, 65 class DeserializerContext : public BaseObject, 98 : BaseObject(env, wrap), in SerializerContext() 287 : BaseObject(env, wrap), in DeserializerContext() 462 ser->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize() 486 des->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize()
|
D | module_wrap.h | 33 class ModuleWrap : public BaseObject { 36 kModuleWrapBaseField = BaseObject::kInternalFieldCount,
|
D | node_sockaddr.h | 150 class SocketAddressBase : public BaseObject { 191 BaseObjectPtr<BaseObject> Deserialize( 337 class SocketAddressBlockListWrap : public BaseObject { 383 BaseObjectPtr<BaseObject> Deserialize(
|
D | histogram.cc | 40 : BaseObject(env, wrap), in HistogramBase() 49 : BaseObject(env, wrap), in HistogramBase() 181 tmpl->Inherit(BaseObject::GetConstructorTemplate(env)); in GetConstructorTemplate() 204 BaseObjectPtr<BaseObject> HistogramBase::HistogramTransferData::Deserialize( in Deserialize()
|
D | node_v8.h | 15 class BindingData : public BaseObject {
|
D | node_sockaddr.cc | 547 : BaseObject(env, wrap), in SocketAddressBlockListWrap() 701 tmpl->Inherit(BaseObject::GetConstructorTemplate(env)); in GetConstructorTemplate() 732 BaseObjectPtr<BaseObject> SocketAddressBlockListWrap::TransferData::Deserialize( in Deserialize() 756 tmpl->Inherit(BaseObject::GetConstructorTemplate(env)); in GetConstructorTemplate() 856 : BaseObject(env, wrap), in SocketAddressBase() 874 BaseObjectPtr<BaseObject> SocketAddressBase::TransferData::Deserialize( in Deserialize()
|
D | node_util.cc | 197 class WeakReference : public BaseObject { 200 : BaseObject(env, object) { in WeakReference() 340 weak_ref->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize()
|
D | histogram.h | 76 class HistogramBase : public BaseObject, public HistogramImpl { 136 BaseObjectPtr<BaseObject> Deserialize(
|
D | node_file.h | 17 class BindingData : public BaseObject { 20 : BaseObject(env, wrap), in BindingData() 290 BaseObjectPtr<BaseObject> Deserialize(
|
/third_party/node/test/cctest/ |
D | test_base_object_ptr.cc | 6 using node::BaseObject; 19 class DummyBaseObject : public BaseObject { 21 DummyBaseObject(Environment* env, Local<Object> obj) : BaseObject(env, obj) {} in DummyBaseObject() 24 return BaseObject::MakeLazilyInitializedJSTemplate(env) in MakeJSObject() 149 class ObjectWithPtr : public BaseObject { in TEST_F() 151 ObjectWithPtr(Environment* env, Local<Object> obj) : BaseObject(env, obj) {} in TEST_F() 153 BaseObjectPtr<BaseObject> ptr1; in TEST_F() 154 BaseObjectPtr<BaseObject> ptr2; in TEST_F()
|
D | test_node_postmortem_metadata.cc | 73 int kInternalFieldCount = node::BaseObject::kInternalFieldCount; in TEST_F() 83 class DummyBaseObject : public node::BaseObject { 86 BaseObject(env, obj) {} in DummyBaseObject()
|