/third_party/node/src/ |
D | base_object.cc | 16 BaseObject::BaseObject(Realm* realm, Local<Object> object) in BaseObject() function in node::BaseObject 19 CHECK_GE(object->InternalFieldCount(), BaseObject::kInternalFieldCount); in BaseObject() 25 BaseObject::~BaseObject() { in ~BaseObject() 43 object()->SetAlignedPointerInInternalField(BaseObject::kSlot, nullptr); in ~BaseObject() 47 void BaseObject::MakeWeak() { in MakeWeak() 55 [](const WeakCallbackInfo<BaseObject>& data) { in MakeWeak() 56 BaseObject* obj = data.GetParameter(); in MakeWeak() 76 void BaseObject::LazilyInitializedJSTemplateConstructor( in LazilyInitializedJSTemplateConstructor() 79 CHECK_GE(args.This()->InternalFieldCount(), BaseObject::kInternalFieldCount); in LazilyInitializedJSTemplateConstructor() 83 Local<FunctionTemplate> BaseObject::MakeLazilyInitializedJSTemplate( in MakeLazilyInitializedJSTemplate() [all …]
|
D | base_object-inl.h | 35 BaseObject::BaseObject(Environment* env, v8::Local<v8::Object> object) in BaseObject() function 36 : BaseObject(env->principal_realm(), object) { in BaseObject() 42 v8::Local<v8::FunctionTemplate> BaseObject::GetConstructorTemplate( in GetConstructorTemplate() 44 return BaseObject::GetConstructorTemplate(env->isolate_data()); in GetConstructorTemplate() 47 void BaseObject::Detach() { in Detach() 52 v8::Global<v8::Object>& BaseObject::persistent() { in persistent() 57 v8::Local<v8::Object> BaseObject::object() const { in object() 61 v8::Local<v8::Object> BaseObject::object(v8::Isolate* isolate) const { in object() 71 Environment* BaseObject::env() const { in env() 75 Realm* BaseObject::realm() const { in realm() [all …]
|
D | base_object.h | 45 class BaseObject : public MemoryRetainer { 52 BaseObject(Realm* realm, v8::Local<v8::Object> object); 54 inline BaseObject(Environment* env, v8::Local<v8::Object> object); 55 ~BaseObject() override; 57 BaseObject() = delete; 81 static inline BaseObject* FromJSObject(v8::Local<v8::Value> object); 169 virtual v8::Maybe<std::vector<BaseObjectPtrImpl<BaseObject, false>>> 216 BaseObject* self = nullptr; 235 return BaseObject::FromJSObject<T>(obj); in Unwrap() 241 BaseObject::FromJSObject(obj)); \ [all …]
|
D | cleanup_queue-inl.h | 14 ForEachBaseObject([&](BaseObject* obj) { in MemoryInfo() 45 BaseObject* obj = GetBaseObject(hook); in ForEachBaseObject() 50 BaseObject* CleanupQueue::GetBaseObject( in GetBaseObject() 52 if (callback.fn_ == BaseObject::DeleteMe) in GetBaseObject() 53 return static_cast<BaseObject*>(callback.arg_); in GetBaseObject()
|
D | node_messaging.cc | 43 using BaseObjectList = std::vector<BaseObjectPtr<BaseObject>>; 49 BaseObject::TransferMode BaseObject::GetTransferMode() const { in GetTransferMode() 50 return BaseObject::TransferMode::kUntransferable; in GetTransferMode() 53 std::unique_ptr<worker::TransferData> BaseObject::TransferForMessaging() { in TransferForMessaging() 57 std::unique_ptr<worker::TransferData> BaseObject::CloneForMessaging() const { in CloneForMessaging() 61 Maybe<BaseObjectList> BaseObject::NestedTransferables() const { in NestedTransferables() 65 Maybe<bool> BaseObject::FinalizeTransferRead( in FinalizeTransferRead() 93 const std::vector<BaseObjectPtr<BaseObject>>& host_objects, in DeserializerDelegate() 134 const std::vector<BaseObjectPtr<BaseObject>>& host_objects_; 156 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_blob.cc | 59 BaseObject::kInternalFieldCount); in GetConstructorTemplate() 60 tmpl->Inherit(BaseObject::GetConstructorTemplate(env)); in GetConstructorTemplate() 211 : BaseObject(env, obj), in Blob() 217 BaseObjectPtr<BaseObject> 229 BaseObject::TransferMode Blob::GetTransferMode() const { in GetTransferMode() 230 return BaseObject::TransferMode::kCloneable; in GetTransferMode() 463 DCHECK_EQ(index, BaseObject::kEmbedderType); in Deserialize() 480 DCHECK_EQ(index, BaseObject::kEmbedderType); in Serialize()
|
D | README.md | 119 pointer to a [`BaseObject`][] subclass, which then contains all relevant 323 * Given a [`BaseObject`][], using `env()` or `self->env()`. 356 It also provides [cleanup hooks][] and maintains a list of [`BaseObject`][] 363 * Given a [`BaseObject`][], using `realm()` or `self->realm()`. 451 // Allow for 1 internal field, see `BaseObject` for details on this: 529 That object is always a [`BaseObject`][]. 538 class BindingData : public BaseObject { 540 BindingData(Realm* realm, Local<Object> obj) : BaseObject(realm, obj) {} 758 Every [`BaseObject`][] has its own cleanup hook that deletes it. For 808 ### `BaseObject` [all …]
|
D | cleanup_queue.h | 15 class BaseObject; variable 71 inline BaseObject* GetBaseObject(const CleanupHookCallback& callback) const;
|
D | node_wasm_web_api.h | 13 class WasmStreamingObject final : public BaseObject { 28 : BaseObject(env, object) { in WasmStreamingObject()
|
D | node_messaging.h | 33 virtual BaseObjectPtr<BaseObject> Deserialize( 196 BaseObjectPtr<BaseObject> Deserialize( 321 class JSTransferable : public BaseObject { 329 v8::Maybe<std::vector<BaseObjectPtr<BaseObject>>> 346 BaseObjectPtr<BaseObject> Deserialize(
|
D | node_contextify.h | 15 class MicrotaskQueueWrap : public BaseObject { 44 class ContextifyContext : public BaseObject { 150 class ContextifyScript : public BaseObject { 181 class CompiledFnEntry final : public BaseObject {
|
D | node_blob.h | 27 class Blob : public BaseObject { 75 BaseObjectPtr<BaseObject> Deserialize( 89 BaseObject::TransferMode GetTransferMode() const override;
|
D | node_trace_events.cc | 30 class NodeCategorySet : public BaseObject { 54 BaseObject(env, wrap), categories_(std::move(categories)) { in NodeCategorySet() 140 category_set->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize()
|
D | node_http2_state.h | 84 class Http2State : public BaseObject { 87 : BaseObject(realm, obj), in Http2State()
|
D | stream_base.h | 39 kSlot = BaseObject::kSlot, 40 kStreamReqField = BaseObject::kInternalFieldCount, 310 kSlot = BaseObject::kSlot, 311 kStreamBaseField = BaseObject::kInternalFieldCount,
|
D | node_serdes.cc | 32 class SerializerContext : public BaseObject, 66 class DeserializerContext : public BaseObject, 99 : BaseObject(env, wrap), in SerializerContext() 288 : BaseObject(env, wrap), in DeserializerContext() 465 ser->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize() 493 des->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize()
|
D | module_wrap.h | 33 class ModuleWrap : public BaseObject { 36 kModuleWrapBaseField = BaseObject::kInternalFieldCount,
|
D | node_sockaddr.h | 151 class SocketAddressBase : public BaseObject { 192 BaseObjectPtr<BaseObject> Deserialize( 338 class SocketAddressBlockListWrap : public BaseObject { 384 BaseObjectPtr<BaseObject> Deserialize(
|
/third_party/node/test/cctest/ |
D | test_base_object_ptr.cc | 7 using node::BaseObject; 21 class DummyBaseObject : public BaseObject { 23 DummyBaseObject(Environment* env, Local<Object> obj) : BaseObject(env, obj) {} in DummyBaseObject() 26 return BaseObject::MakeLazilyInitializedJSTemplate(env) in MakeJSObject() 159 class ObjectWithPtr : public BaseObject { in TEST_F() 161 ObjectWithPtr(Environment* env, Local<Object> obj) : BaseObject(env, obj) {} in TEST_F() 163 BaseObjectPtr<BaseObject> ptr1; in TEST_F() 164 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()
|
/third_party/node/src/crypto/ |
D | crypto_keys.h | 164 class KeyObjectHandle : public BaseObject { 214 class NativeKeyObject : public BaseObject { 232 BaseObjectPtr<BaseObject> Deserialize( in SET_MEMORY_INFO_NAME() 245 BaseObject::TransferMode GetTransferMode() const override; 252 : BaseObject(env, wrap), in NativeKeyObject()
|
D | crypto_x509.h | 38 class X509Certificate : public BaseObject { 109 BaseObjectPtr<BaseObject> Deserialize( in SET_SELF_SIZE() 122 BaseObject::TransferMode GetTransferMode() const override;
|
D | crypto_x509.cc | 73 BaseObject::kInternalFieldCount); in GetConstructorTemplate() 74 tmpl->Inherit(BaseObject::GetConstructorTemplate(env)); in GetConstructorTemplate() 459 : BaseObject(env, object), in X509Certificate() 479 BaseObjectPtr<BaseObject> 493 return BaseObjectPtr<BaseObject>( in Deserialize() 498 BaseObject::TransferMode X509Certificate::GetTransferMode() const { in GetTransferMode() 499 return BaseObject::TransferMode::kCloneable; in GetTransferMode()
|
/third_party/node/src/quic/ |
D | packet.h | 115 int Send(uv_udp_t* handle, BaseObjectPtr<BaseObject> ref); 161 BaseObjectPtr<BaseObject> handle_;
|