Home
last modified time | relevance | path

Searched refs:BaseObject (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/node/src/
Dbase_object.cc16 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 …]
Dbase_object-inl.h35 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 …]
Dbase_object.h45 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 …]
Dcleanup_queue-inl.h14 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()
Dnode_messaging.cc43 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 …]
Dnode_postmortem_metadata.cc20 V(BaseObject, persistent_handle_, v8_Persistent_v8_Object, \
21 BaseObject::persistent_handle_) \
55 BaseObject::kInternalFieldCount; in GenDebugSymbols()
Dnode_blob.cc59 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()
DREADME.md119 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 …]
Dcleanup_queue.h15 class BaseObject; variable
71 inline BaseObject* GetBaseObject(const CleanupHookCallback& callback) const;
Dnode_wasm_web_api.h13 class WasmStreamingObject final : public BaseObject {
28 : BaseObject(env, object) { in WasmStreamingObject()
Dnode_messaging.h33 virtual BaseObjectPtr<BaseObject> Deserialize(
196 BaseObjectPtr<BaseObject> Deserialize(
321 class JSTransferable : public BaseObject {
329 v8::Maybe<std::vector<BaseObjectPtr<BaseObject>>>
346 BaseObjectPtr<BaseObject> Deserialize(
Dnode_contextify.h15 class MicrotaskQueueWrap : public BaseObject {
44 class ContextifyContext : public BaseObject {
150 class ContextifyScript : public BaseObject {
181 class CompiledFnEntry final : public BaseObject {
Dnode_blob.h27 class Blob : public BaseObject {
75 BaseObjectPtr<BaseObject> Deserialize(
89 BaseObject::TransferMode GetTransferMode() const override;
Dnode_trace_events.cc30 class NodeCategorySet : public BaseObject {
54 BaseObject(env, wrap), categories_(std::move(categories)) { in NodeCategorySet()
140 category_set->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize()
Dnode_http2_state.h84 class Http2State : public BaseObject {
87 : BaseObject(realm, obj), in Http2State()
Dstream_base.h39 kSlot = BaseObject::kSlot,
40 kStreamReqField = BaseObject::kInternalFieldCount,
310 kSlot = BaseObject::kSlot,
311 kStreamBaseField = BaseObject::kInternalFieldCount,
Dnode_serdes.cc32 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()
Dmodule_wrap.h33 class ModuleWrap : public BaseObject {
36 kModuleWrapBaseField = BaseObject::kInternalFieldCount,
Dnode_sockaddr.h151 class SocketAddressBase : public BaseObject {
192 BaseObjectPtr<BaseObject> Deserialize(
338 class SocketAddressBlockListWrap : public BaseObject {
384 BaseObjectPtr<BaseObject> Deserialize(
/third_party/node/test/cctest/
Dtest_base_object_ptr.cc7 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()
Dtest_node_postmortem_metadata.cc73 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/
Dcrypto_keys.h164 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()
Dcrypto_x509.h38 class X509Certificate : public BaseObject {
109 BaseObjectPtr<BaseObject> Deserialize( in SET_SELF_SIZE()
122 BaseObject::TransferMode GetTransferMode() const override;
Dcrypto_x509.cc73 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/
Dpacket.h115 int Send(uv_udp_t* handle, BaseObjectPtr<BaseObject> ref);
161 BaseObjectPtr<BaseObject> handle_;

1234