Lines Matching refs:HandleWrap
40 void HandleWrap::Ref(const FunctionCallbackInfo<Value>& args) {
41 HandleWrap* wrap;
49 void HandleWrap::Unref(const FunctionCallbackInfo<Value>& args) {
50 HandleWrap* wrap;
58 void HandleWrap::HasRef(const FunctionCallbackInfo<Value>& args) {
59 HandleWrap* wrap;
65 void HandleWrap::Close(const FunctionCallbackInfo<Value>& args) {
66 HandleWrap* wrap;
72 void HandleWrap::Close(Local<Value> close_callback) {
88 void HandleWrap::OnGCCollect() {
89 // When all references to a HandleWrap are lost and the object is supposed to
102 bool HandleWrap::IsNotIndicativeOfMemoryLeakAtExit() const {
104 !HandleWrap::HasRef(this) ||
109 void HandleWrap::MarkAsInitialized() {
115 void HandleWrap::MarkAsUninitialized() {
121 HandleWrap::HandleWrap(Environment* env,
135 void HandleWrap::OnClose(uv_handle_t* handle) {
137 BaseObjectPtr<HandleWrap> wrap { static_cast<HandleWrap*>(handle->data) };
158 Local<FunctionTemplate> HandleWrap::GetConstructorTemplate(Environment* env) {
163 tmpl->SetClassName(FIXED_ONE_BYTE_STRING(env->isolate(), "HandleWrap"));
165 SetProtoMethod(isolate, tmpl, "close", HandleWrap::Close);
166 SetProtoMethodNoSideEffect(isolate, tmpl, "hasRef", HandleWrap::HasRef);
167 SetProtoMethod(isolate, tmpl, "ref", HandleWrap::Ref);
168 SetProtoMethod(isolate, tmpl, "unref", HandleWrap::Unref);
174 void HandleWrap::RegisterExternalReferences(
176 registry->Register(HandleWrap::Close);
177 registry->Register(HandleWrap::HasRef);
178 registry->Register(HandleWrap::Ref);
179 registry->Register(HandleWrap::Unref);
185 node::HandleWrap::RegisterExternalReferences)