Lines Matching defs:args
64 static void Abort(const FunctionCallbackInfo<Value>& args) {
69 static void CauseSegfault(const FunctionCallbackInfo<Value>& args) {
75 static void Chdir(const FunctionCallbackInfo<Value>& args) {
76 Environment* env = Environment::GetCurrent(args);
79 CHECK_EQ(args.Length(), 1);
80 CHECK(args[0]->IsString());
81 Utf8Value path(env->isolate(), args[0]);
94 const FunctionCallbackInfo<Value>& args,
97 CHECK(args[index]->IsFloat64Array());
98 Local<Float64Array> arr = args[index].As<Float64Array>();
108 static void CPUUsage(const FunctionCallbackInfo<Value>& args) {
109 Environment* env = Environment::GetCurrent(args);
118 Local<ArrayBuffer> ab = get_fields_array_buffer(args, 0, 2);
126 static void Cwd(const FunctionCallbackInfo<Value>& args) {
127 Environment* env = Environment::GetCurrent(args);
139 args.GetReturnValue().Set(cwd);
142 static void Kill(const FunctionCallbackInfo<Value>& args) {
143 Environment* env = Environment::GetCurrent(args);
146 if (args.Length() < 2) {
151 if (!args[0]->Int32Value(context).To(&pid)) return;
153 if (!args[1]->Int32Value(context).To(&sig)) return;
165 args.GetReturnValue().Set(err);
168 static void Rss(const FunctionCallbackInfo<Value>& args) {
169 Environment* env = Environment::GetCurrent(args);
176 args.GetReturnValue().Set(static_cast<double>(rss));
179 static void MemoryUsage(const FunctionCallbackInfo<Value>& args) {
180 Environment* env = Environment::GetCurrent(args);
191 Local<ArrayBuffer> ab = get_fields_array_buffer(args, 0, 5);
209 static void GetConstrainedMemory(const FunctionCallbackInfo<Value>& args) {
212 args.GetReturnValue().Set(static_cast<double>(value));
216 void RawDebug(const FunctionCallbackInfo<Value>& args) {
217 CHECK(args.Length() == 1 && args[0]->IsString() &&
219 Utf8Value message(args.GetIsolate(), args[0]);
224 static void Umask(const FunctionCallbackInfo<Value>& args) {
225 Environment* env = Environment::GetCurrent(args);
227 CHECK_EQ(args.Length(), 1);
228 CHECK(args[0]->IsUndefined() || args[0]->IsUint32());
232 if (args[0]->IsUndefined()) {
236 int oct = args[0].As<Uint32>()->Value();
240 args.GetReturnValue().Set(old);
243 static void Uptime(const FunctionCallbackInfo<Value>& args) {
244 Environment* env = Environment::GetCurrent(args);
250 args.GetReturnValue().Set(result);
253 static void GetActiveRequests(const FunctionCallbackInfo<Value>& args) {
254 Environment* env = Environment::GetCurrent(args);
264 args.GetReturnValue().Set(
270 void GetActiveHandles(const FunctionCallbackInfo<Value>& args) {
271 Environment* env = Environment::GetCurrent(args);
279 args.GetReturnValue().Set(
283 static void GetActiveResourcesInfo(const FunctionCallbackInfo<Value>& args) {
284 Environment* env = Environment::GetCurrent(args);
312 args.GetReturnValue().Set(
316 static void ResourceUsage(const FunctionCallbackInfo<Value>& args) {
317 Environment* env = Environment::GetCurrent(args);
324 Local<ArrayBuffer> ab = get_fields_array_buffer(args, 0, 16);
346 static void DebugProcess(const FunctionCallbackInfo<Value>& args) {
347 Environment* env = Environment::GetCurrent(args);
349 if (args.Length() < 1) {
353 CHECK(args[0]->IsNumber());
354 pid_t pid = args[0].As<Integer>()->Value();
370 static void DebugProcess(const FunctionCallbackInfo<Value>& args) {
371 Environment* env = Environment::GetCurrent(args);
372 Isolate* isolate = args.GetIsolate();
374 if (args.Length() < 1) {
392 CHECK(args[0]->IsNumber());
393 pid = static_cast<DWORD>(args[0].As<Integer>()->Value());
444 static void DebugEnd(const FunctionCallbackInfo<Value>& args) {
446 Environment* env = Environment::GetCurrent(args);
453 static void ReallyExit(const FunctionCallbackInfo<Value>& args) {
454 Environment* env = Environment::GetCurrent(args);
456 int code = args[0]->Int32Value(env->context()).FromMaybe(0);
530 void BindingData::SlowBigInt(const FunctionCallbackInfo<Value>& args) {
531 BigIntImpl(FromJSObject<BindingData>(args.Holder()));
534 void BindingData::SlowNumber(const v8::FunctionCallbackInfo<v8::Value>& args) {
535 NumberImpl(FromJSObject<BindingData>(args.Holder()));