Lines Matching defs:JSRuntime

259 struct JSRuntime {  struct
260 JSMallocFunctions mf;
261 JSMallocState malloc_state;
262 const char* rt_info;
264 int atom_hash_size; /* power of two */
265 int atom_count;
266 int atom_size;
267 int atom_count_resize; /* resize hash table at this count */
268 uint32_t* atom_hash;
269 JSAtomStruct** atom_array;
270 int atom_free_index; /* 0 = none */
272 int class_count; /* size of class_array */
273 JSClass* class_array;
275 struct list_head context_list; /* list of JSContext.link */
278 struct list_head gc_obj_list;
280 struct list_head gc_zero_ref_count_list;
281 struct list_head tmp_obj_list; /* used during GC */
282 JSGCPhaseEnum gc_phase : 8;
283 size_t malloc_gc_threshold;
285 struct list_head string_list; /* list of JSString.link */
288 const uint8_t* stack_top;
289 size_t stack_size; /* in bytes */
291 JSValue current_exception;
293 BOOL in_out_of_memory : 8;
295 struct JSStackFrame* current_stack_frame;
297 JSInterruptHandler* interrupt_handler;
298 void* interrupt_opaque;
300 JSHostPromiseRejectionTracker* host_promise_rejection_tracker;
301 void* host_promise_rejection_tracker_opaque;
303 struct list_head job_list; /* list of JSJobEntry.link */
305 JSModuleNormalizeFunc* module_normalize_func;
306 JSModuleLoaderFunc* module_loader_func;
307 void* module_loader_opaque;
309 BOOL can_block : 8; /* TRUE if Atomics.wait can block */
311 JSSharedArrayBufferFunctions sab_funcs;
314 int shape_hash_bits;
315 int shape_hash_size;
316 int shape_hash_count; /* number of hashed shapes */
317 JSShape** shape_hash;
319 bf_context_t bf_ctx;
320 JSNumericOperations bigint_ops;
321 JSNumericOperations bigfloat_ops;
322 JSNumericOperations bigdecimal_ops;
323 uint32_t operator_count;
325 void* user_opaque;