Home
last modified time | relevance | path

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

123

/third_party/node/src/
Dbase_object-inl.h42 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 …]
Dbase_object.h41 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 …]
Dnode_messaging.cc42 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 …]
Dnode_postmortem_metadata.cc20 V(BaseObject, persistent_handle_, v8_Persistent_v8_Object, \
21 BaseObject::persistent_handle_) \
55 BaseObject::kInternalFieldCount; in GenDebugSymbols()
Dnode_messaging.h29 virtual BaseObjectPtr<BaseObject> Deserialize(
135 BaseObjectPtr<BaseObject> Deserialize(
252 class JSTransferable : public BaseObject {
260 v8::Maybe<std::vector<BaseObjectPtr<BaseObject>>>
277 BaseObjectPtr<BaseObject> Deserialize(
Dnode_crypto.h89 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 …]
DREADME.md113 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 …]
Dnode_blob.h24 class Blob : public BaseObject {
65 BaseObjectPtr<BaseObject> Deserialize(
79 BaseObject::TransferMode GetTransferMode() const override;
Dnode_blob.cc42 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()
Denv.cc264 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 …]
Dnode_trace_events.cc26 class NodeCategorySet : public BaseObject {
50 BaseObject(env, wrap), categories_(std::move(categories)) { in NodeCategorySet()
134 category_set->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize()
Dnode_http2_state.h84 class Http2State : public BaseObject {
87 : BaseObject(env, obj), in Http2State()
Dstream_base.h39 kSlot = BaseObject::kSlot,
40 kStreamReqField = BaseObject::kInternalFieldCount,
303 kSlot = BaseObject::kSlot,
304 kStreamBaseField = BaseObject::kInternalFieldCount,
Dnode_contextify.h13 class MicrotaskQueueWrap : public BaseObject {
134 class ContextifyScript : public BaseObject {
165 class CompiledFnEntry final : public BaseObject {
Dnode_serdes.cc31 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()
Dmodule_wrap.h33 class ModuleWrap : public BaseObject {
36 kModuleWrapBaseField = BaseObject::kInternalFieldCount,
Dnode_sockaddr.h150 class SocketAddressBase : public BaseObject {
191 BaseObjectPtr<BaseObject> Deserialize(
337 class SocketAddressBlockListWrap : public BaseObject {
383 BaseObjectPtr<BaseObject> Deserialize(
Dhistogram.cc40 : 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()
Dnode_v8.h15 class BindingData : public BaseObject {
Dnode_sockaddr.cc547 : 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()
Dnode_util.cc197 class WeakReference : public BaseObject {
200 : BaseObject(env, object) { in WeakReference()
340 weak_ref->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize()
Dhistogram.h76 class HistogramBase : public BaseObject, public HistogramImpl {
136 BaseObjectPtr<BaseObject> Deserialize(
Dnode_file.h17 class BindingData : public BaseObject {
20 : BaseObject(env, wrap), in BindingData()
290 BaseObjectPtr<BaseObject> Deserialize(
/third_party/node/test/cctest/
Dtest_base_object_ptr.cc6 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()
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()

123