Lines Matching refs:rt
14 static JSRuntime *rt = NULL; variable
271 rt = JS_NewRuntime(); in jsengine_init()
272 if (rt == NULL) { in jsengine_init()
276 js_std_init_handlers(rt); in jsengine_init()
278 ctx = JS_NewContext(rt); in jsengine_init()
283 JS_SetCanBlock(rt, 1); in jsengine_init()
286 JS_SetModuleLoaderFunc(rt, NULL, quickjs_module_loader, NULL); in jsengine_init()
397 JS_FreeRuntime(rt); in jsengine_exit()
402 JS_RunGC(rt); in dump_quickjs_memory()
404 JS_ComputeMemoryUsage(rt, &stats); in dump_quickjs_memory()
405 JS_DumpMemoryUsage(stdout, &stats, rt); in dump_quickjs_memory()