Lines Matching defs:args
155 void CachedDataVersionTag(const FunctionCallbackInfo<Value>& args) {
156 Environment* env = Environment::GetCurrent(args);
160 args.GetReturnValue().Set(result);
163 void SetHeapSnapshotNearHeapLimit(const FunctionCallbackInfo<Value>& args) {
164 CHECK(args[0]->IsUint32());
165 Environment* env = Environment::GetCurrent(args);
166 uint32_t limit = args[0].As<v8::Uint32>()->Value();
172 void UpdateHeapStatisticsBuffer(const FunctionCallbackInfo<Value>& args) {
173 BindingData* data = Realm::GetBindingData<BindingData>(args);
175 args.GetIsolate()->GetHeapStatistics(&s);
183 void UpdateHeapSpaceStatisticsBuffer(const FunctionCallbackInfo<Value>& args) {
184 BindingData* data = Realm::GetBindingData<BindingData>(args);
186 Isolate* const isolate = args.GetIsolate();
187 CHECK(args[0]->IsUint32());
188 size_t space_index = static_cast<size_t>(args[0].As<v8::Uint32>()->Value());
198 void UpdateHeapCodeStatisticsBuffer(const FunctionCallbackInfo<Value>& args) {
199 BindingData* data = Realm::GetBindingData<BindingData>(args);
201 args.GetIsolate()->GetHeapCodeAndMetadataStatistics(&s);
210 void SetFlagsFromString(const FunctionCallbackInfo<Value>& args) {
211 CHECK(args[0]->IsString());
212 String::Utf8Value flags(args.GetIsolate(), args[0]);
338 void GCProfiler::New(const FunctionCallbackInfo<Value>& args) {
339 CHECK(args.IsConstructCall());
340 Environment* env = Environment::GetCurrent(args);
341 new GCProfiler(env, args.This());
344 void GCProfiler::Start(const FunctionCallbackInfo<Value>& args) {
345 Environment* env = Environment::GetCurrent(args);
347 ASSIGN_OR_RETURN_UNWRAP(&profiler, args.Holder());
369 void GCProfiler::Stop(const FunctionCallbackInfo<v8::Value>& args) {
370 Environment* env = Environment::GetCurrent(args);
372 ASSIGN_OR_RETURN_UNWRAP(&profiler, args.Holder());
387 args.GetReturnValue().Set(String::NewFromUtf8(env->isolate(),