Lines Matching defs:tmpl
699 Local<FunctionTemplate> tmpl = env->blocklist_constructor_template();
700 if (tmpl.IsEmpty()) {
702 tmpl = NewFunctionTemplate(isolate, SocketAddressBlockListWrap::New);
703 tmpl->SetClassName(FIXED_ONE_BYTE_STRING(env->isolate(), "BlockList"));
704 tmpl->Inherit(BaseObject::GetConstructorTemplate(env));
705 tmpl->InstanceTemplate()->SetInternalFieldCount(kInternalFieldCount);
706 SetProtoMethod(isolate, tmpl, "addAddress", AddAddress);
707 SetProtoMethod(isolate, tmpl, "addRange", AddRange);
708 SetProtoMethod(isolate, tmpl, "addSubnet", AddSubnet);
709 SetProtoMethod(isolate, tmpl, "check", Check);
710 SetProtoMethod(isolate, tmpl, "getRules", GetRules);
711 env->set_blocklist_constructor_template(tmpl);
713 return tmpl;
753 Local<FunctionTemplate> tmpl = env->socketaddress_constructor_template();
754 if (tmpl.IsEmpty()) {
756 tmpl = NewFunctionTemplate(isolate, New);
757 tmpl->SetClassName(FIXED_ONE_BYTE_STRING(env->isolate(), "SocketAddress"));
758 tmpl->InstanceTemplate()->SetInternalFieldCount(
760 tmpl->Inherit(BaseObject::GetConstructorTemplate(env));
761 SetProtoMethod(isolate, tmpl, "detail", Detail);
762 SetProtoMethod(isolate, tmpl, "legacyDetail", LegacyDetail);
763 SetProtoMethodNoSideEffect(isolate, tmpl, "flowlabel", GetFlowLabel);
764 env->set_socketaddress_constructor_template(tmpl);
766 return tmpl;