Lines Matching refs:JSRuntime

49 typedef struct JSRuntime JSRuntime;  typedef
331 JSRuntime *JS_NewRuntime(void);
333 void JS_SetRuntimeInfo(JSRuntime *rt, const char *info);
334 void JS_SetMemoryLimit(JSRuntime *rt, size_t limit);
335 void JS_SetGCThreshold(JSRuntime *rt, size_t gc_threshold);
336 void JS_SetMaxStackSize(JSRuntime *rt, size_t stack_size);
337 JSRuntime *JS_NewRuntime2(const JSMallocFunctions *mf, void *opaque);
338 void JS_FreeRuntime(JSRuntime *rt);
339 void *JS_GetRuntimeOpaque(JSRuntime *rt);
340 void JS_SetRuntimeOpaque(JSRuntime *rt, void *opaque);
341 typedef void JS_MarkFunc(JSRuntime *rt, JSGCObjectHeader *gp);
342 void JS_MarkValue(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func);
343 void JS_RunGC(JSRuntime *rt);
344 JS_BOOL JS_IsLiveObject(JSRuntime *rt, JSValueConst obj);
346 JSContext *JS_NewContext(JSRuntime *rt);
351 JSRuntime *JS_GetRuntime(JSContext *ctx);
357 JSContext *JS_NewContextRaw(JSRuntime *rt);
380 void *js_malloc_rt(JSRuntime *rt, size_t size);
381 void js_free_rt(JSRuntime *rt, void *ptr);
382 void *js_realloc_rt(JSRuntime *rt, void *ptr, size_t size);
383 size_t js_malloc_usable_size_rt(JSRuntime *rt, const void *ptr);
384 void *js_mallocz_rt(JSRuntime *rt, size_t size);
411 void JS_ComputeMemoryUsage(JSRuntime *rt, JSMemoryUsage *s);
412 void JS_DumpMemoryUsage(FILE *fp, const JSMemoryUsage *s, JSRuntime *rt);
420 void JS_FreeAtomRT(JSRuntime *rt, JSAtom v);
470 typedef void JSClassFinalizer(JSRuntime *rt, JSValue val);
471 typedef void JSClassGCMark(JSRuntime *rt, JSValueConst val,
494 int JS_NewClass(JSRuntime *rt, JSClassID class_id, const JSClassDef *class_def);
495 int JS_IsRegisteredClass(JSRuntime *rt, JSClassID class_id);
646 void __JS_FreeValueRT(JSRuntime *rt, JSValue v);
647 static inline void JS_FreeValueRT(JSRuntime *rt, JSValue v) in JS_FreeValueRT()
666 static inline JSValue JS_DupValueRT(JSRuntime *rt, JSValueConst v) in JS_DupValueRT()
808 typedef void JSFreeArrayBufferDataFunc(JSRuntime *rt, void *opaque, void *ptr);
825 void JS_SetSharedArrayBufferFunctions(JSRuntime *rt,
834 void JS_SetHostPromiseRejectionTracker(JSRuntime *rt, JSHostPromiseRejectionTracker *cb, void *opaq…
837 typedef int JSInterruptHandler(JSRuntime *rt, void *opaque);
838 void JS_SetInterruptHandler(JSRuntime *rt, JSInterruptHandler *cb, void *opaque);
840 void JS_SetCanBlock(JSRuntime *rt, JS_BOOL can_block);
854 void JS_SetModuleLoaderFunc(JSRuntime *rt,
866 JS_BOOL JS_IsJobPending(JSRuntime *rt);
867 int JS_ExecutePendingJob(JSRuntime *rt, JSContext **pctx);