Searched refs:JSMallocState (Results 1 – 3 of 3) sorted by relevance
/third_party/quickjs/ |
D | qjs.c | 161 js_trace_malloc_printf(JSMallocState *s, const char *fmt, ...) in js_trace_malloc_printf() 199 static void *js_trace_malloc(JSMallocState *s, size_t size) in js_trace_malloc() 217 static void js_trace_free(JSMallocState *s, void *ptr) in js_trace_free() 228 static void *js_trace_realloc(JSMallocState *s, void *ptr, size_t size) in js_trace_realloc()
|
D | quickjs.h | 315 typedef struct JSMallocState { struct 320 } JSMallocState; typedef 323 void *(*js_malloc)(JSMallocState *s, size_t size); 324 void (*js_free)(JSMallocState *s, void *ptr); 325 void *(*js_realloc)(JSMallocState *s, void *ptr, size_t size);
|
D | quickjs.c | 249 JSMallocState malloc_state; 1612 JSMallocState ms; in JS_NewRuntime2() 1702 static void *js_def_malloc(JSMallocState *s, size_t size) in js_def_malloc() 1721 static void js_def_free(JSMallocState *s, void *ptr) in js_def_free() 1731 static void *js_def_realloc(JSMallocState *s, void *ptr, size_t size) in js_def_realloc() 2121 JSMallocState *s = &rt->malloc_state; in JS_FreeRuntime() 2133 JSMallocState ms = rt->malloc_state; in JS_FreeRuntime()
|