Lines Matching defs:JSRuntime
247 struct JSRuntime { struct
248 JSMallocFunctions mf;
249 JSMallocState malloc_state;
250 const char *rt_info;
252 int atom_hash_size; /* power of two */
253 int atom_count;
254 int atom_size;
255 int atom_count_resize; /* resize hash table at this count */
256 uint32_t *atom_hash;
257 JSAtomStruct **atom_array;
258 int atom_free_index; /* 0 = none */
260 int class_count; /* size of class_array */
261 JSClass *class_array;
263 struct list_head context_list; /* list of JSContext.link */
266 struct list_head gc_obj_list;
268 struct list_head gc_zero_ref_count_list;
269 struct list_head tmp_obj_list; /* used during GC */
270 JSGCPhaseEnum gc_phase : 8;
271 size_t malloc_gc_threshold;
273 struct list_head string_list; /* list of JSString.link */
276 const uint8_t *stack_top;
277 size_t stack_size; /* in bytes */
279 JSValue current_exception;
281 BOOL in_out_of_memory : 8;
283 struct JSStackFrame *current_stack_frame;
285 JSInterruptHandler *interrupt_handler;
286 void *interrupt_opaque;
288 JSHostPromiseRejectionTracker *host_promise_rejection_tracker;
289 void *host_promise_rejection_tracker_opaque;
291 struct list_head job_list; /* list of JSJobEntry.link */
293 JSModuleNormalizeFunc *module_normalize_func;
294 JSModuleLoaderFunc *module_loader_func;
295 void *module_loader_opaque;
297 BOOL can_block : 8; /* TRUE if Atomics.wait can block */
299 JSSharedArrayBufferFunctions sab_funcs;
302 int shape_hash_bits;
303 int shape_hash_size;
304 int shape_hash_count; /* number of hashed shapes */
305 JSShape **shape_hash;
307 bf_context_t bf_ctx;
308 JSNumericOperations bigint_ops;
309 JSNumericOperations bigfloat_ops;
310 JSNumericOperations bigdecimal_ops;
311 uint32_t operator_count;
313 void *user_opaque;