Home
last modified time | relevance | path

Searched refs:GetReturnValue (Results 1 – 25 of 123) sorted by relevance

12345

/third_party/node/src/
Dnode_credentials.cc139 args.GetReturnValue().Set(result); in SafeGetenv()
240 args.GetReturnValue().Set(static_cast<uint32_t>(getuid())); in GetUid()
247 args.GetReturnValue().Set(static_cast<uint32_t>(getgid())); in GetGid()
254 args.GetReturnValue().Set(static_cast<uint32_t>(geteuid())); in GetEUid()
261 args.GetReturnValue().Set(static_cast<uint32_t>(getegid())); in GetEGid()
275 args.GetReturnValue().Set(1); in SetGid()
279 args.GetReturnValue().Set(0); in SetGid()
294 args.GetReturnValue().Set(1); in SetEGid()
298 args.GetReturnValue().Set(0); in SetEGid()
313 args.GetReturnValue().Set(1); in SetUid()
[all …]
Dudp_wrap.cc60 args.GetReturnValue().Set(UV_EBADF); in SetLibuvInt32()
70 args.GetReturnValue().Set(err); in SetLibuvInt32()
247 args.GetReturnValue().Set(fd); in GetFD()
268 args.GetReturnValue().Set(UV_EBADF)); in DoBind()
290 args.GetReturnValue().Set(err); in DoBind()
298 args.GetReturnValue().Set(UV_EBADF)); in DoConnect()
314 args.GetReturnValue().Set(err); in DoConnect()
322 args.GetReturnValue().Set(UV_EBADF)); in Open()
327 args.GetReturnValue().Set(err); in Open()
346 args.GetReturnValue().Set(UV_EBADF)); in BufferSize()
[all …]
Dnode_os.cc70 return args.GetReturnValue().SetUndefined(); in GetHostname()
73 args.GetReturnValue().Set( in GetHostname()
85 return args.GetReturnValue().SetUndefined(); in GetOSInformation()
95 args.GetReturnValue().Set(Array::New(env->isolate(), in GetOSInformation()
134 args.GetReturnValue().Set(Array::New(isolate, result.data(), result.size())); in GetCPUInfo()
140 args.GetReturnValue().Set(amount); in GetFreeMemory()
146 args.GetReturnValue().Set(amount); in GetTotalMemory()
156 return args.GetReturnValue().SetUndefined(); in GetUptime()
159 args.GetReturnValue().Set(uptime); in GetUptime()
186 return args.GetReturnValue().SetUndefined(); in GetInterfaceAddresses()
[all …]
Dhistogram.cc68 args.GetReturnValue().Set(value); in GetCount()
76 args.GetReturnValue().Set( in GetCountBigInt()
84 args.GetReturnValue().Set(value); in GetMin()
91 args.GetReturnValue().Set(BigInt::New(env->isolate(), (*histogram)->Min())); in GetMinBigInt()
98 args.GetReturnValue().Set(value); in GetMax()
105 args.GetReturnValue().Set( in GetMaxBigInt()
112 args.GetReturnValue().Set((*histogram)->Mean()); in GetMean()
119 args.GetReturnValue().Set(value); in GetExceeds()
126 args.GetReturnValue().Set( in GetExceedsBigInt()
133 args.GetReturnValue().Set((*histogram)->Stddev()); in GetStddev()
[all …]
Dnode_url.cc76 return args.GetReturnValue().Set(FIXED_ONE_BYTE_STRING(env->isolate(), "")); in DomainToASCII()
85 return args.GetReturnValue().Set(FIXED_ONE_BYTE_STRING(env->isolate(), "")); in DomainToASCII()
88 args.GetReturnValue().Set( in DomainToASCII()
104 return args.GetReturnValue().Set( in DomainToUnicode()
109 args.GetReturnValue().Set(String::NewFromUtf8(env->isolate(), in DomainToUnicode()
133 return args.GetReturnValue().Set(false); in CanParse()
140 args.GetReturnValue().Set(out.has_value()); in CanParse()
180 args.GetReturnValue().Set(String::NewFromUtf8(env->isolate(), in Format()
204 return args.GetReturnValue().Set(false); in Parse()
212 return args.GetReturnValue().Set(false); in Parse()
[all …]
Dnode_wasi.cc33 (args).GetReturnValue().Set(UVWASI_EINVAL); \
41 (args).GetReturnValue().Set(UVWASI_EINVAL); \
50 (args).GetReturnValue().Set(UVWASI_EINVAL); \
62 (args).GetReturnValue().Set(err); \
70 (args).GetReturnValue().Set(UVWASI_EOVERFLOW); \
286 args.GetReturnValue().Set(err); in ArgsGet()
320 args.GetReturnValue().Set(err); in ArgsSizesGet()
347 args.GetReturnValue().Set(err); in ClockResGet()
377 args.GetReturnValue().Set(err); in ClockTimeGet()
419 args.GetReturnValue().Set(err); in EnvironGet()
[all …]
Dnode_buffer.cc531 args.GetReturnValue().Set(buf); in CreateFromString()
544 return args.GetReturnValue().SetEmptyString(); in StringSlice()
567 args.GetReturnValue().Set(ret); in StringSlice()
608 if (length == 0) return args.GetReturnValue().SetEmptyString(); in DecodeUTF8()
621 args.GetReturnValue().Set(ret); in DecodeUTF8()
645 return args.GetReturnValue().Set(0); in Copy()
659 args.GetReturnValue().Set(to_copy); in Copy()
682 return args.GetReturnValue().Set(-2); in Fill()
739 return args.GetReturnValue().Set(-1); in Fill()
782 return args.GetReturnValue().Set(0); in StringWrite()
[all …]
Dtcp_wrap.cc189 args.GetReturnValue().Set(UV_EBADF)); in SetNoDelay()
192 args.GetReturnValue().Set(err); in SetNoDelay()
200 args.GetReturnValue().Set(UV_EBADF)); in SetKeepAlive()
206 args.GetReturnValue().Set(err); in SetKeepAlive()
215 args.GetReturnValue().Set(UV_EBADF)); in SetSimultaneousAccepts()
218 args.GetReturnValue().Set(err); in SetSimultaneousAccepts()
227 args.GetReturnValue().Set(UV_EBADF)); in Open()
237 args.GetReturnValue().Set(err); in Open()
248 args.GetReturnValue().Set(UV_EBADF)); in Bind()
267 args.GetReturnValue().Set(err); in Bind()
[all …]
Dnode_util.cc72 args.GetReturnValue().Set(properties); in GetOwnNonIndexProperties()
82 args.GetReturnValue().Set(name); in GetConstructorName()
94 args.GetReturnValue().Set(ret); in GetExternalValue()
112 args.GetReturnValue().Set(ret); in GetPromiseDetails()
131 args.GetReturnValue().Set( in GetProxyDetails()
136 args.GetReturnValue().Set(ret); in GetProxyDetails()
143 args.GetReturnValue().Set(buffer->WasDetached()); in IsArrayBufferDetached()
146 args.GetReturnValue().Set(false); in IsArrayBufferDetached()
160 return args.GetReturnValue().Set(entries); in PreviewEntries()
166 return args.GetReturnValue().Set( in PreviewEntries()
[all …]
Dnode_report_module.cc49 info.GetReturnValue().Set( in WriteReport()
70 info.GetReturnValue().Set( in GetReport()
76 info.GetReturnValue().Set(per_process::cli_options->report_compact); in GetCompact()
92 info.GetReturnValue().Set(result.ToLocalChecked()); in GetDirectory()
108 info.GetReturnValue().Set(result.ToLocalChecked()); in GetFilename()
123 info.GetReturnValue().Set(result.ToLocalChecked()); in GetSignal()
135 info.GetReturnValue().Set(per_process::cli_options->report_on_fatalerror); in ShouldReportOnFatalError()
146 info.GetReturnValue().Set(env->isolate_data()->options()->report_on_signal); in ShouldReportOnSignal()
158 info.GetReturnValue().Set( in ShouldReportOnUncaughtException()
Dtty_wrap.cc86 args.GetReturnValue().Set(rc); in IsTTY()
96 args.GetReturnValue().Set(UV_EBADF)); in GetWindowSize()
108 args.GetReturnValue().Set(err); in GetWindowSize()
116 args.GetReturnValue().Set(UV_EBADF)); in SetRawMode()
118 args.GetReturnValue().Set(err); in SetRawMode()
138 args.GetReturnValue().SetUndefined(); in New()
Dnode_types.cc44 args.GetReturnValue().Set(args[0]->Is##type()); \
51 args.GetReturnValue().Set( in VALUE_METHOD_MAP()
56 args.GetReturnValue().Set( in IsBoxedPrimitive()
Dpipe_wrap.cc172 args.GetReturnValue().Set(err); in Bind()
193 args.GetReturnValue().Set(err); in Fchmod()
206 args.GetReturnValue().Set(err); in Listen()
222 args.GetReturnValue().Set(err); in Open()
251 args.GetReturnValue().Set(0); // uv_pipe_connect() doesn't return errors. in Connect()
Dnode_serdes.cc193 if (ret.IsJust()) args.GetReturnValue().Set(ret.FromJust()); in WriteValue()
217 args.GetReturnValue().Set(buf.ToLocalChecked()); in ReleaseBuffer()
346 if (ret.IsJust()) args.GetReturnValue().Set(ret.FromJust()); in ReadHeader()
355 if (!ret.IsEmpty()) args.GetReturnValue().Set(ret.ToLocalChecked()); in ReadValue()
387 args.GetReturnValue().Set(ctx->deserializer_.GetWireFormatVersion()); in GetWireFormatVersion()
397 return args.GetReturnValue().Set(value); in ReadUint32()
417 return args.GetReturnValue().Set(Array::New(isolate, ret, arraysize(ret))); in ReadUint64()
427 return args.GetReturnValue().Set(value); in ReadDouble()
450 args.GetReturnValue().Set(offset); in ReadRawBytes()
Dfs_event_wrap.cc91 args.GetReturnValue().Set(!wrap->IsHandleClosing()); in GetInitialized()
158 return args.GetReturnValue().Set(err); in Start()
166 return args.GetReturnValue().Set(err); in Start()
174 args.GetReturnValue().Set(err); in Start()
Dnode_process_methods.cc139 args.GetReturnValue().Set(cwd); in Cwd()
165 args.GetReturnValue().Set(err); in Kill()
176 args.GetReturnValue().Set(static_cast<double>(rss)); in Rss()
212 args.GetReturnValue().Set(static_cast<double>(value)); in GetConstrainedMemory()
240 args.GetReturnValue().Set(old); in Umask()
250 args.GetReturnValue().Set(result); in Uptime()
264 args.GetReturnValue().Set( in GetActiveRequests()
279 args.GetReturnValue().Set( in GetActiveHandles()
312 args.GetReturnValue().Set( in GetActiveResourcesInfo()
Dnode_i18n.cc341 return args.GetReturnValue().Set(status); in Transcode()
343 return args.GetReturnValue().Set(result.ToLocalChecked()); in Transcode()
350 args.GetReturnValue().Set( in ICUErrorName()
401 args.GetReturnValue().Set(!!U_SUCCESS(status)); in Has()
433 args.GetReturnValue().Set(obj); in Create()
538 args.GetReturnValue().Set(ret); in Decode()
730 args.GetReturnValue().Set( in ToUnicode()
753 args.GetReturnValue().Set( in ToASCII()
859 args.GetReturnValue().Set(width); in GetStringWidth()
/third_party/node/src/crypto/
Dcrypto_spkac.cc43 return args.GetReturnValue().SetEmptyString(); in VerifySpkac()
48 args.GetReturnValue().Set(VerifySpkac(input)); in VerifySpkac()
79 if (input.size() == 0) return args.GetReturnValue().SetEmptyString(); in ExportPublicKey()
85 if (!pkey) return args.GetReturnValue().SetEmptyString(); in ExportPublicKey()
87 args.GetReturnValue().Set(pkey.ToBuffer(env).FromMaybe(Local<Value>())); in ExportPublicKey()
113 return args.GetReturnValue().SetEmptyString(); in ExportChallenge()
120 return args.GetReturnValue().SetEmptyString(); in ExportChallenge()
125 args.GetReturnValue().Set(outString); in ExportChallenge()
Dcrypto_x509.cc62 args.GetReturnValue().Set(ret); in Fingerprint()
204 args.GetReturnValue().Set(cert); in Parse()
217 args.GetReturnValue().Set(ret); in ReturnPropertyThroughBIO()
250 if (Property(env, cert->get()).ToLocal(&ret)) args.GetReturnValue().Set(ret); in ReturnProperty()
281 args.GetReturnValue().Set(ret); in PublicKey()
291 args.GetReturnValue().Set(ToV8Value(env, bio)); in Pem()
298 args.GetReturnValue().Set(X509_check_ca(cert->get()) == 1); in CheckCA()
325 return args.GetReturnValue().Set(ret); in CheckHost()
353 return args.GetReturnValue().Set(args[0]); in CheckEmail()
376 return args.GetReturnValue().Set(args[0]); in CheckIP()
[all …]
Dcrypto_tls.cc466 args.GetReturnValue().Set(res->object()); in Wrap()
1262 args.GetReturnValue().Set(OneByteString(env->isolate(), servername)); in GetServername()
1264 args.GetReturnValue().Set(false); in GetServername()
1467 return info.GetReturnValue().Set(0); in GetWriteQueueSize()
1470 info.GetReturnValue().Set(write_queue_size); in GetWriteQueueSize()
1562 args.GetReturnValue().Set(ret); in GetPeerCertificate()
1576 args.GetReturnValue().Set(ret); in GetPeerX509Certificate()
1586 args.GetReturnValue().Set(ret); in GetCertificate()
1595 args.GetReturnValue().Set(ret); in GetX509Certificate()
1626 args.GetReturnValue().Set(buffer); in GetFinished()
[all …]
/third_party/node/test/addons/async-resource/
Dbinding.cc42 args.GetReturnValue().Set( in CreateAsyncResource()
66 args.GetReturnValue().Set(ret.FromMaybe(Local<Value>())); in CallViaFunction()
79 args.GetReturnValue().Set(ret.FromMaybe(Local<Value>())); in CallViaString()
89 args.GetReturnValue().Set(ret.FromMaybe(Local<Value>())); in CallViaUtf8Name()
95 args.GetReturnValue().Set(r->get_async_id()); in GetAsyncId()
101 args.GetReturnValue().Set(r->get_trigger_async_id()); in GetTriggerAsyncId()
107 args.GetReturnValue().Set(r->get_resource()); in GetResource()
/third_party/node/deps/v8/src/api/
Dapi-arguments-inl.h41 Handle<V> CustomArguments<T>::GetReturnValue(Isolate* isolate) { in GetReturnValue() function
105 return GetReturnValue<RETURN_TYPE>(isolate); \
125 return GetReturnValue<RETURN_TYPE>(isolate); \
148 return GetReturnValue<Object>(isolate); in FOR_EACH_CALLBACK()
192 return GetReturnValue<Object>(isolate); in BasicCallNamedGetterCallback()
206 return GetReturnValue<Object>(isolate); in CallNamedSetter()
220 return GetReturnValue<Object>(isolate); in CallNamedDefiner()
233 return GetReturnValue<Object>(isolate); in CallIndexedSetter()
247 return GetReturnValue<Object>(isolate); in CallIndexedDefiner()
275 return GetReturnValue<Object>(isolate); in BasicCallIndexedGetterCallback()
[all …]
/third_party/node/deps/v8/src/builtins/
Daccessors.cc127 info.GetReturnValue().Set(true); in ReconfigureToDataProperty()
141 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate))); in ArgumentsIteratorGetter()
161 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate))); in ArrayLengthGetter()
192 info.GetReturnValue().Set(true); in ArrayLengthSetter()
200 info.GetReturnValue().Set(false); in ArrayLengthSetter()
223 info.GetReturnValue().Set(false); in ArrayLengthSetter()
226 info.GetReturnValue().Set(true); in ArrayLengthSetter()
250 info.GetReturnValue().Set(Utils::ToLocal(result)); in ModuleNamespaceEntryGetter()
269 info.GetReturnValue().Set(false); in ModuleNamespaceEntrySetter()
303 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate))); in StringLengthGetter()
[all …]
/third_party/node/test/addons/async-hooks-id/
Dbinding.cc11 args.GetReturnValue().Set( in GetExecutionAsyncId()
16 args.GetReturnValue().Set( in GetTriggerAsyncId()
/third_party/node/deps/v8/src/d8/
Dd8-test.cc155 args.GetReturnValue().Set(Number::New(isolate, sum)); in AddAllSlowCallback()
237 args.GetReturnValue().Set(Number::New(isolate, dummy_result)); in AddAllSequenceSlowCallback()
272 args.GetReturnValue().Set(Number::New(isolate, sum)); in AddAllSequenceSlowCallback()
384 args.GetReturnValue().Set(Number::New(isolate, sum)); in AddAllTypedArraySlowCallback()
395 args.GetReturnValue().Set(Number::New(isolate, sum)); in AddAllTypedArraySlowCallback()
455 args.GetReturnValue().Set(Number::New(isolate, sum)); in Add32BitIntSlowCallback()
577 args.GetReturnValue().Set(Number::New(isolate, sum)); in AddAll32BitIntSlowCallback()
636 args.GetReturnValue().Set(Boolean::New(isolate, result)); in IsFastCApiObjectSlowCallback()
642 args.GetReturnValue().Set( in FastCallCount()
648 args.GetReturnValue().Set( in SlowCallCount()
[all …]

12345