1pub const JS_PROP_CONFIGURABLE: u32 = 1;
4pub const JS_PROP_WRITABLE: u32 = 2;
5pub const JS_PROP_ENUMERABLE: u32 = 4;
6pub const JS_PROP_C_W_E: u32 = 7;
7pub const JS_PROP_LENGTH: u32 = 8;
8pub const JS_PROP_TMASK: u32 = 48;
9pub const JS_PROP_NORMAL: u32 = 0;
10pub const JS_PROP_GETSET: u32 = 16;
11pub const JS_PROP_VARREF: u32 = 32;
12pub const JS_PROP_AUTOINIT: u32 = 48;
13pub const JS_PROP_HAS_SHIFT: u32 = 8;
14pub const JS_PROP_HAS_CONFIGURABLE: u32 = 256;
15pub const JS_PROP_HAS_WRITABLE: u32 = 512;
16pub const JS_PROP_HAS_ENUMERABLE: u32 = 1024;
17pub const JS_PROP_HAS_GET: u32 = 2048;
18pub const JS_PROP_HAS_SET: u32 = 4096;
19pub const JS_PROP_HAS_VALUE: u32 = 8192;
20pub const JS_PROP_THROW: u32 = 16384;
21pub const JS_PROP_THROW_STRICT: u32 = 32768;
22pub const JS_PROP_NO_ADD: u32 = 65536;
23pub const JS_PROP_NO_EXOTIC: u32 = 131072;
24pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144;
25pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288;
26pub const JS_DEFAULT_STACK_SIZE: u32 = 1048576;
27pub const JS_EVAL_TYPE_GLOBAL: u32 = 0;
28pub const JS_EVAL_TYPE_MODULE: u32 = 1;
29pub const JS_EVAL_TYPE_DIRECT: u32 = 2;
30pub const JS_EVAL_TYPE_INDIRECT: u32 = 3;
31pub const JS_EVAL_TYPE_MASK: u32 = 3;
32pub const JS_EVAL_FLAG_STRICT: u32 = 8;
33pub const JS_EVAL_FLAG_UNUSED: u32 = 16;
34pub const JS_EVAL_FLAG_COMPILE_ONLY: u32 = 32;
35pub const JS_EVAL_FLAG_BACKTRACE_BARRIER: u32 = 64;
36pub const JS_EVAL_FLAG_ASYNC: u32 = 128;
37pub const JS_DUMP_BYTECODE_FINAL: u32 = 1;
38pub const JS_DUMP_BYTECODE_PASS2: u32 = 2;
39pub const JS_DUMP_BYTECODE_PASS1: u32 = 4;
40pub const JS_DUMP_BYTECODE_HEX: u32 = 16;
41pub const JS_DUMP_BYTECODE_PC2LINE: u32 = 32;
42pub const JS_DUMP_BYTECODE_STACK: u32 = 64;
43pub const JS_DUMP_BYTECODE_STEP: u32 = 128;
44pub const JS_DUMP_READ_OBJECT: u32 = 256;
45pub const JS_DUMP_FREE: u32 = 512;
46pub const JS_DUMP_GC: u32 = 1024;
47pub const JS_DUMP_GC_FREE: u32 = 2048;
48pub const JS_DUMP_MODULE_RESOLVE: u32 = 4096;
49pub const JS_DUMP_PROMISE: u32 = 8192;
50pub const JS_DUMP_LEAKS: u32 = 16384;
51pub const JS_DUMP_ATOM_LEAKS: u32 = 32768;
52pub const JS_DUMP_MEM: u32 = 65536;
53pub const JS_DUMP_OBJECTS: u32 = 131072;
54pub const JS_DUMP_ATOMS: u32 = 262144;
55pub const JS_DUMP_SHAPES: u32 = 524288;
56pub const JS_ABORT_ON_LEAKS: u32 = 1097728;
57pub const JS_ATOM_NULL: u32 = 0;
58pub const JS_CALL_FLAG_CONSTRUCTOR: u32 = 1;
59pub const JS_EVAL_OPTIONS_VERSION: u32 = 1;
60pub const JS_INVALID_CLASS_ID: u32 = 0;
61pub const JS_GPN_STRING_MASK: u32 = 1;
62pub const JS_GPN_SYMBOL_MASK: u32 = 2;
63pub const JS_GPN_PRIVATE_MASK: u32 = 4;
64pub const JS_GPN_ENUM_ONLY: u32 = 16;
65pub const JS_GPN_SET_ENUM: u32 = 32;
66pub const JS_WRITE_OBJ_BYTECODE: u32 = 1;
67pub const JS_WRITE_OBJ_BSWAP: u32 = 0;
68pub const JS_WRITE_OBJ_SAB: u32 = 4;
69pub const JS_WRITE_OBJ_REFERENCE: u32 = 8;
70pub const JS_WRITE_OBJ_STRIP_SOURCE: u32 = 16;
71pub const JS_WRITE_OBJ_STRIP_DEBUG: u32 = 32;
72pub const JS_READ_OBJ_BYTECODE: u32 = 1;
73pub const JS_READ_OBJ_ROM_DATA: u32 = 0;
74pub const JS_READ_OBJ_SAB: u32 = 4;
75pub const JS_READ_OBJ_REFERENCE: u32 = 8;
76pub const JS_DEF_CFUNC: u32 = 0;
77pub const JS_DEF_CGETSET: u32 = 1;
78pub const JS_DEF_CGETSET_MAGIC: u32 = 2;
79pub const JS_DEF_PROP_STRING: u32 = 3;
80pub const JS_DEF_PROP_INT32: u32 = 4;
81pub const JS_DEF_PROP_INT64: u32 = 5;
82pub const JS_DEF_PROP_DOUBLE: u32 = 6;
83pub const JS_DEF_PROP_UNDEFINED: u32 = 7;
84pub const JS_DEF_OBJECT: u32 = 8;
85pub const JS_DEF_ALIAS: u32 = 9;
86pub const JS_DEF_PROP_SYMBOL: u32 = 10;
87pub const JS_DEF_PROP_BOOL: u32 = 11;
88pub const QJSJIT_ABI_MAJOR: u32 = 1;
89pub const QJSJIT_ABI_MINOR: u32 = 25;
90pub const JS_JIT_FUNCTION_STRICT: u32 = 1;
91pub const JS_JIT_FRAME_STRESS_GC: u32 = 2;
92pub const JS_JIT_FRAME_SIDE_PATH_HIT: u32 = 4;
93pub const JS_JIT_FRAME_FAST_ENTRY: u32 = 8;
94pub const JS_JIT_SLOT_NONE: u32 = 4294967295;
95pub const JS_JIT_HELPER_SCRATCH_SLOTS: u32 = 2;
96pub const QJSJIT_ARRAY_API_VERSION: u32 = 1;
97pub const JS_JIT_ARRAY_QUERY_LENGTH: u32 = 1;
98pub const QJSJIT_OBJECT_API_VERSION: u32 = 1;
99pub const JS_JIT_OBJECT_LITERAL_MAX_FIELDS: u32 = 16;
100pub const JS_JIT_OBJECT_EFFECT_ALLOCATE: u32 = 1;
101pub const JS_JIT_OBJECT_EFFECT_COLLECT: u32 = 2;
102pub const QJSJIT_ITERATOR_API_VERSION: u32 = 1;
103pub const JS_JIT_FEEDBACK_ARRAY_STORE: u32 = 64;
104pub const JS_JIT_FEEDBACK_ARRAY_LENGTH: u32 = 128;
105pub const JS_JIT_FEEDBACK_ARRAY_EXOTIC: u32 = 256;
106pub const JS_JIT_FEEDBACK_ARRAY_SLOW: u32 = 512;
107pub const JS_JIT_FEEDBACK_ARRAY_RESIZABLE: u32 = 1024;
108pub const JS_JIT_FEEDBACK_ARRAY_DETACHED: u32 = 2048;
109pub const JS_JIT_FEEDBACK_ARRAY_IMMUTABLE: u32 = 4096;
110pub const JS_JIT_FEEDBACK_ARRAY_SHARED: u32 = 8192;
111pub const JS_JIT_FEEDBACK_ARRAY_INVALID_BACKING: u32 = 16384;
112pub const JS_JIT_FEEDBACK_OVERFLOW: u32 = 1;
113pub const JS_JIT_FEEDBACK_NEGATIVE_ZERO: u32 = 2;
114pub const JS_JIT_FEEDBACK_NAN: u32 = 4;
115pub const JS_JIT_FEEDBACK_BRANCH_TAKEN: u32 = 8;
116pub const JS_JIT_FEEDBACK_CALL_SITE: u32 = 16;
117pub const JS_JIT_FEEDBACK_PROPERTY_STORE: u32 = 32;
118pub const QJSJIT_HELPER_ABI_VERSION: u32 = 1;
119pub const QJSJIT_HELPER_MAX_ABI_TYPES: u32 = 8;
120pub const QJSJIT_HELPER_MAX_VALUES: u32 = 4;
121pub const QJSJIT_RUNTIME_API_MAJOR: u32 = 1;
122pub const QJSJIT_RUNTIME_API_MINOR: u32 = 10;
123pub const JS_JIT_FAST_ENTRY_OPTIMIZED: u32 = 1;
124pub const JS_JIT_EXIT_FAST_UNPAIRED: u32 = 2147483648;
125pub const JS_JIT_FAST_ENTRY_MAX_BUDGET: u32 = 65536;
126pub const QJSJIT_INLINE_RECOVERY_VERSION: u32 = 1;
127pub const JS_JIT_INLINE_CALL: u32 = 0;
128pub const JS_JIT_INLINE_CALL_METHOD: u32 = 1;
129pub const JS_JIT_INLINE_RESUME_INSTRUCTION: u32 = 0;
130pub const JS_JIT_INLINE_RESUME_EXCEPTION: u32 = 1;
131pub const JS_JIT_INLINE_MAX_DEPTH: u32 = 16;
132pub const JS_JIT_INLINE_MAX_BYTES: u32 = 1048576;
133pub type size_t = ::core::ffi::c_ulong;
134#[repr(C)]
135#[derive(Debug, Copy, Clone)]
136pub struct JSRuntime {
137 _unused: [u8; 0],
138}
139#[repr(C)]
140#[derive(Debug, Copy, Clone)]
141pub struct JSContext {
142 _unused: [u8; 0],
143}
144#[repr(C)]
145#[derive(Debug, Copy, Clone)]
146pub struct JSObject {
147 _unused: [u8; 0],
148}
149pub type JSClassID = u32;
150pub type JSAtom = u32;
151pub const JS_TAG_FIRST: _bindgen_ty_3 = -9;
152pub const JS_TAG_BIG_INT: _bindgen_ty_3 = -9;
153pub const JS_TAG_SYMBOL: _bindgen_ty_3 = -8;
154pub const JS_TAG_STRING: _bindgen_ty_3 = -7;
155pub const JS_TAG_STRING_ROPE: _bindgen_ty_3 = -6;
156pub const JS_TAG_MODULE: _bindgen_ty_3 = -3;
157pub const JS_TAG_FUNCTION_BYTECODE: _bindgen_ty_3 = -2;
158pub const JS_TAG_OBJECT: _bindgen_ty_3 = -1;
159pub const JS_TAG_INT: _bindgen_ty_3 = 0;
160pub const JS_TAG_BOOL: _bindgen_ty_3 = 1;
161pub const JS_TAG_NULL: _bindgen_ty_3 = 2;
162pub const JS_TAG_UNDEFINED: _bindgen_ty_3 = 3;
163pub const JS_TAG_UNINITIALIZED: _bindgen_ty_3 = 4;
164pub const JS_TAG_CATCH_OFFSET: _bindgen_ty_3 = 5;
165pub const JS_TAG_EXCEPTION: _bindgen_ty_3 = 6;
166pub const JS_TAG_SHORT_BIG_INT: _bindgen_ty_3 = 7;
167pub const JS_TAG_FLOAT64: _bindgen_ty_3 = 8;
168pub type _bindgen_ty_3 = ::core::ffi::c_int;
169#[repr(C)]
170#[derive(Copy, Clone)]
171pub union JSValueUnion {
172 pub int32: i32,
173 pub float64: f64,
174 pub ptr: *mut ::core::ffi::c_void,
175 pub short_big_int: i32,
176}
177#[allow(clippy::unnecessary_operation, clippy::identity_op)]
178const _: () = {
179 ["Size of JSValueUnion"][::core::mem::size_of::<JSValueUnion>() - 8usize];
180 ["Alignment of JSValueUnion"][::core::mem::align_of::<JSValueUnion>() - 8usize];
181 ["Offset of field: JSValueUnion::int32"][::core::mem::offset_of!(JSValueUnion, int32) - 0usize];
182 ["Offset of field: JSValueUnion::float64"]
183 [::core::mem::offset_of!(JSValueUnion, float64) - 0usize];
184 ["Offset of field: JSValueUnion::ptr"][::core::mem::offset_of!(JSValueUnion, ptr) - 0usize];
185 ["Offset of field: JSValueUnion::short_big_int"]
186 [::core::mem::offset_of!(JSValueUnion, short_big_int) - 0usize];
187};
188#[repr(C)]
189#[derive(Copy, Clone)]
190pub struct JSValue {
191 pub u: JSValueUnion,
192 pub tag: i64,
193}
194#[allow(clippy::unnecessary_operation, clippy::identity_op)]
195const _: () = {
196 ["Size of JSValue"][::core::mem::size_of::<JSValue>() - 16usize];
197 ["Alignment of JSValue"][::core::mem::align_of::<JSValue>() - 8usize];
198 ["Offset of field: JSValue::u"][::core::mem::offset_of!(JSValue, u) - 0usize];
199 ["Offset of field: JSValue::tag"][::core::mem::offset_of!(JSValue, tag) - 8usize];
200};
201pub type JSCFunction = ::core::option::Option<
202 unsafe extern "C" fn(
203 ctx: *mut JSContext,
204 this_val: JSValue,
205 argc: ::core::ffi::c_int,
206 argv: *mut JSValue,
207 ) -> JSValue,
208>;
209pub type JSCFunctionMagic = ::core::option::Option<
210 unsafe extern "C" fn(
211 ctx: *mut JSContext,
212 this_val: JSValue,
213 argc: ::core::ffi::c_int,
214 argv: *mut JSValue,
215 magic: ::core::ffi::c_int,
216 ) -> JSValue,
217>;
218pub type JSCFunctionData = ::core::option::Option<
219 unsafe extern "C" fn(
220 ctx: *mut JSContext,
221 this_val: JSValue,
222 argc: ::core::ffi::c_int,
223 argv: *mut JSValue,
224 magic: ::core::ffi::c_int,
225 func_data: *mut JSValue,
226 ) -> JSValue,
227>;
228pub type JSCClosure = ::core::option::Option<
229 unsafe extern "C" fn(
230 ctx: *mut JSContext,
231 this_val: JSValue,
232 argc: ::core::ffi::c_int,
233 argv: *mut JSValue,
234 magic: ::core::ffi::c_int,
235 opaque: *mut ::core::ffi::c_void,
236 ) -> JSValue,
237>;
238#[repr(C)]
239#[derive(Debug, Copy, Clone)]
240pub struct JSMallocFunctions {
241 pub js_calloc: ::core::option::Option<
242 unsafe extern "C" fn(
243 opaque: *mut ::core::ffi::c_void,
244 count: size_t,
245 size: size_t,
246 ) -> *mut ::core::ffi::c_void,
247 >,
248 pub js_malloc: ::core::option::Option<
249 unsafe extern "C" fn(
250 opaque: *mut ::core::ffi::c_void,
251 size: size_t,
252 ) -> *mut ::core::ffi::c_void,
253 >,
254 pub js_free: ::core::option::Option<
255 unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, ptr: *mut ::core::ffi::c_void),
256 >,
257 pub js_realloc: ::core::option::Option<
258 unsafe extern "C" fn(
259 opaque: *mut ::core::ffi::c_void,
260 ptr: *mut ::core::ffi::c_void,
261 size: size_t,
262 ) -> *mut ::core::ffi::c_void,
263 >,
264 pub js_malloc_usable_size:
265 ::core::option::Option<unsafe extern "C" fn(ptr: *const ::core::ffi::c_void) -> size_t>,
266}
267#[allow(clippy::unnecessary_operation, clippy::identity_op)]
268const _: () = {
269 ["Size of JSMallocFunctions"][::core::mem::size_of::<JSMallocFunctions>() - 40usize];
270 ["Alignment of JSMallocFunctions"][::core::mem::align_of::<JSMallocFunctions>() - 8usize];
271 ["Offset of field: JSMallocFunctions::js_calloc"]
272 [::core::mem::offset_of!(JSMallocFunctions, js_calloc) - 0usize];
273 ["Offset of field: JSMallocFunctions::js_malloc"]
274 [::core::mem::offset_of!(JSMallocFunctions, js_malloc) - 8usize];
275 ["Offset of field: JSMallocFunctions::js_free"]
276 [::core::mem::offset_of!(JSMallocFunctions, js_free) - 16usize];
277 ["Offset of field: JSMallocFunctions::js_realloc"]
278 [::core::mem::offset_of!(JSMallocFunctions, js_realloc) - 24usize];
279 ["Offset of field: JSMallocFunctions::js_malloc_usable_size"]
280 [::core::mem::offset_of!(JSMallocFunctions, js_malloc_usable_size) - 32usize];
281};
282pub type JSRuntimeFinalizer =
283 ::core::option::Option<unsafe extern "C" fn(rt: *mut JSRuntime, arg: *mut ::core::ffi::c_void)>;
284#[repr(C)]
285#[derive(Debug, Copy, Clone)]
286pub struct JSGCObjectHeader {
287 _unused: [u8; 0],
288}
289unsafe extern "C" {
290 pub fn JS_NewRuntime() -> *mut JSRuntime;
291}
292unsafe extern "C" {
293 pub fn JS_SetRuntimeInfo(rt: *mut JSRuntime, info: *const ::core::ffi::c_char);
294}
295unsafe extern "C" {
296 pub fn JS_SetMemoryLimit(rt: *mut JSRuntime, limit: size_t);
297}
298unsafe extern "C" {
299 pub fn JS_SetDumpFlags(rt: *mut JSRuntime, flags: u64);
300}
301unsafe extern "C" {
302 pub fn JS_GetDumpFlags(rt: *mut JSRuntime) -> u64;
303}
304unsafe extern "C" {
305 pub fn JS_GetGCThreshold(rt: *mut JSRuntime) -> size_t;
306}
307unsafe extern "C" {
308 pub fn JS_SetGCThreshold(rt: *mut JSRuntime, gc_threshold: size_t);
309}
310unsafe extern "C" {
311 pub fn JS_SetMaxStackSize(rt: *mut JSRuntime, stack_size: size_t);
312}
313unsafe extern "C" {
314 pub fn JS_UpdateStackTop(rt: *mut JSRuntime);
315}
316unsafe extern "C" {
317 pub fn JS_NewRuntime2(
318 mf: *const JSMallocFunctions,
319 opaque: *mut ::core::ffi::c_void,
320 ) -> *mut JSRuntime;
321}
322unsafe extern "C" {
323 pub fn JS_FreeRuntime(rt: *mut JSRuntime);
324}
325unsafe extern "C" {
326 pub fn JS_GetRuntimeOpaque(rt: *mut JSRuntime) -> *mut ::core::ffi::c_void;
327}
328unsafe extern "C" {
329 pub fn JS_SetRuntimeOpaque(rt: *mut JSRuntime, opaque: *mut ::core::ffi::c_void);
330}
331unsafe extern "C" {
332 pub fn JS_AddRuntimeFinalizer(
333 rt: *mut JSRuntime,
334 finalizer: JSRuntimeFinalizer,
335 arg: *mut ::core::ffi::c_void,
336 ) -> ::core::ffi::c_int;
337}
338pub type JS_MarkFunc =
339 ::core::option::Option<unsafe extern "C" fn(rt: *mut JSRuntime, gp: *mut JSGCObjectHeader)>;
340unsafe extern "C" {
341 pub fn JS_MarkValue(rt: *mut JSRuntime, val: JSValue, mark_func: JS_MarkFunc);
342}
343unsafe extern "C" {
344 pub fn JS_RunGC(rt: *mut JSRuntime);
345}
346unsafe extern "C" {
347 pub fn JS_IsLiveObject(rt: *mut JSRuntime, obj: JSValue) -> bool;
348}
349unsafe extern "C" {
350 pub fn JS_NewContext(rt: *mut JSRuntime) -> *mut JSContext;
351}
352unsafe extern "C" {
353 pub fn JS_FreeContext(s: *mut JSContext);
354}
355unsafe extern "C" {
356 pub fn JS_DupContext(ctx: *mut JSContext) -> *mut JSContext;
357}
358unsafe extern "C" {
359 pub fn JS_GetContextOpaque(ctx: *mut JSContext) -> *mut ::core::ffi::c_void;
360}
361unsafe extern "C" {
362 pub fn JS_SetContextOpaque(ctx: *mut JSContext, opaque: *mut ::core::ffi::c_void);
363}
364unsafe extern "C" {
365 pub fn JS_GetRuntime(ctx: *mut JSContext) -> *mut JSRuntime;
366}
367unsafe extern "C" {
368 pub fn JS_SetClassProto(ctx: *mut JSContext, class_id: JSClassID, obj: JSValue);
369}
370unsafe extern "C" {
371 pub fn JS_GetClassProto(ctx: *mut JSContext, class_id: JSClassID) -> JSValue;
372}
373unsafe extern "C" {
374 pub fn JS_GetFunctionProto(ctx: *mut JSContext) -> JSValue;
375}
376unsafe extern "C" {
377 pub fn JS_NewContextRaw(rt: *mut JSRuntime) -> *mut JSContext;
378}
379unsafe extern "C" {
380 pub fn JS_AddIntrinsicBaseObjects(ctx: *mut JSContext) -> ::core::ffi::c_int;
381}
382unsafe extern "C" {
383 pub fn JS_AddIntrinsicDate(ctx: *mut JSContext) -> ::core::ffi::c_int;
384}
385unsafe extern "C" {
386 pub fn JS_AddIntrinsicEval(ctx: *mut JSContext) -> ::core::ffi::c_int;
387}
388unsafe extern "C" {
389 pub fn JS_AddIntrinsicRegExpCompiler(ctx: *mut JSContext);
390}
391unsafe extern "C" {
392 pub fn JS_AddIntrinsicRegExp(ctx: *mut JSContext) -> ::core::ffi::c_int;
393}
394unsafe extern "C" {
395 pub fn JS_AddIntrinsicJSON(ctx: *mut JSContext) -> ::core::ffi::c_int;
396}
397unsafe extern "C" {
398 pub fn JS_AddIntrinsicProxy(ctx: *mut JSContext) -> ::core::ffi::c_int;
399}
400unsafe extern "C" {
401 pub fn JS_AddIntrinsicMapSet(ctx: *mut JSContext) -> ::core::ffi::c_int;
402}
403unsafe extern "C" {
404 pub fn JS_AddIntrinsicTypedArrays(ctx: *mut JSContext) -> ::core::ffi::c_int;
405}
406unsafe extern "C" {
407 pub fn JS_AddIntrinsicPromise(ctx: *mut JSContext) -> ::core::ffi::c_int;
408}
409unsafe extern "C" {
410 pub fn JS_AddIntrinsicBigInt(ctx: *mut JSContext) -> ::core::ffi::c_int;
411}
412unsafe extern "C" {
413 pub fn JS_AddIntrinsicWeakRef(ctx: *mut JSContext) -> ::core::ffi::c_int;
414}
415unsafe extern "C" {
416 pub fn JS_AddPerformance(ctx: *mut JSContext) -> ::core::ffi::c_int;
417}
418unsafe extern "C" {
419 pub fn JS_AddIntrinsicDOMException(ctx: *mut JSContext) -> ::core::ffi::c_int;
420}
421unsafe extern "C" {
422 pub fn JS_AddIntrinsicAToB(ctx: *mut JSContext) -> ::core::ffi::c_int;
423}
424unsafe extern "C" {
425 pub fn JS_IsEqual(ctx: *mut JSContext, op1: JSValue, op2: JSValue) -> ::core::ffi::c_int;
426}
427unsafe extern "C" {
428 pub fn JS_IsStrictEqual(ctx: *mut JSContext, op1: JSValue, op2: JSValue) -> bool;
429}
430unsafe extern "C" {
431 pub fn JS_IsSameValue(ctx: *mut JSContext, op1: JSValue, op2: JSValue) -> bool;
432}
433unsafe extern "C" {
434 pub fn JS_IsSameValueZero(ctx: *mut JSContext, op1: JSValue, op2: JSValue) -> bool;
435}
436unsafe extern "C" {
437 pub fn js_string_codePointRange(
438 ctx: *mut JSContext,
439 this_val: JSValue,
440 argc: ::core::ffi::c_int,
441 argv: *mut JSValue,
442 ) -> JSValue;
443}
444unsafe extern "C" {
445 pub fn js_calloc_rt(
446 rt: *mut JSRuntime,
447 count: size_t,
448 size: size_t,
449 ) -> *mut ::core::ffi::c_void;
450}
451unsafe extern "C" {
452 pub fn js_malloc_rt(rt: *mut JSRuntime, size: size_t) -> *mut ::core::ffi::c_void;
453}
454unsafe extern "C" {
455 pub fn js_free_rt(rt: *mut JSRuntime, ptr: *mut ::core::ffi::c_void);
456}
457unsafe extern "C" {
458 pub fn js_realloc_rt(
459 rt: *mut JSRuntime,
460 ptr: *mut ::core::ffi::c_void,
461 size: size_t,
462 ) -> *mut ::core::ffi::c_void;
463}
464unsafe extern "C" {
465 pub fn js_malloc_usable_size_rt(rt: *mut JSRuntime, ptr: *const ::core::ffi::c_void) -> size_t;
466}
467unsafe extern "C" {
468 pub fn js_mallocz_rt(rt: *mut JSRuntime, size: size_t) -> *mut ::core::ffi::c_void;
469}
470unsafe extern "C" {
471 pub fn js_calloc(ctx: *mut JSContext, count: size_t, size: size_t) -> *mut ::core::ffi::c_void;
472}
473unsafe extern "C" {
474 pub fn js_malloc(ctx: *mut JSContext, size: size_t) -> *mut ::core::ffi::c_void;
475}
476unsafe extern "C" {
477 pub fn js_free(ctx: *mut JSContext, ptr: *mut ::core::ffi::c_void);
478}
479unsafe extern "C" {
480 pub fn js_realloc(
481 ctx: *mut JSContext,
482 ptr: *mut ::core::ffi::c_void,
483 size: size_t,
484 ) -> *mut ::core::ffi::c_void;
485}
486unsafe extern "C" {
487 pub fn js_malloc_usable_size(ctx: *mut JSContext, ptr: *const ::core::ffi::c_void) -> size_t;
488}
489unsafe extern "C" {
490 pub fn js_mallocz(ctx: *mut JSContext, size: size_t) -> *mut ::core::ffi::c_void;
491}
492unsafe extern "C" {
493 pub fn js_strdup(
494 ctx: *mut JSContext,
495 str_: *const ::core::ffi::c_char,
496 ) -> *mut ::core::ffi::c_char;
497}
498unsafe extern "C" {
499 pub fn js_strndup(
500 ctx: *mut JSContext,
501 s: *const ::core::ffi::c_char,
502 n: size_t,
503 ) -> *mut ::core::ffi::c_char;
504}
505#[repr(C)]
506#[derive(Debug, Copy, Clone)]
507pub struct JSMemoryUsage {
508 pub malloc_size: i64,
509 pub malloc_limit: i64,
510 pub memory_used_size: i64,
511 pub malloc_count: i64,
512 pub memory_used_count: i64,
513 pub atom_count: i64,
514 pub atom_size: i64,
515 pub str_count: i64,
516 pub str_size: i64,
517 pub obj_count: i64,
518 pub obj_size: i64,
519 pub prop_count: i64,
520 pub prop_size: i64,
521 pub shape_count: i64,
522 pub shape_size: i64,
523 pub js_func_count: i64,
524 pub js_func_size: i64,
525 pub js_func_code_size: i64,
526 pub js_func_pc2line_count: i64,
527 pub js_func_pc2line_size: i64,
528 pub c_func_count: i64,
529 pub array_count: i64,
530 pub fast_array_count: i64,
531 pub fast_array_elements: i64,
532 pub binary_object_count: i64,
533 pub binary_object_size: i64,
534}
535#[allow(clippy::unnecessary_operation, clippy::identity_op)]
536const _: () = {
537 ["Size of JSMemoryUsage"][::core::mem::size_of::<JSMemoryUsage>() - 208usize];
538 ["Alignment of JSMemoryUsage"][::core::mem::align_of::<JSMemoryUsage>() - 8usize];
539 ["Offset of field: JSMemoryUsage::malloc_size"]
540 [::core::mem::offset_of!(JSMemoryUsage, malloc_size) - 0usize];
541 ["Offset of field: JSMemoryUsage::malloc_limit"]
542 [::core::mem::offset_of!(JSMemoryUsage, malloc_limit) - 8usize];
543 ["Offset of field: JSMemoryUsage::memory_used_size"]
544 [::core::mem::offset_of!(JSMemoryUsage, memory_used_size) - 16usize];
545 ["Offset of field: JSMemoryUsage::malloc_count"]
546 [::core::mem::offset_of!(JSMemoryUsage, malloc_count) - 24usize];
547 ["Offset of field: JSMemoryUsage::memory_used_count"]
548 [::core::mem::offset_of!(JSMemoryUsage, memory_used_count) - 32usize];
549 ["Offset of field: JSMemoryUsage::atom_count"]
550 [::core::mem::offset_of!(JSMemoryUsage, atom_count) - 40usize];
551 ["Offset of field: JSMemoryUsage::atom_size"]
552 [::core::mem::offset_of!(JSMemoryUsage, atom_size) - 48usize];
553 ["Offset of field: JSMemoryUsage::str_count"]
554 [::core::mem::offset_of!(JSMemoryUsage, str_count) - 56usize];
555 ["Offset of field: JSMemoryUsage::str_size"]
556 [::core::mem::offset_of!(JSMemoryUsage, str_size) - 64usize];
557 ["Offset of field: JSMemoryUsage::obj_count"]
558 [::core::mem::offset_of!(JSMemoryUsage, obj_count) - 72usize];
559 ["Offset of field: JSMemoryUsage::obj_size"]
560 [::core::mem::offset_of!(JSMemoryUsage, obj_size) - 80usize];
561 ["Offset of field: JSMemoryUsage::prop_count"]
562 [::core::mem::offset_of!(JSMemoryUsage, prop_count) - 88usize];
563 ["Offset of field: JSMemoryUsage::prop_size"]
564 [::core::mem::offset_of!(JSMemoryUsage, prop_size) - 96usize];
565 ["Offset of field: JSMemoryUsage::shape_count"]
566 [::core::mem::offset_of!(JSMemoryUsage, shape_count) - 104usize];
567 ["Offset of field: JSMemoryUsage::shape_size"]
568 [::core::mem::offset_of!(JSMemoryUsage, shape_size) - 112usize];
569 ["Offset of field: JSMemoryUsage::js_func_count"]
570 [::core::mem::offset_of!(JSMemoryUsage, js_func_count) - 120usize];
571 ["Offset of field: JSMemoryUsage::js_func_size"]
572 [::core::mem::offset_of!(JSMemoryUsage, js_func_size) - 128usize];
573 ["Offset of field: JSMemoryUsage::js_func_code_size"]
574 [::core::mem::offset_of!(JSMemoryUsage, js_func_code_size) - 136usize];
575 ["Offset of field: JSMemoryUsage::js_func_pc2line_count"]
576 [::core::mem::offset_of!(JSMemoryUsage, js_func_pc2line_count) - 144usize];
577 ["Offset of field: JSMemoryUsage::js_func_pc2line_size"]
578 [::core::mem::offset_of!(JSMemoryUsage, js_func_pc2line_size) - 152usize];
579 ["Offset of field: JSMemoryUsage::c_func_count"]
580 [::core::mem::offset_of!(JSMemoryUsage, c_func_count) - 160usize];
581 ["Offset of field: JSMemoryUsage::array_count"]
582 [::core::mem::offset_of!(JSMemoryUsage, array_count) - 168usize];
583 ["Offset of field: JSMemoryUsage::fast_array_count"]
584 [::core::mem::offset_of!(JSMemoryUsage, fast_array_count) - 176usize];
585 ["Offset of field: JSMemoryUsage::fast_array_elements"]
586 [::core::mem::offset_of!(JSMemoryUsage, fast_array_elements) - 184usize];
587 ["Offset of field: JSMemoryUsage::binary_object_count"]
588 [::core::mem::offset_of!(JSMemoryUsage, binary_object_count) - 192usize];
589 ["Offset of field: JSMemoryUsage::binary_object_size"]
590 [::core::mem::offset_of!(JSMemoryUsage, binary_object_size) - 200usize];
591};
592unsafe extern "C" {
593 pub fn JS_ComputeMemoryUsage(rt: *mut JSRuntime, s: *mut JSMemoryUsage);
594}
595unsafe extern "C" {
596 pub fn JS_NewAtomLen(
597 ctx: *mut JSContext,
598 str_: *const ::core::ffi::c_char,
599 len: size_t,
600 ) -> JSAtom;
601}
602unsafe extern "C" {
603 pub fn JS_NewAtom(ctx: *mut JSContext, str_: *const ::core::ffi::c_char) -> JSAtom;
604}
605unsafe extern "C" {
606 pub fn JS_NewAtomUInt32(ctx: *mut JSContext, n: u32) -> JSAtom;
607}
608unsafe extern "C" {
609 pub fn JS_DupAtom(ctx: *mut JSContext, v: JSAtom) -> JSAtom;
610}
611unsafe extern "C" {
612 pub fn JS_DupAtomRT(rt: *mut JSRuntime, v: JSAtom) -> JSAtom;
613}
614unsafe extern "C" {
615 pub fn JS_FreeAtom(ctx: *mut JSContext, v: JSAtom);
616}
617unsafe extern "C" {
618 pub fn JS_FreeAtomRT(rt: *mut JSRuntime, v: JSAtom);
619}
620unsafe extern "C" {
621 pub fn JS_AtomToValue(ctx: *mut JSContext, atom: JSAtom) -> JSValue;
622}
623unsafe extern "C" {
624 pub fn JS_AtomToString(ctx: *mut JSContext, atom: JSAtom) -> JSValue;
625}
626unsafe extern "C" {
627 pub fn JS_AtomToCStringLen(
628 ctx: *mut JSContext,
629 plen: *mut size_t,
630 atom: JSAtom,
631 ) -> *const ::core::ffi::c_char;
632}
633unsafe extern "C" {
634 pub fn JS_ValueToAtom(ctx: *mut JSContext, val: JSValue) -> JSAtom;
635}
636#[repr(C)]
637#[derive(Debug, Copy, Clone)]
638pub struct JSPropertyEnum {
639 pub is_enumerable: bool,
640 pub atom: JSAtom,
641}
642#[allow(clippy::unnecessary_operation, clippy::identity_op)]
643const _: () = {
644 ["Size of JSPropertyEnum"][::core::mem::size_of::<JSPropertyEnum>() - 8usize];
645 ["Alignment of JSPropertyEnum"][::core::mem::align_of::<JSPropertyEnum>() - 4usize];
646 ["Offset of field: JSPropertyEnum::is_enumerable"]
647 [::core::mem::offset_of!(JSPropertyEnum, is_enumerable) - 0usize];
648 ["Offset of field: JSPropertyEnum::atom"]
649 [::core::mem::offset_of!(JSPropertyEnum, atom) - 4usize];
650};
651#[repr(C)]
652#[derive(Copy, Clone)]
653pub struct JSPropertyDescriptor {
654 pub flags: ::core::ffi::c_int,
655 pub value: JSValue,
656 pub getter: JSValue,
657 pub setter: JSValue,
658}
659#[allow(clippy::unnecessary_operation, clippy::identity_op)]
660const _: () = {
661 ["Size of JSPropertyDescriptor"][::core::mem::size_of::<JSPropertyDescriptor>() - 56usize];
662 ["Alignment of JSPropertyDescriptor"][::core::mem::align_of::<JSPropertyDescriptor>() - 8usize];
663 ["Offset of field: JSPropertyDescriptor::flags"]
664 [::core::mem::offset_of!(JSPropertyDescriptor, flags) - 0usize];
665 ["Offset of field: JSPropertyDescriptor::value"]
666 [::core::mem::offset_of!(JSPropertyDescriptor, value) - 8usize];
667 ["Offset of field: JSPropertyDescriptor::getter"]
668 [::core::mem::offset_of!(JSPropertyDescriptor, getter) - 24usize];
669 ["Offset of field: JSPropertyDescriptor::setter"]
670 [::core::mem::offset_of!(JSPropertyDescriptor, setter) - 40usize];
671};
672#[repr(C)]
673#[derive(Debug, Copy, Clone)]
674pub struct JSClassExoticMethods {
675 pub get_own_property: ::core::option::Option<
676 unsafe extern "C" fn(
677 ctx: *mut JSContext,
678 desc: *mut JSPropertyDescriptor,
679 obj: JSValue,
680 prop: JSAtom,
681 ) -> ::core::ffi::c_int,
682 >,
683 pub get_own_property_names: ::core::option::Option<
684 unsafe extern "C" fn(
685 ctx: *mut JSContext,
686 ptab: *mut *mut JSPropertyEnum,
687 plen: *mut u32,
688 obj: JSValue,
689 ) -> ::core::ffi::c_int,
690 >,
691 pub delete_property: ::core::option::Option<
692 unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, prop: JSAtom) -> ::core::ffi::c_int,
693 >,
694 pub define_own_property: ::core::option::Option<
695 unsafe extern "C" fn(
696 ctx: *mut JSContext,
697 this_obj: JSValue,
698 prop: JSAtom,
699 val: JSValue,
700 getter: JSValue,
701 setter: JSValue,
702 flags: ::core::ffi::c_int,
703 ) -> ::core::ffi::c_int,
704 >,
705 pub has_property: ::core::option::Option<
706 unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, atom: JSAtom) -> ::core::ffi::c_int,
707 >,
708 pub get_property: ::core::option::Option<
709 unsafe extern "C" fn(
710 ctx: *mut JSContext,
711 obj: JSValue,
712 atom: JSAtom,
713 receiver: JSValue,
714 ) -> JSValue,
715 >,
716 pub set_property: ::core::option::Option<
717 unsafe extern "C" fn(
718 ctx: *mut JSContext,
719 obj: JSValue,
720 atom: JSAtom,
721 value: JSValue,
722 receiver: JSValue,
723 flags: ::core::ffi::c_int,
724 ) -> ::core::ffi::c_int,
725 >,
726}
727#[allow(clippy::unnecessary_operation, clippy::identity_op)]
728const _: () = {
729 ["Size of JSClassExoticMethods"][::core::mem::size_of::<JSClassExoticMethods>() - 56usize];
730 ["Alignment of JSClassExoticMethods"][::core::mem::align_of::<JSClassExoticMethods>() - 8usize];
731 ["Offset of field: JSClassExoticMethods::get_own_property"]
732 [::core::mem::offset_of!(JSClassExoticMethods, get_own_property) - 0usize];
733 ["Offset of field: JSClassExoticMethods::get_own_property_names"]
734 [::core::mem::offset_of!(JSClassExoticMethods, get_own_property_names) - 8usize];
735 ["Offset of field: JSClassExoticMethods::delete_property"]
736 [::core::mem::offset_of!(JSClassExoticMethods, delete_property) - 16usize];
737 ["Offset of field: JSClassExoticMethods::define_own_property"]
738 [::core::mem::offset_of!(JSClassExoticMethods, define_own_property) - 24usize];
739 ["Offset of field: JSClassExoticMethods::has_property"]
740 [::core::mem::offset_of!(JSClassExoticMethods, has_property) - 32usize];
741 ["Offset of field: JSClassExoticMethods::get_property"]
742 [::core::mem::offset_of!(JSClassExoticMethods, get_property) - 40usize];
743 ["Offset of field: JSClassExoticMethods::set_property"]
744 [::core::mem::offset_of!(JSClassExoticMethods, set_property) - 48usize];
745};
746pub type JSClassFinalizer =
747 ::core::option::Option<unsafe extern "C" fn(rt: *mut JSRuntime, val: JSValue)>;
748pub type JSClassGCMark = ::core::option::Option<
749 unsafe extern "C" fn(rt: *mut JSRuntime, val: JSValue, mark_func: JS_MarkFunc),
750>;
751pub type JSClassCall = ::core::option::Option<
752 unsafe extern "C" fn(
753 ctx: *mut JSContext,
754 func_obj: JSValue,
755 this_val: JSValue,
756 argc: ::core::ffi::c_int,
757 argv: *mut JSValue,
758 flags: ::core::ffi::c_int,
759 ) -> JSValue,
760>;
761#[repr(C)]
762#[derive(Debug, Copy, Clone)]
763pub struct JSClassDef {
764 pub class_name: *const ::core::ffi::c_char,
765 pub finalizer: JSClassFinalizer,
766 pub gc_mark: JSClassGCMark,
767 pub call: JSClassCall,
768 pub exotic: *mut JSClassExoticMethods,
769}
770#[allow(clippy::unnecessary_operation, clippy::identity_op)]
771const _: () = {
772 ["Size of JSClassDef"][::core::mem::size_of::<JSClassDef>() - 40usize];
773 ["Alignment of JSClassDef"][::core::mem::align_of::<JSClassDef>() - 8usize];
774 ["Offset of field: JSClassDef::class_name"]
775 [::core::mem::offset_of!(JSClassDef, class_name) - 0usize];
776 ["Offset of field: JSClassDef::finalizer"]
777 [::core::mem::offset_of!(JSClassDef, finalizer) - 8usize];
778 ["Offset of field: JSClassDef::gc_mark"]
779 [::core::mem::offset_of!(JSClassDef, gc_mark) - 16usize];
780 ["Offset of field: JSClassDef::call"][::core::mem::offset_of!(JSClassDef, call) - 24usize];
781 ["Offset of field: JSClassDef::exotic"][::core::mem::offset_of!(JSClassDef, exotic) - 32usize];
782};
783#[repr(C)]
784#[derive(Debug, Copy, Clone)]
785pub struct JSEvalOptions {
786 pub version: ::core::ffi::c_int,
787 pub eval_flags: ::core::ffi::c_int,
788 pub filename: *const ::core::ffi::c_char,
789 pub line_num: ::core::ffi::c_int,
790}
791#[allow(clippy::unnecessary_operation, clippy::identity_op)]
792const _: () = {
793 ["Size of JSEvalOptions"][::core::mem::size_of::<JSEvalOptions>() - 24usize];
794 ["Alignment of JSEvalOptions"][::core::mem::align_of::<JSEvalOptions>() - 8usize];
795 ["Offset of field: JSEvalOptions::version"]
796 [::core::mem::offset_of!(JSEvalOptions, version) - 0usize];
797 ["Offset of field: JSEvalOptions::eval_flags"]
798 [::core::mem::offset_of!(JSEvalOptions, eval_flags) - 4usize];
799 ["Offset of field: JSEvalOptions::filename"]
800 [::core::mem::offset_of!(JSEvalOptions, filename) - 8usize];
801 ["Offset of field: JSEvalOptions::line_num"]
802 [::core::mem::offset_of!(JSEvalOptions, line_num) - 16usize];
803};
804unsafe extern "C" {
805 pub fn JS_NewClassID(rt: *mut JSRuntime, pclass_id: *mut JSClassID) -> JSClassID;
806}
807unsafe extern "C" {
808 pub fn JS_GetClassID(v: JSValue) -> JSClassID;
809}
810unsafe extern "C" {
811 pub fn JS_NewClass(
812 rt: *mut JSRuntime,
813 class_id: JSClassID,
814 class_def: *const JSClassDef,
815 ) -> ::core::ffi::c_int;
816}
817unsafe extern "C" {
818 pub fn JS_IsRegisteredClass(rt: *mut JSRuntime, class_id: JSClassID) -> bool;
819}
820unsafe extern "C" {
821 pub fn JS_GetClassName(rt: *mut JSRuntime, class_id: JSClassID) -> JSAtom;
822}
823unsafe extern "C" {
824 pub fn JS_NewNumber(ctx: *mut JSContext, d: f64) -> JSValue;
825}
826unsafe extern "C" {
827 pub fn JS_NewBigInt64(ctx: *mut JSContext, v: i64) -> JSValue;
828}
829unsafe extern "C" {
830 pub fn JS_NewBigUint64(ctx: *mut JSContext, v: u64) -> JSValue;
831}
832unsafe extern "C" {
833 pub fn JS_Throw(ctx: *mut JSContext, obj: JSValue) -> JSValue;
834}
835unsafe extern "C" {
836 pub fn JS_GetException(ctx: *mut JSContext) -> JSValue;
837}
838unsafe extern "C" {
839 pub fn JS_HasException(ctx: *mut JSContext) -> bool;
840}
841unsafe extern "C" {
842 pub fn JS_IsError(val: JSValue) -> bool;
843}
844unsafe extern "C" {
845 pub fn JS_IsUncatchableError(val: JSValue) -> bool;
846}
847unsafe extern "C" {
848 pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue);
849}
850unsafe extern "C" {
851 pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue);
852}
853unsafe extern "C" {
854 pub fn JS_ResetUncatchableError(ctx: *mut JSContext);
855}
856unsafe extern "C" {
857 pub fn JS_NewError(ctx: *mut JSContext) -> JSValue;
858}
859unsafe extern "C" {
860 pub fn JS_NewInternalError(
861 ctx: *mut JSContext,
862 fmt: *const ::core::ffi::c_char,
863 ...
864 ) -> JSValue;
865}
866unsafe extern "C" {
867 pub fn JS_NewPlainError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...) -> JSValue;
868}
869unsafe extern "C" {
870 pub fn JS_NewRangeError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...) -> JSValue;
871}
872unsafe extern "C" {
873 pub fn JS_NewReferenceError(
874 ctx: *mut JSContext,
875 fmt: *const ::core::ffi::c_char,
876 ...
877 ) -> JSValue;
878}
879unsafe extern "C" {
880 pub fn JS_NewSyntaxError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...) -> JSValue;
881}
882unsafe extern "C" {
883 pub fn JS_NewTypeError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...) -> JSValue;
884}
885unsafe extern "C" {
886 pub fn JS_ThrowInternalError(
887 ctx: *mut JSContext,
888 fmt: *const ::core::ffi::c_char,
889 ...
890 ) -> JSValue;
891}
892unsafe extern "C" {
893 pub fn JS_ThrowPlainError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...)
894 -> JSValue;
895}
896unsafe extern "C" {
897 pub fn JS_ThrowRangeError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...)
898 -> JSValue;
899}
900unsafe extern "C" {
901 pub fn JS_ThrowReferenceError(
902 ctx: *mut JSContext,
903 fmt: *const ::core::ffi::c_char,
904 ...
905 ) -> JSValue;
906}
907unsafe extern "C" {
908 pub fn JS_ThrowSyntaxError(
909 ctx: *mut JSContext,
910 fmt: *const ::core::ffi::c_char,
911 ...
912 ) -> JSValue;
913}
914unsafe extern "C" {
915 pub fn JS_ThrowTypeError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...) -> JSValue;
916}
917unsafe extern "C" {
918 pub fn JS_ThrowDOMException(
919 ctx: *mut JSContext,
920 name: *const ::core::ffi::c_char,
921 fmt: *const ::core::ffi::c_char,
922 ...
923 ) -> JSValue;
924}
925unsafe extern "C" {
926 pub fn JS_ThrowOutOfMemory(ctx: *mut JSContext) -> JSValue;
927}
928unsafe extern "C" {
929 pub fn JS_FreeValue(ctx: *mut JSContext, v: JSValue);
930}
931unsafe extern "C" {
932 pub fn JS_FreeValueRT(rt: *mut JSRuntime, v: JSValue);
933}
934unsafe extern "C" {
935 pub fn JS_DupValue(ctx: *mut JSContext, v: JSValue) -> JSValue;
936}
937unsafe extern "C" {
938 pub fn JS_DupValueRT(rt: *mut JSRuntime, v: JSValue) -> JSValue;
939}
940unsafe extern "C" {
941 pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::core::ffi::c_int;
942}
943unsafe extern "C" {
944 pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue;
945}
946unsafe extern "C" {
947 pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::core::ffi::c_int;
948}
949unsafe extern "C" {
950 pub fn JS_ToInt64(ctx: *mut JSContext, pres: *mut i64, val: JSValue) -> ::core::ffi::c_int;
951}
952unsafe extern "C" {
953 pub fn JS_ToIndex(ctx: *mut JSContext, plen: *mut u64, val: JSValue) -> ::core::ffi::c_int;
954}
955unsafe extern "C" {
956 pub fn JS_ToFloat64(ctx: *mut JSContext, pres: *mut f64, val: JSValue) -> ::core::ffi::c_int;
957}
958unsafe extern "C" {
959 pub fn JS_ToBigInt64(ctx: *mut JSContext, pres: *mut i64, val: JSValue) -> ::core::ffi::c_int;
960}
961unsafe extern "C" {
962 pub fn JS_ToBigUint64(ctx: *mut JSContext, pres: *mut u64, val: JSValue) -> ::core::ffi::c_int;
963}
964unsafe extern "C" {
965 pub fn JS_ToInt64Ext(ctx: *mut JSContext, pres: *mut i64, val: JSValue) -> ::core::ffi::c_int;
966}
967unsafe extern "C" {
968 pub fn JS_NewStringLen(
969 ctx: *mut JSContext,
970 str1: *const ::core::ffi::c_char,
971 len1: size_t,
972 ) -> JSValue;
973}
974unsafe extern "C" {
975 pub fn JS_NewStringUTF16(ctx: *mut JSContext, buf: *const u16, len: size_t) -> JSValue;
976}
977unsafe extern "C" {
978 pub fn JS_NewAtomString(ctx: *mut JSContext, str_: *const ::core::ffi::c_char) -> JSValue;
979}
980unsafe extern "C" {
981 pub fn JS_ToString(ctx: *mut JSContext, val: JSValue) -> JSValue;
982}
983unsafe extern "C" {
984 pub fn JS_ToPropertyKey(ctx: *mut JSContext, val: JSValue) -> JSValue;
985}
986unsafe extern "C" {
987 pub fn JS_ToCStringLen2(
988 ctx: *mut JSContext,
989 plen: *mut size_t,
990 val1: JSValue,
991 cesu8: bool,
992 ) -> *const ::core::ffi::c_char;
993}
994unsafe extern "C" {
995 pub fn JS_ToCStringLenUTF16(
996 ctx: *mut JSContext,
997 plen: *mut size_t,
998 val1: JSValue,
999 ) -> *const u16;
1000}
1001unsafe extern "C" {
1002 pub fn JS_FreeCString(ctx: *mut JSContext, ptr: *const ::core::ffi::c_char);
1003}
1004unsafe extern "C" {
1005 pub fn JS_FreeCStringRT(rt: *mut JSRuntime, ptr: *const ::core::ffi::c_char);
1006}
1007unsafe extern "C" {
1008 pub fn JS_FreeCStringUTF16(ctx: *mut JSContext, ptr: *const u16);
1009}
1010unsafe extern "C" {
1011 pub fn JS_FreeCStringRT_UTF16(rt: *mut JSRuntime, ptr: *const u16);
1012}
1013unsafe extern "C" {
1014 pub fn JS_NewObjectProtoClass(
1015 ctx: *mut JSContext,
1016 proto: JSValue,
1017 class_id: JSClassID,
1018 ) -> JSValue;
1019}
1020unsafe extern "C" {
1021 pub fn JS_NewObjectClass(ctx: *mut JSContext, class_id: JSClassID) -> JSValue;
1022}
1023unsafe extern "C" {
1024 pub fn JS_NewObjectProto(ctx: *mut JSContext, proto: JSValue) -> JSValue;
1025}
1026unsafe extern "C" {
1027 pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue;
1028}
1029unsafe extern "C" {
1030 pub fn JS_NewObjectFrom(
1031 ctx: *mut JSContext,
1032 count: ::core::ffi::c_int,
1033 props: *const JSAtom,
1034 values: *const JSValue,
1035 ) -> JSValue;
1036}
1037unsafe extern "C" {
1038 pub fn JS_NewObjectFromStr(
1039 ctx: *mut JSContext,
1040 count: ::core::ffi::c_int,
1041 props: *mut *const ::core::ffi::c_char,
1042 values: *const JSValue,
1043 ) -> JSValue;
1044}
1045unsafe extern "C" {
1046 pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue;
1047}
1048unsafe extern "C" {
1049 pub fn JS_ToObjectString(ctx: *mut JSContext, val: JSValue) -> JSValue;
1050}
1051unsafe extern "C" {
1052 pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> bool;
1053}
1054unsafe extern "C" {
1055 pub fn JS_IsAsyncFunction(val: JSValue) -> bool;
1056}
1057unsafe extern "C" {
1058 pub fn JS_IsConstructor(ctx: *mut JSContext, val: JSValue) -> bool;
1059}
1060unsafe extern "C" {
1061 pub fn JS_SetConstructorBit(ctx: *mut JSContext, func_obj: JSValue, val: bool) -> bool;
1062}
1063unsafe extern "C" {
1064 pub fn JS_IsRegExp(val: JSValue) -> bool;
1065}
1066unsafe extern "C" {
1067 pub fn JS_IsMap(val: JSValue) -> bool;
1068}
1069unsafe extern "C" {
1070 pub fn JS_IsSet(val: JSValue) -> bool;
1071}
1072unsafe extern "C" {
1073 pub fn JS_IsWeakRef(val: JSValue) -> bool;
1074}
1075unsafe extern "C" {
1076 pub fn JS_IsWeakSet(val: JSValue) -> bool;
1077}
1078unsafe extern "C" {
1079 pub fn JS_IsWeakMap(val: JSValue) -> bool;
1080}
1081unsafe extern "C" {
1082 pub fn JS_IsDataView(val: JSValue) -> bool;
1083}
1084unsafe extern "C" {
1085 pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue;
1086}
1087unsafe extern "C" {
1088 pub fn JS_NewArrayFrom(
1089 ctx: *mut JSContext,
1090 count: ::core::ffi::c_int,
1091 values: *const JSValue,
1092 ) -> JSValue;
1093}
1094unsafe extern "C" {
1095 pub fn JS_IsArray(val: JSValue) -> bool;
1096}
1097unsafe extern "C" {
1098 pub fn JS_IsProxy(val: JSValue) -> bool;
1099}
1100unsafe extern "C" {
1101 pub fn JS_GetProxyTarget(ctx: *mut JSContext, proxy: JSValue) -> JSValue;
1102}
1103unsafe extern "C" {
1104 pub fn JS_GetProxyHandler(ctx: *mut JSContext, proxy: JSValue) -> JSValue;
1105}
1106unsafe extern "C" {
1107 pub fn JS_NewProxy(ctx: *mut JSContext, target: JSValue, handler: JSValue) -> JSValue;
1108}
1109unsafe extern "C" {
1110 pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue;
1111}
1112unsafe extern "C" {
1113 pub fn JS_IsDate(v: JSValue) -> bool;
1114}
1115unsafe extern "C" {
1116 pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue;
1117}
1118unsafe extern "C" {
1119 pub fn JS_GetPropertyUint32(ctx: *mut JSContext, this_obj: JSValue, idx: u32) -> JSValue;
1120}
1121unsafe extern "C" {
1122 pub fn JS_GetPropertyInt64(ctx: *mut JSContext, this_obj: JSValue, idx: i64) -> JSValue;
1123}
1124unsafe extern "C" {
1125 pub fn JS_GetPropertyStr(
1126 ctx: *mut JSContext,
1127 this_obj: JSValue,
1128 prop: *const ::core::ffi::c_char,
1129 ) -> JSValue;
1130}
1131unsafe extern "C" {
1132 pub fn JS_SetProperty(
1133 ctx: *mut JSContext,
1134 this_obj: JSValue,
1135 prop: JSAtom,
1136 val: JSValue,
1137 ) -> ::core::ffi::c_int;
1138}
1139unsafe extern "C" {
1140 pub fn JS_SetPropertyUint32(
1141 ctx: *mut JSContext,
1142 this_obj: JSValue,
1143 idx: u32,
1144 val: JSValue,
1145 ) -> ::core::ffi::c_int;
1146}
1147unsafe extern "C" {
1148 pub fn JS_SetPropertyInt64(
1149 ctx: *mut JSContext,
1150 this_obj: JSValue,
1151 idx: i64,
1152 val: JSValue,
1153 ) -> ::core::ffi::c_int;
1154}
1155unsafe extern "C" {
1156 pub fn JS_SetPropertyStr(
1157 ctx: *mut JSContext,
1158 this_obj: JSValue,
1159 prop: *const ::core::ffi::c_char,
1160 val: JSValue,
1161 ) -> ::core::ffi::c_int;
1162}
1163unsafe extern "C" {
1164 pub fn JS_HasProperty(
1165 ctx: *mut JSContext,
1166 this_obj: JSValue,
1167 prop: JSAtom,
1168 ) -> ::core::ffi::c_int;
1169}
1170unsafe extern "C" {
1171 pub fn JS_IsExtensible(ctx: *mut JSContext, obj: JSValue) -> ::core::ffi::c_int;
1172}
1173unsafe extern "C" {
1174 pub fn JS_PreventExtensions(ctx: *mut JSContext, obj: JSValue) -> ::core::ffi::c_int;
1175}
1176unsafe extern "C" {
1177 pub fn JS_DeleteProperty(
1178 ctx: *mut JSContext,
1179 obj: JSValue,
1180 prop: JSAtom,
1181 flags: ::core::ffi::c_int,
1182 ) -> ::core::ffi::c_int;
1183}
1184unsafe extern "C" {
1185 pub fn JS_SetPrototype(
1186 ctx: *mut JSContext,
1187 obj: JSValue,
1188 proto_val: JSValue,
1189 ) -> ::core::ffi::c_int;
1190}
1191unsafe extern "C" {
1192 pub fn JS_GetPrototype(ctx: *mut JSContext, val: JSValue) -> JSValue;
1193}
1194unsafe extern "C" {
1195 pub fn JS_GetLength(ctx: *mut JSContext, obj: JSValue, pres: *mut i64) -> ::core::ffi::c_int;
1196}
1197unsafe extern "C" {
1198 pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::core::ffi::c_int;
1199}
1200unsafe extern "C" {
1201 pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::core::ffi::c_int;
1202}
1203unsafe extern "C" {
1204 pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::core::ffi::c_int;
1205}
1206unsafe extern "C" {
1207 pub fn JS_GetOwnPropertyNames(
1208 ctx: *mut JSContext,
1209 ptab: *mut *mut JSPropertyEnum,
1210 plen: *mut u32,
1211 obj: JSValue,
1212 flags: ::core::ffi::c_int,
1213 ) -> ::core::ffi::c_int;
1214}
1215unsafe extern "C" {
1216 pub fn JS_GetOwnProperty(
1217 ctx: *mut JSContext,
1218 desc: *mut JSPropertyDescriptor,
1219 obj: JSValue,
1220 prop: JSAtom,
1221 ) -> ::core::ffi::c_int;
1222}
1223unsafe extern "C" {
1224 pub fn JS_FreePropertyEnum(ctx: *mut JSContext, tab: *mut JSPropertyEnum, len: u32);
1225}
1226unsafe extern "C" {
1227 pub fn JS_Call(
1228 ctx: *mut JSContext,
1229 func_obj: JSValue,
1230 this_obj: JSValue,
1231 argc: ::core::ffi::c_int,
1232 argv: *mut JSValue,
1233 ) -> JSValue;
1234}
1235unsafe extern "C" {
1236 pub fn JS_Invoke(
1237 ctx: *mut JSContext,
1238 this_val: JSValue,
1239 atom: JSAtom,
1240 argc: ::core::ffi::c_int,
1241 argv: *mut JSValue,
1242 ) -> JSValue;
1243}
1244unsafe extern "C" {
1245 pub fn JS_CallConstructor(
1246 ctx: *mut JSContext,
1247 func_obj: JSValue,
1248 argc: ::core::ffi::c_int,
1249 argv: *mut JSValue,
1250 ) -> JSValue;
1251}
1252unsafe extern "C" {
1253 pub fn JS_CallConstructor2(
1254 ctx: *mut JSContext,
1255 func_obj: JSValue,
1256 new_target: JSValue,
1257 argc: ::core::ffi::c_int,
1258 argv: *mut JSValue,
1259 ) -> JSValue;
1260}
1261unsafe extern "C" {
1262 pub fn JS_DetectModule(input: *const ::core::ffi::c_char, input_len: size_t) -> bool;
1263}
1264unsafe extern "C" {
1265 pub fn JS_Eval(
1266 ctx: *mut JSContext,
1267 input: *const ::core::ffi::c_char,
1268 input_len: size_t,
1269 filename: *const ::core::ffi::c_char,
1270 eval_flags: ::core::ffi::c_int,
1271 ) -> JSValue;
1272}
1273unsafe extern "C" {
1274 pub fn JS_Eval2(
1275 ctx: *mut JSContext,
1276 input: *const ::core::ffi::c_char,
1277 input_len: size_t,
1278 options: *mut JSEvalOptions,
1279 ) -> JSValue;
1280}
1281unsafe extern "C" {
1282 pub fn JS_EvalThis(
1283 ctx: *mut JSContext,
1284 this_obj: JSValue,
1285 input: *const ::core::ffi::c_char,
1286 input_len: size_t,
1287 filename: *const ::core::ffi::c_char,
1288 eval_flags: ::core::ffi::c_int,
1289 ) -> JSValue;
1290}
1291unsafe extern "C" {
1292 pub fn JS_EvalThis2(
1293 ctx: *mut JSContext,
1294 this_obj: JSValue,
1295 input: *const ::core::ffi::c_char,
1296 input_len: size_t,
1297 options: *mut JSEvalOptions,
1298 ) -> JSValue;
1299}
1300unsafe extern "C" {
1301 pub fn JS_GetGlobalObject(ctx: *mut JSContext) -> JSValue;
1302}
1303unsafe extern "C" {
1304 pub fn JS_IsInstanceOf(ctx: *mut JSContext, val: JSValue, obj: JSValue) -> ::core::ffi::c_int;
1305}
1306unsafe extern "C" {
1307 pub fn JS_DefineProperty(
1308 ctx: *mut JSContext,
1309 this_obj: JSValue,
1310 prop: JSAtom,
1311 val: JSValue,
1312 getter: JSValue,
1313 setter: JSValue,
1314 flags: ::core::ffi::c_int,
1315 ) -> ::core::ffi::c_int;
1316}
1317unsafe extern "C" {
1318 pub fn JS_DefinePropertyValue(
1319 ctx: *mut JSContext,
1320 this_obj: JSValue,
1321 prop: JSAtom,
1322 val: JSValue,
1323 flags: ::core::ffi::c_int,
1324 ) -> ::core::ffi::c_int;
1325}
1326unsafe extern "C" {
1327 pub fn JS_DefinePropertyValueUint32(
1328 ctx: *mut JSContext,
1329 this_obj: JSValue,
1330 idx: u32,
1331 val: JSValue,
1332 flags: ::core::ffi::c_int,
1333 ) -> ::core::ffi::c_int;
1334}
1335unsafe extern "C" {
1336 pub fn JS_DefinePropertyValueStr(
1337 ctx: *mut JSContext,
1338 this_obj: JSValue,
1339 prop: *const ::core::ffi::c_char,
1340 val: JSValue,
1341 flags: ::core::ffi::c_int,
1342 ) -> ::core::ffi::c_int;
1343}
1344unsafe extern "C" {
1345 pub fn JS_DefinePropertyGetSet(
1346 ctx: *mut JSContext,
1347 this_obj: JSValue,
1348 prop: JSAtom,
1349 getter: JSValue,
1350 setter: JSValue,
1351 flags: ::core::ffi::c_int,
1352 ) -> ::core::ffi::c_int;
1353}
1354unsafe extern "C" {
1355 pub fn JS_SetOpaque(obj: JSValue, opaque: *mut ::core::ffi::c_void) -> ::core::ffi::c_int;
1356}
1357unsafe extern "C" {
1358 pub fn JS_GetOpaque(obj: JSValue, class_id: JSClassID) -> *mut ::core::ffi::c_void;
1359}
1360unsafe extern "C" {
1361 pub fn JS_GetOpaque2(
1362 ctx: *mut JSContext,
1363 obj: JSValue,
1364 class_id: JSClassID,
1365 ) -> *mut ::core::ffi::c_void;
1366}
1367unsafe extern "C" {
1368 pub fn JS_GetAnyOpaque(obj: JSValue, class_id: *mut JSClassID) -> *mut ::core::ffi::c_void;
1369}
1370unsafe extern "C" {
1371 pub fn JS_ParseJSON(
1372 ctx: *mut JSContext,
1373 buf: *const ::core::ffi::c_char,
1374 buf_len: size_t,
1375 filename: *const ::core::ffi::c_char,
1376 ) -> JSValue;
1377}
1378unsafe extern "C" {
1379 pub fn JS_JSONStringify(
1380 ctx: *mut JSContext,
1381 obj: JSValue,
1382 replacer: JSValue,
1383 space0: JSValue,
1384 ) -> JSValue;
1385}
1386pub type JSReallocArrayBufferDataFunc = ::core::option::Option<
1387 unsafe extern "C" fn(
1388 rt: *mut JSRuntime,
1389 opaque: *mut ::core::ffi::c_void,
1390 ptr: *mut ::core::ffi::c_void,
1391 size: size_t,
1392 ) -> *mut ::core::ffi::c_void,
1393>;
1394unsafe extern "C" {
1395 pub fn JS_NewArrayBuffer(
1396 ctx: *mut JSContext,
1397 buf: *mut u8,
1398 len: size_t,
1399 max_len: size_t,
1400 realloc_func: JSReallocArrayBufferDataFunc,
1401 opaque: *mut ::core::ffi::c_void,
1402 is_shared: bool,
1403 ) -> JSValue;
1404}
1405unsafe extern "C" {
1406 pub fn JS_NewArrayBufferCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue;
1407}
1408unsafe extern "C" {
1409 pub fn JS_DetachArrayBuffer(ctx: *mut JSContext, obj: JSValue);
1410}
1411unsafe extern "C" {
1412 pub fn JS_GetArrayBuffer(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8;
1413}
1414unsafe extern "C" {
1415 pub fn JS_IsArrayBuffer(obj: JSValue) -> bool;
1416}
1417unsafe extern "C" {
1418 pub fn JS_IsImmutableArrayBuffer(obj: JSValue) -> ::core::ffi::c_int;
1419}
1420unsafe extern "C" {
1421 pub fn JS_SetImmutableArrayBuffer(obj: JSValue, immutable: bool) -> ::core::ffi::c_int;
1422}
1423unsafe extern "C" {
1424 pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8;
1425}
1426pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C: JSTypedArrayEnum = 0;
1427pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8: JSTypedArrayEnum = 1;
1428pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8: JSTypedArrayEnum = 2;
1429pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16: JSTypedArrayEnum = 3;
1430pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16: JSTypedArrayEnum = 4;
1431pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32: JSTypedArrayEnum = 5;
1432pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32: JSTypedArrayEnum = 6;
1433pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64: JSTypedArrayEnum = 7;
1434pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64: JSTypedArrayEnum = 8;
1435pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16: JSTypedArrayEnum = 9;
1436pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32: JSTypedArrayEnum = 10;
1437pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64: JSTypedArrayEnum = 11;
1438pub type JSTypedArrayEnum = ::core::ffi::c_uint;
1439unsafe extern "C" {
1440 pub fn JS_NewTypedArray(
1441 ctx: *mut JSContext,
1442 argc: ::core::ffi::c_int,
1443 argv: *mut JSValue,
1444 array_type: JSTypedArrayEnum,
1445 ) -> JSValue;
1446}
1447unsafe extern "C" {
1448 pub fn JS_GetTypedArrayBuffer(
1449 ctx: *mut JSContext,
1450 obj: JSValue,
1451 pbyte_offset: *mut size_t,
1452 pbyte_length: *mut size_t,
1453 pbytes_per_element: *mut size_t,
1454 ) -> JSValue;
1455}
1456unsafe extern "C" {
1457 pub fn JS_NewUint8Array(
1458 ctx: *mut JSContext,
1459 buf: *mut u8,
1460 len: size_t,
1461 realloc_func: JSReallocArrayBufferDataFunc,
1462 opaque: *mut ::core::ffi::c_void,
1463 is_shared: bool,
1464 ) -> JSValue;
1465}
1466unsafe extern "C" {
1467 pub fn JS_GetTypedArrayType(obj: JSValue) -> ::core::ffi::c_int;
1468}
1469unsafe extern "C" {
1470 pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue;
1471}
1472#[repr(C)]
1473#[derive(Debug, Copy, Clone)]
1474pub struct JSSharedArrayBufferFunctions {
1475 pub sab_alloc: ::core::option::Option<
1476 unsafe extern "C" fn(
1477 opaque: *mut ::core::ffi::c_void,
1478 size: size_t,
1479 ) -> *mut ::core::ffi::c_void,
1480 >,
1481 pub sab_free: ::core::option::Option<
1482 unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, ptr: *mut ::core::ffi::c_void),
1483 >,
1484 pub sab_dup: ::core::option::Option<
1485 unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, ptr: *mut ::core::ffi::c_void),
1486 >,
1487 pub sab_opaque: *mut ::core::ffi::c_void,
1488}
1489#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1490const _: () = {
1491 ["Size of JSSharedArrayBufferFunctions"]
1492 [::core::mem::size_of::<JSSharedArrayBufferFunctions>() - 32usize];
1493 ["Alignment of JSSharedArrayBufferFunctions"]
1494 [::core::mem::align_of::<JSSharedArrayBufferFunctions>() - 8usize];
1495 ["Offset of field: JSSharedArrayBufferFunctions::sab_alloc"]
1496 [::core::mem::offset_of!(JSSharedArrayBufferFunctions, sab_alloc) - 0usize];
1497 ["Offset of field: JSSharedArrayBufferFunctions::sab_free"]
1498 [::core::mem::offset_of!(JSSharedArrayBufferFunctions, sab_free) - 8usize];
1499 ["Offset of field: JSSharedArrayBufferFunctions::sab_dup"]
1500 [::core::mem::offset_of!(JSSharedArrayBufferFunctions, sab_dup) - 16usize];
1501 ["Offset of field: JSSharedArrayBufferFunctions::sab_opaque"]
1502 [::core::mem::offset_of!(JSSharedArrayBufferFunctions, sab_opaque) - 24usize];
1503};
1504unsafe extern "C" {
1505 pub fn JS_SetSharedArrayBufferFunctions(
1506 rt: *mut JSRuntime,
1507 sf: *const JSSharedArrayBufferFunctions,
1508 );
1509}
1510pub const JSPromiseStateEnum_JS_PROMISE_NOT_A_PROMISE: JSPromiseStateEnum = -1;
1511pub const JSPromiseStateEnum_JS_PROMISE_PENDING: JSPromiseStateEnum = 0;
1512pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED: JSPromiseStateEnum = 1;
1513pub const JSPromiseStateEnum_JS_PROMISE_REJECTED: JSPromiseStateEnum = 2;
1514pub type JSPromiseStateEnum = ::core::ffi::c_int;
1515unsafe extern "C" {
1516 pub fn JS_NewPromiseCapability(ctx: *mut JSContext, resolving_funcs: *mut JSValue) -> JSValue;
1517}
1518unsafe extern "C" {
1519 pub fn JS_PromiseThen(
1520 ctx: *mut JSContext,
1521 promise: JSValue,
1522 on_fulfilled: JSValue,
1523 on_rejected: JSValue,
1524 ) -> JSValue;
1525}
1526unsafe extern "C" {
1527 pub fn JS_PromiseState(ctx: *mut JSContext, promise: JSValue) -> JSPromiseStateEnum;
1528}
1529unsafe extern "C" {
1530 pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue;
1531}
1532unsafe extern "C" {
1533 pub fn JS_IsPromise(val: JSValue) -> bool;
1534}
1535unsafe extern "C" {
1536 pub fn JS_PromiseMarkAsHandled(ctx: *mut JSContext, promise: JSValue);
1537}
1538unsafe extern "C" {
1539 pub fn JS_NewSettledPromise(ctx: *mut JSContext, is_reject: bool, value: JSValue) -> JSValue;
1540}
1541unsafe extern "C" {
1542 pub fn JS_NewSymbol(
1543 ctx: *mut JSContext,
1544 description: *const ::core::ffi::c_char,
1545 is_global: bool,
1546 ) -> JSValue;
1547}
1548pub const JSPromiseHookType_JS_PROMISE_HOOK_INIT: JSPromiseHookType = 0;
1549pub const JSPromiseHookType_JS_PROMISE_HOOK_BEFORE: JSPromiseHookType = 1;
1550pub const JSPromiseHookType_JS_PROMISE_HOOK_AFTER: JSPromiseHookType = 2;
1551pub const JSPromiseHookType_JS_PROMISE_HOOK_RESOLVE: JSPromiseHookType = 3;
1552pub type JSPromiseHookType = ::core::ffi::c_uint;
1553pub type JSPromiseHook = ::core::option::Option<
1554 unsafe extern "C" fn(
1555 ctx: *mut JSContext,
1556 type_: JSPromiseHookType,
1557 promise: JSValue,
1558 parent_promise: JSValue,
1559 opaque: *mut ::core::ffi::c_void,
1560 ),
1561>;
1562unsafe extern "C" {
1563 pub fn JS_SetPromiseHook(
1564 rt: *mut JSRuntime,
1565 promise_hook: JSPromiseHook,
1566 opaque: *mut ::core::ffi::c_void,
1567 );
1568}
1569pub type JSHostPromiseRejectionTracker = ::core::option::Option<
1570 unsafe extern "C" fn(
1571 ctx: *mut JSContext,
1572 promise: JSValue,
1573 reason: JSValue,
1574 is_handled: bool,
1575 opaque: *mut ::core::ffi::c_void,
1576 ),
1577>;
1578unsafe extern "C" {
1579 pub fn JS_SetHostPromiseRejectionTracker(
1580 rt: *mut JSRuntime,
1581 cb: JSHostPromiseRejectionTracker,
1582 opaque: *mut ::core::ffi::c_void,
1583 );
1584}
1585pub type JSInterruptHandler = ::core::option::Option<
1586 unsafe extern "C" fn(
1587 rt: *mut JSRuntime,
1588 opaque: *mut ::core::ffi::c_void,
1589 ) -> ::core::ffi::c_int,
1590>;
1591unsafe extern "C" {
1592 pub fn JS_SetInterruptHandler(
1593 rt: *mut JSRuntime,
1594 cb: JSInterruptHandler,
1595 opaque: *mut ::core::ffi::c_void,
1596 );
1597}
1598unsafe extern "C" {
1599 pub fn JS_SetCanBlock(rt: *mut JSRuntime, can_block: bool);
1600}
1601unsafe extern "C" {
1602 pub fn JS_SetIsHTMLDDA(ctx: *mut JSContext, obj: JSValue);
1603}
1604#[repr(C)]
1605#[derive(Debug, Copy, Clone)]
1606pub struct JSModuleDef {
1607 _unused: [u8; 0],
1608}
1609pub type JSModuleNormalizeFunc = ::core::option::Option<
1610 unsafe extern "C" fn(
1611 ctx: *mut JSContext,
1612 module_base_name: *const ::core::ffi::c_char,
1613 module_name: *const ::core::ffi::c_char,
1614 opaque: *mut ::core::ffi::c_void,
1615 ) -> *mut ::core::ffi::c_char,
1616>;
1617pub type JSModuleNormalizeFunc2 = ::core::option::Option<
1618 unsafe extern "C" fn(
1619 ctx: *mut JSContext,
1620 module_base_name: *const ::core::ffi::c_char,
1621 module_name: *const ::core::ffi::c_char,
1622 attributes: JSValue,
1623 opaque: *mut ::core::ffi::c_void,
1624 ) -> *mut ::core::ffi::c_char,
1625>;
1626pub type JSModuleLoaderFunc = ::core::option::Option<
1627 unsafe extern "C" fn(
1628 ctx: *mut JSContext,
1629 module_name: *const ::core::ffi::c_char,
1630 opaque: *mut ::core::ffi::c_void,
1631 ) -> *mut JSModuleDef,
1632>;
1633pub type JSModuleLoaderFunc2 = ::core::option::Option<
1634 unsafe extern "C" fn(
1635 ctx: *mut JSContext,
1636 module_name: *const ::core::ffi::c_char,
1637 opaque: *mut ::core::ffi::c_void,
1638 attributes: JSValue,
1639 ) -> *mut JSModuleDef,
1640>;
1641pub type JSModuleCheckSupportedImportAttributes = ::core::option::Option<
1642 unsafe extern "C" fn(
1643 ctx: *mut JSContext,
1644 opaque: *mut ::core::ffi::c_void,
1645 attributes: JSValue,
1646 ) -> ::core::ffi::c_int,
1647>;
1648unsafe extern "C" {
1649 pub fn JS_SetModuleLoaderFunc(
1650 rt: *mut JSRuntime,
1651 module_normalize: JSModuleNormalizeFunc,
1652 module_loader: JSModuleLoaderFunc,
1653 opaque: *mut ::core::ffi::c_void,
1654 );
1655}
1656unsafe extern "C" {
1657 pub fn JS_SetModuleLoaderFunc2(
1658 rt: *mut JSRuntime,
1659 module_normalize: JSModuleNormalizeFunc,
1660 module_loader: JSModuleLoaderFunc2,
1661 module_check_attrs: JSModuleCheckSupportedImportAttributes,
1662 opaque: *mut ::core::ffi::c_void,
1663 );
1664}
1665unsafe extern "C" {
1666 pub fn JS_SetModuleNormalizeFunc2(rt: *mut JSRuntime, module_normalize: JSModuleNormalizeFunc2);
1667}
1668unsafe extern "C" {
1669 pub fn JS_GetImportMeta(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSValue;
1670}
1671unsafe extern "C" {
1672 pub fn JS_GetModuleName(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSAtom;
1673}
1674unsafe extern "C" {
1675 pub fn JS_GetModuleNamespace(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSValue;
1676}
1677unsafe extern "C" {
1678 pub fn JS_SetModulePrivateValue(
1679 ctx: *mut JSContext,
1680 m: *mut JSModuleDef,
1681 val: JSValue,
1682 ) -> ::core::ffi::c_int;
1683}
1684unsafe extern "C" {
1685 pub fn JS_GetModulePrivateValue(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSValue;
1686}
1687pub type JSJobFunc = ::core::option::Option<
1688 unsafe extern "C" fn(
1689 ctx: *mut JSContext,
1690 argc: ::core::ffi::c_int,
1691 argv: *mut JSValue,
1692 ) -> JSValue,
1693>;
1694unsafe extern "C" {
1695 pub fn JS_EnqueueJob(
1696 ctx: *mut JSContext,
1697 job_func: JSJobFunc,
1698 argc: ::core::ffi::c_int,
1699 argv: *mut JSValue,
1700 ) -> ::core::ffi::c_int;
1701}
1702unsafe extern "C" {
1703 pub fn JS_IsJobPending(rt: *mut JSRuntime) -> bool;
1704}
1705unsafe extern "C" {
1706 pub fn JS_GetPendingJobContext(rt: *mut JSRuntime) -> *mut JSContext;
1707}
1708unsafe extern "C" {
1709 pub fn JS_ExecutePendingJob(
1710 rt: *mut JSRuntime,
1711 pctx: *mut *mut JSContext,
1712 ) -> ::core::ffi::c_int;
1713}
1714#[repr(C)]
1715#[derive(Debug, Copy, Clone)]
1716pub struct JSSABTab {
1717 pub tab: *mut *mut u8,
1718 pub len: size_t,
1719}
1720#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1721const _: () = {
1722 ["Size of JSSABTab"][::core::mem::size_of::<JSSABTab>() - 16usize];
1723 ["Alignment of JSSABTab"][::core::mem::align_of::<JSSABTab>() - 8usize];
1724 ["Offset of field: JSSABTab::tab"][::core::mem::offset_of!(JSSABTab, tab) - 0usize];
1725 ["Offset of field: JSSABTab::len"][::core::mem::offset_of!(JSSABTab, len) - 8usize];
1726};
1727unsafe extern "C" {
1728 pub fn JS_WriteObject(
1729 ctx: *mut JSContext,
1730 psize: *mut size_t,
1731 obj: JSValue,
1732 flags: ::core::ffi::c_int,
1733 ) -> *mut u8;
1734}
1735unsafe extern "C" {
1736 pub fn JS_WriteObject2(
1737 ctx: *mut JSContext,
1738 psize: *mut size_t,
1739 obj: JSValue,
1740 flags: ::core::ffi::c_int,
1741 psab_tab: *mut JSSABTab,
1742 ) -> *mut u8;
1743}
1744unsafe extern "C" {
1745 pub fn JS_ReadObject(
1746 ctx: *mut JSContext,
1747 buf: *const u8,
1748 buf_len: size_t,
1749 flags: ::core::ffi::c_int,
1750 ) -> JSValue;
1751}
1752unsafe extern "C" {
1753 pub fn JS_ReadObject2(
1754 ctx: *mut JSContext,
1755 buf: *const u8,
1756 buf_len: size_t,
1757 flags: ::core::ffi::c_int,
1758 psab_tab: *mut JSSABTab,
1759 ) -> JSValue;
1760}
1761unsafe extern "C" {
1762 pub fn JS_EvalFunction(ctx: *mut JSContext, fun_obj: JSValue) -> JSValue;
1763}
1764unsafe extern "C" {
1765 pub fn JS_ResolveModule(ctx: *mut JSContext, obj: JSValue) -> ::core::ffi::c_int;
1766}
1767unsafe extern "C" {
1768 pub fn JS_GetScriptOrModuleName(
1769 ctx: *mut JSContext,
1770 n_stack_levels: ::core::ffi::c_int,
1771 ) -> JSAtom;
1772}
1773unsafe extern "C" {
1774 pub fn JS_LoadModule(
1775 ctx: *mut JSContext,
1776 basename: *const ::core::ffi::c_char,
1777 filename: *const ::core::ffi::c_char,
1778 ) -> JSValue;
1779}
1780pub const JSCFunctionEnum_JS_CFUNC_generic: JSCFunctionEnum = 0;
1781pub const JSCFunctionEnum_JS_CFUNC_generic_magic: JSCFunctionEnum = 1;
1782pub const JSCFunctionEnum_JS_CFUNC_constructor: JSCFunctionEnum = 2;
1783pub const JSCFunctionEnum_JS_CFUNC_constructor_magic: JSCFunctionEnum = 3;
1784pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func: JSCFunctionEnum = 4;
1785pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic: JSCFunctionEnum = 5;
1786pub const JSCFunctionEnum_JS_CFUNC_f_f: JSCFunctionEnum = 6;
1787pub const JSCFunctionEnum_JS_CFUNC_f_f_f: JSCFunctionEnum = 7;
1788pub const JSCFunctionEnum_JS_CFUNC_getter: JSCFunctionEnum = 8;
1789pub const JSCFunctionEnum_JS_CFUNC_setter: JSCFunctionEnum = 9;
1790pub const JSCFunctionEnum_JS_CFUNC_getter_magic: JSCFunctionEnum = 10;
1791pub const JSCFunctionEnum_JS_CFUNC_setter_magic: JSCFunctionEnum = 11;
1792pub const JSCFunctionEnum_JS_CFUNC_iterator_next: JSCFunctionEnum = 12;
1793pub type JSCFunctionEnum = ::core::ffi::c_uint;
1794#[repr(C)]
1795#[derive(Copy, Clone)]
1796pub union JSCFunctionType {
1797 pub generic: JSCFunction,
1798 pub generic_magic: ::core::option::Option<
1799 unsafe extern "C" fn(
1800 ctx: *mut JSContext,
1801 this_val: JSValue,
1802 argc: ::core::ffi::c_int,
1803 argv: *mut JSValue,
1804 magic: ::core::ffi::c_int,
1805 ) -> JSValue,
1806 >,
1807 pub constructor: JSCFunction,
1808 pub constructor_magic: ::core::option::Option<
1809 unsafe extern "C" fn(
1810 ctx: *mut JSContext,
1811 new_target: JSValue,
1812 argc: ::core::ffi::c_int,
1813 argv: *mut JSValue,
1814 magic: ::core::ffi::c_int,
1815 ) -> JSValue,
1816 >,
1817 pub constructor_or_func: JSCFunction,
1818 pub f_f: ::core::option::Option<unsafe extern "C" fn(arg1: f64) -> f64>,
1819 pub f_f_f: ::core::option::Option<unsafe extern "C" fn(arg1: f64, arg2: f64) -> f64>,
1820 pub getter: ::core::option::Option<
1821 unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue) -> JSValue,
1822 >,
1823 pub setter: ::core::option::Option<
1824 unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, val: JSValue) -> JSValue,
1825 >,
1826 pub getter_magic: ::core::option::Option<
1827 unsafe extern "C" fn(
1828 ctx: *mut JSContext,
1829 this_val: JSValue,
1830 magic: ::core::ffi::c_int,
1831 ) -> JSValue,
1832 >,
1833 pub setter_magic: ::core::option::Option<
1834 unsafe extern "C" fn(
1835 ctx: *mut JSContext,
1836 this_val: JSValue,
1837 val: JSValue,
1838 magic: ::core::ffi::c_int,
1839 ) -> JSValue,
1840 >,
1841 pub iterator_next: ::core::option::Option<
1842 unsafe extern "C" fn(
1843 ctx: *mut JSContext,
1844 this_val: JSValue,
1845 argc: ::core::ffi::c_int,
1846 argv: *mut JSValue,
1847 pdone: *mut ::core::ffi::c_int,
1848 magic: ::core::ffi::c_int,
1849 ) -> JSValue,
1850 >,
1851}
1852#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1853const _: () = {
1854 ["Size of JSCFunctionType"][::core::mem::size_of::<JSCFunctionType>() - 8usize];
1855 ["Alignment of JSCFunctionType"][::core::mem::align_of::<JSCFunctionType>() - 8usize];
1856 ["Offset of field: JSCFunctionType::generic"]
1857 [::core::mem::offset_of!(JSCFunctionType, generic) - 0usize];
1858 ["Offset of field: JSCFunctionType::generic_magic"]
1859 [::core::mem::offset_of!(JSCFunctionType, generic_magic) - 0usize];
1860 ["Offset of field: JSCFunctionType::constructor"]
1861 [::core::mem::offset_of!(JSCFunctionType, constructor) - 0usize];
1862 ["Offset of field: JSCFunctionType::constructor_magic"]
1863 [::core::mem::offset_of!(JSCFunctionType, constructor_magic) - 0usize];
1864 ["Offset of field: JSCFunctionType::constructor_or_func"]
1865 [::core::mem::offset_of!(JSCFunctionType, constructor_or_func) - 0usize];
1866 ["Offset of field: JSCFunctionType::f_f"]
1867 [::core::mem::offset_of!(JSCFunctionType, f_f) - 0usize];
1868 ["Offset of field: JSCFunctionType::f_f_f"]
1869 [::core::mem::offset_of!(JSCFunctionType, f_f_f) - 0usize];
1870 ["Offset of field: JSCFunctionType::getter"]
1871 [::core::mem::offset_of!(JSCFunctionType, getter) - 0usize];
1872 ["Offset of field: JSCFunctionType::setter"]
1873 [::core::mem::offset_of!(JSCFunctionType, setter) - 0usize];
1874 ["Offset of field: JSCFunctionType::getter_magic"]
1875 [::core::mem::offset_of!(JSCFunctionType, getter_magic) - 0usize];
1876 ["Offset of field: JSCFunctionType::setter_magic"]
1877 [::core::mem::offset_of!(JSCFunctionType, setter_magic) - 0usize];
1878 ["Offset of field: JSCFunctionType::iterator_next"]
1879 [::core::mem::offset_of!(JSCFunctionType, iterator_next) - 0usize];
1880};
1881unsafe extern "C" {
1882 pub fn JS_NewCFunction2(
1883 ctx: *mut JSContext,
1884 func: JSCFunction,
1885 name: *const ::core::ffi::c_char,
1886 length: ::core::ffi::c_int,
1887 cproto: JSCFunctionEnum,
1888 magic: ::core::ffi::c_int,
1889 ) -> JSValue;
1890}
1891unsafe extern "C" {
1892 pub fn JS_NewCFunction3(
1893 ctx: *mut JSContext,
1894 func: JSCFunction,
1895 name: *const ::core::ffi::c_char,
1896 length: ::core::ffi::c_int,
1897 cproto: JSCFunctionEnum,
1898 magic: ::core::ffi::c_int,
1899 proto_val: JSValue,
1900 n_fields: ::core::ffi::c_int,
1901 ) -> JSValue;
1902}
1903unsafe extern "C" {
1904 pub fn JS_NewCFunctionData(
1905 ctx: *mut JSContext,
1906 func: JSCFunctionData,
1907 length: ::core::ffi::c_int,
1908 magic: ::core::ffi::c_int,
1909 data_len: ::core::ffi::c_int,
1910 data: *mut JSValue,
1911 ) -> JSValue;
1912}
1913unsafe extern "C" {
1914 pub fn JS_NewCFunctionData2(
1915 ctx: *mut JSContext,
1916 func: JSCFunctionData,
1917 name: *const ::core::ffi::c_char,
1918 length: ::core::ffi::c_int,
1919 magic: ::core::ffi::c_int,
1920 data_len: ::core::ffi::c_int,
1921 data: *mut JSValue,
1922 ) -> JSValue;
1923}
1924pub type JSCClosureFinalizerFunc =
1925 ::core::option::Option<unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void)>;
1926unsafe extern "C" {
1927 pub fn JS_NewCClosure(
1928 ctx: *mut JSContext,
1929 func: JSCClosure,
1930 name: *const ::core::ffi::c_char,
1931 opaque_finalize: JSCClosureFinalizerFunc,
1932 length: ::core::ffi::c_int,
1933 magic: ::core::ffi::c_int,
1934 opaque: *mut ::core::ffi::c_void,
1935 ) -> JSValue;
1936}
1937unsafe extern "C" {
1938 pub fn JS_SetConstructor(
1939 ctx: *mut JSContext,
1940 func_obj: JSValue,
1941 proto: JSValue,
1942 ) -> ::core::ffi::c_int;
1943}
1944#[repr(C)]
1945#[derive(Copy, Clone)]
1946pub struct JSCFunctionListEntry {
1947 pub name: *const ::core::ffi::c_char,
1948 pub prop_flags: u8,
1949 pub def_type: u8,
1950 pub magic: i16,
1951 pub u: JSCFunctionListEntry__bindgen_ty_1,
1952}
1953#[repr(C)]
1954#[derive(Copy, Clone)]
1955pub union JSCFunctionListEntry__bindgen_ty_1 {
1956 pub func: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1,
1957 pub getset: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2,
1958 pub alias: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3,
1959 pub prop_list: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4,
1960 pub str_: *const ::core::ffi::c_char,
1961 pub i32_: i32,
1962 pub i64_: i64,
1963 pub u64_: u64,
1964 pub f64_: f64,
1965}
1966#[repr(C)]
1967#[derive(Copy, Clone)]
1968pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 {
1969 pub length: u8,
1970 pub cproto: u8,
1971 pub cfunc: JSCFunctionType,
1972}
1973#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1974const _: () = {
1975 ["Size of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1"]
1976 [::core::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1>() - 16usize];
1977 ["Alignment of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1"]
1978 [::core::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1>() - 8usize];
1979 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1::length"][::core::mem::offset_of!(
1980 JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1,
1981 length
1982 ) - 0usize];
1983 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1::cproto"][::core::mem::offset_of!(
1984 JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1,
1985 cproto
1986 ) - 1usize];
1987 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1::cfunc"]
1988 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1, cfunc) - 8usize];
1989};
1990#[repr(C)]
1991#[derive(Copy, Clone)]
1992pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 {
1993 pub get: JSCFunctionType,
1994 pub set: JSCFunctionType,
1995}
1996#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1997const _: () = {
1998 ["Size of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2"]
1999 [::core::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2>() - 16usize];
2000 ["Alignment of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2"]
2001 [::core::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2>() - 8usize];
2002 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2::get"]
2003 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2, get) - 0usize];
2004 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2::set"]
2005 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2, set) - 8usize];
2006};
2007#[repr(C)]
2008#[derive(Debug, Copy, Clone)]
2009pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 {
2010 pub name: *const ::core::ffi::c_char,
2011 pub base: ::core::ffi::c_int,
2012}
2013#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2014const _: () = {
2015 ["Size of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3"]
2016 [::core::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3>() - 16usize];
2017 ["Alignment of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3"]
2018 [::core::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3>() - 8usize];
2019 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3::name"]
2020 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3, name) - 0usize];
2021 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3::base"]
2022 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3, base) - 8usize];
2023};
2024#[repr(C)]
2025#[derive(Debug, Copy, Clone)]
2026pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 {
2027 pub tab: *const JSCFunctionListEntry,
2028 pub len: ::core::ffi::c_int,
2029}
2030#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2031const _: () = {
2032 ["Size of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4"]
2033 [::core::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4>() - 16usize];
2034 ["Alignment of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4"]
2035 [::core::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4>() - 8usize];
2036 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4::tab"]
2037 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4, tab) - 0usize];
2038 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4::len"]
2039 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4, len) - 8usize];
2040};
2041#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2042const _: () = {
2043 ["Size of JSCFunctionListEntry__bindgen_ty_1"]
2044 [::core::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1>() - 16usize];
2045 ["Alignment of JSCFunctionListEntry__bindgen_ty_1"]
2046 [::core::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1>() - 8usize];
2047 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::func"]
2048 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, func) - 0usize];
2049 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::getset"]
2050 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, getset) - 0usize];
2051 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::alias"]
2052 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, alias) - 0usize];
2053 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::prop_list"]
2054 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, prop_list) - 0usize];
2055 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::str_"]
2056 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, str_) - 0usize];
2057 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::i32_"]
2058 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, i32_) - 0usize];
2059 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::i64_"]
2060 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, i64_) - 0usize];
2061 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::u64_"]
2062 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, u64_) - 0usize];
2063 ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::f64_"]
2064 [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, f64_) - 0usize];
2065};
2066#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2067const _: () = {
2068 ["Size of JSCFunctionListEntry"][::core::mem::size_of::<JSCFunctionListEntry>() - 32usize];
2069 ["Alignment of JSCFunctionListEntry"][::core::mem::align_of::<JSCFunctionListEntry>() - 8usize];
2070 ["Offset of field: JSCFunctionListEntry::name"]
2071 [::core::mem::offset_of!(JSCFunctionListEntry, name) - 0usize];
2072 ["Offset of field: JSCFunctionListEntry::prop_flags"]
2073 [::core::mem::offset_of!(JSCFunctionListEntry, prop_flags) - 8usize];
2074 ["Offset of field: JSCFunctionListEntry::def_type"]
2075 [::core::mem::offset_of!(JSCFunctionListEntry, def_type) - 9usize];
2076 ["Offset of field: JSCFunctionListEntry::magic"]
2077 [::core::mem::offset_of!(JSCFunctionListEntry, magic) - 10usize];
2078 ["Offset of field: JSCFunctionListEntry::u"]
2079 [::core::mem::offset_of!(JSCFunctionListEntry, u) - 16usize];
2080};
2081unsafe extern "C" {
2082 pub fn JS_SetPropertyFunctionList(
2083 ctx: *mut JSContext,
2084 obj: JSValue,
2085 tab: *const JSCFunctionListEntry,
2086 len: ::core::ffi::c_int,
2087 ) -> ::core::ffi::c_int;
2088}
2089pub type JSModuleInitFunc = ::core::option::Option<
2090 unsafe extern "C" fn(ctx: *mut JSContext, m: *mut JSModuleDef) -> ::core::ffi::c_int,
2091>;
2092unsafe extern "C" {
2093 pub fn JS_NewCModule(
2094 ctx: *mut JSContext,
2095 name_str: *const ::core::ffi::c_char,
2096 func: JSModuleInitFunc,
2097 ) -> *mut JSModuleDef;
2098}
2099unsafe extern "C" {
2100 pub fn JS_AddModuleExport(
2101 ctx: *mut JSContext,
2102 m: *mut JSModuleDef,
2103 name_str: *const ::core::ffi::c_char,
2104 ) -> ::core::ffi::c_int;
2105}
2106unsafe extern "C" {
2107 pub fn JS_AddModuleExportList(
2108 ctx: *mut JSContext,
2109 m: *mut JSModuleDef,
2110 tab: *const JSCFunctionListEntry,
2111 len: ::core::ffi::c_int,
2112 ) -> ::core::ffi::c_int;
2113}
2114unsafe extern "C" {
2115 pub fn JS_SetModuleExport(
2116 ctx: *mut JSContext,
2117 m: *mut JSModuleDef,
2118 export_name: *const ::core::ffi::c_char,
2119 val: JSValue,
2120 ) -> ::core::ffi::c_int;
2121}
2122unsafe extern "C" {
2123 pub fn JS_SetModuleExportList(
2124 ctx: *mut JSContext,
2125 m: *mut JSModuleDef,
2126 tab: *const JSCFunctionListEntry,
2127 len: ::core::ffi::c_int,
2128 ) -> ::core::ffi::c_int;
2129}
2130unsafe extern "C" {
2131 pub fn JS_GetVersion() -> *const ::core::ffi::c_char;
2132}
2133unsafe extern "C" {
2134 pub fn js_std_cmd(cmd: ::core::ffi::c_int, ...) -> usize;
2135}
2136#[repr(C)]
2137#[derive(Debug, Copy, Clone)]
2138pub struct JSJitFunctionId {
2139 pub struct_size: u32,
2140 pub reserved: u32,
2141 pub id: u64,
2142 pub generation: u64,
2143}
2144#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2145const _: () = {
2146 ["Size of JSJitFunctionId"][::core::mem::size_of::<JSJitFunctionId>() - 24usize];
2147 ["Alignment of JSJitFunctionId"][::core::mem::align_of::<JSJitFunctionId>() - 8usize];
2148 ["Offset of field: JSJitFunctionId::struct_size"]
2149 [::core::mem::offset_of!(JSJitFunctionId, struct_size) - 0usize];
2150 ["Offset of field: JSJitFunctionId::reserved"]
2151 [::core::mem::offset_of!(JSJitFunctionId, reserved) - 4usize];
2152 ["Offset of field: JSJitFunctionId::id"][::core::mem::offset_of!(JSJitFunctionId, id) - 8usize];
2153 ["Offset of field: JSJitFunctionId::generation"]
2154 [::core::mem::offset_of!(JSJitFunctionId, generation) - 16usize];
2155};
2156pub const JSJitHotKind_JS_JIT_HOT_CALL: JSJitHotKind = 0;
2157pub const JSJitHotKind_JS_JIT_HOT_LOOP: JSJitHotKind = 1;
2158pub type JSJitHotKind = ::core::ffi::c_uint;
2159pub const JSJitFeedbackType_JS_JIT_FEEDBACK_NONE: JSJitFeedbackType = 0;
2160pub const JSJitFeedbackType_JS_JIT_FEEDBACK_INT32: JSJitFeedbackType = 1;
2161pub const JSJitFeedbackType_JS_JIT_FEEDBACK_FLOAT64: JSJitFeedbackType = 2;
2162pub const JSJitFeedbackType_JS_JIT_FEEDBACK_BOOL: JSJitFeedbackType = 3;
2163pub const JSJitFeedbackType_JS_JIT_FEEDBACK_NULL: JSJitFeedbackType = 4;
2164pub const JSJitFeedbackType_JS_JIT_FEEDBACK_UNDEFINED: JSJitFeedbackType = 5;
2165pub const JSJitFeedbackType_JS_JIT_FEEDBACK_STRING: JSJitFeedbackType = 6;
2166pub const JSJitFeedbackType_JS_JIT_FEEDBACK_OBJECT: JSJitFeedbackType = 7;
2167pub type JSJitFeedbackType = ::core::ffi::c_uint;
2168#[repr(C)]
2169#[derive(Debug, Copy, Clone)]
2170pub struct JSJitHotEvent {
2171 pub struct_size: u32,
2172 pub kind: u32,
2173 pub function: JSJitFunctionId,
2174 pub pc: u32,
2175 pub count: u32,
2176 pub feedback_type: u32,
2177 pub feedback_slot: u32,
2178 pub callee: JSJitFunctionId,
2179}
2180#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2181const _: () = {
2182 ["Size of JSJitHotEvent"][::core::mem::size_of::<JSJitHotEvent>() - 72usize];
2183 ["Alignment of JSJitHotEvent"][::core::mem::align_of::<JSJitHotEvent>() - 8usize];
2184 ["Offset of field: JSJitHotEvent::struct_size"]
2185 [::core::mem::offset_of!(JSJitHotEvent, struct_size) - 0usize];
2186 ["Offset of field: JSJitHotEvent::kind"][::core::mem::offset_of!(JSJitHotEvent, kind) - 4usize];
2187 ["Offset of field: JSJitHotEvent::function"]
2188 [::core::mem::offset_of!(JSJitHotEvent, function) - 8usize];
2189 ["Offset of field: JSJitHotEvent::pc"][::core::mem::offset_of!(JSJitHotEvent, pc) - 32usize];
2190 ["Offset of field: JSJitHotEvent::count"]
2191 [::core::mem::offset_of!(JSJitHotEvent, count) - 36usize];
2192 ["Offset of field: JSJitHotEvent::feedback_type"]
2193 [::core::mem::offset_of!(JSJitHotEvent, feedback_type) - 40usize];
2194 ["Offset of field: JSJitHotEvent::feedback_slot"]
2195 [::core::mem::offset_of!(JSJitHotEvent, feedback_slot) - 44usize];
2196 ["Offset of field: JSJitHotEvent::callee"]
2197 [::core::mem::offset_of!(JSJitHotEvent, callee) - 48usize];
2198};
2199pub const JSJitValueType_JS_JIT_VALUE_NONE: JSJitValueType = 0;
2200pub const JSJitValueType_JS_JIT_VALUE_INT32: JSJitValueType = 1;
2201pub const JSJitValueType_JS_JIT_VALUE_FLOAT64: JSJitValueType = 2;
2202pub const JSJitValueType_JS_JIT_VALUE_BOOL: JSJitValueType = 3;
2203pub const JSJitValueType_JS_JIT_VALUE_NULL: JSJitValueType = 4;
2204pub const JSJitValueType_JS_JIT_VALUE_UNDEFINED: JSJitValueType = 5;
2205pub const JSJitValueType_JS_JIT_VALUE_STRING: JSJitValueType = 6;
2206pub const JSJitValueType_JS_JIT_VALUE_OBJECT: JSJitValueType = 7;
2207pub const JSJitValueType_JS_JIT_VALUE_BIGINT: JSJitValueType = 8;
2208pub const JSJitValueType_JS_JIT_VALUE_SYMBOL: JSJitValueType = 9;
2209pub type JSJitValueType = ::core::ffi::c_uint;
2210pub const JSJitFeedbackKind_JS_JIT_FEEDBACK_CALL: JSJitFeedbackKind = 0;
2211pub const JSJitFeedbackKind_JS_JIT_FEEDBACK_RETURN: JSJitFeedbackKind = 1;
2212pub const JSJitFeedbackKind_JS_JIT_FEEDBACK_BINARY: JSJitFeedbackKind = 2;
2213pub const JSJitFeedbackKind_JS_JIT_FEEDBACK_CONVERSION: JSJitFeedbackKind = 3;
2214pub const JSJitFeedbackKind_JS_JIT_FEEDBACK_BRANCH: JSJitFeedbackKind = 4;
2215pub const JSJitFeedbackKind_JS_JIT_FEEDBACK_PROPERTY: JSJitFeedbackKind = 5;
2216pub const JSJitFeedbackKind_JS_JIT_FEEDBACK_ARRAY: JSJitFeedbackKind = 6;
2217pub type JSJitFeedbackKind = ::core::ffi::c_uint;
2218pub const JSJitArrayMode_JS_JIT_ARRAY_MODE_GENERIC: JSJitArrayMode = 0;
2219pub const JSJitArrayMode_JS_JIT_ARRAY_MODE_PACKED: JSJitArrayMode = 1;
2220pub const JSJitArrayMode_JS_JIT_ARRAY_MODE_INT32: JSJitArrayMode = 2;
2221pub const JSJitArrayMode_JS_JIT_ARRAY_MODE_FLOAT64: JSJitArrayMode = 3;
2222pub type JSJitArrayMode = ::core::ffi::c_uint;
2223pub const JSJitArrayQueryStatus_JS_JIT_ARRAY_QUERY_INVALID: JSJitArrayQueryStatus = -1;
2224pub const JSJitArrayQueryStatus_JS_JIT_ARRAY_QUERY_MISS: JSJitArrayQueryStatus = 0;
2225pub const JSJitArrayQueryStatus_JS_JIT_ARRAY_QUERY_OK: JSJitArrayQueryStatus = 1;
2226pub type JSJitArrayQueryStatus = ::core::ffi::c_int;
2227#[repr(C)]
2228#[derive(Debug, Copy, Clone)]
2229pub struct JSJitArrayMetadata {
2230 pub struct_size: u32,
2231 pub mode: u32,
2232 pub count: u32,
2233 pub reserved: u32,
2234 pub data: *mut ::core::ffi::c_void,
2235}
2236#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2237const _: () = {
2238 ["Size of JSJitArrayMetadata"][::core::mem::size_of::<JSJitArrayMetadata>() - 24usize];
2239 ["Alignment of JSJitArrayMetadata"][::core::mem::align_of::<JSJitArrayMetadata>() - 8usize];
2240 ["Offset of field: JSJitArrayMetadata::struct_size"]
2241 [::core::mem::offset_of!(JSJitArrayMetadata, struct_size) - 0usize];
2242 ["Offset of field: JSJitArrayMetadata::mode"]
2243 [::core::mem::offset_of!(JSJitArrayMetadata, mode) - 4usize];
2244 ["Offset of field: JSJitArrayMetadata::count"]
2245 [::core::mem::offset_of!(JSJitArrayMetadata, count) - 8usize];
2246 ["Offset of field: JSJitArrayMetadata::reserved"]
2247 [::core::mem::offset_of!(JSJitArrayMetadata, reserved) - 12usize];
2248 ["Offset of field: JSJitArrayMetadata::data"]
2249 [::core::mem::offset_of!(JSJitArrayMetadata, data) - 16usize];
2250};
2251pub type JSJitArrayQueryFunc = ::core::option::Option<
2252 unsafe extern "C" fn(
2253 ctx: *mut JSContext,
2254 receiver: *const JSValue,
2255 expected_mode: u32,
2256 flags: u32,
2257 out: *mut JSJitArrayMetadata,
2258 ) -> ::core::ffi::c_int,
2259>;
2260#[repr(C)]
2261#[derive(Debug, Copy, Clone)]
2262pub struct JSJitArrayAPI {
2263 pub struct_size: u32,
2264 pub version: u32,
2265 pub effects: u32,
2266 pub reserved: u32,
2267 pub query: JSJitArrayQueryFunc,
2268}
2269#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2270const _: () = {
2271 ["Size of JSJitArrayAPI"][::core::mem::size_of::<JSJitArrayAPI>() - 24usize];
2272 ["Alignment of JSJitArrayAPI"][::core::mem::align_of::<JSJitArrayAPI>() - 8usize];
2273 ["Offset of field: JSJitArrayAPI::struct_size"]
2274 [::core::mem::offset_of!(JSJitArrayAPI, struct_size) - 0usize];
2275 ["Offset of field: JSJitArrayAPI::version"]
2276 [::core::mem::offset_of!(JSJitArrayAPI, version) - 4usize];
2277 ["Offset of field: JSJitArrayAPI::effects"]
2278 [::core::mem::offset_of!(JSJitArrayAPI, effects) - 8usize];
2279 ["Offset of field: JSJitArrayAPI::reserved"]
2280 [::core::mem::offset_of!(JSJitArrayAPI, reserved) - 12usize];
2281 ["Offset of field: JSJitArrayAPI::query"]
2282 [::core::mem::offset_of!(JSJitArrayAPI, query) - 16usize];
2283};
2284unsafe extern "C" {
2285 pub fn JS_JitGetArrayAPI(version: u32) -> *const JSJitArrayAPI;
2286}
2287pub const JSJitObjectStatus_JS_JIT_OBJECT_INVALID: JSJitObjectStatus = -1;
2288pub const JSJitObjectStatus_JS_JIT_OBJECT_MISS: JSJitObjectStatus = 0;
2289pub const JSJitObjectStatus_JS_JIT_OBJECT_OK: JSJitObjectStatus = 1;
2290pub type JSJitObjectStatus = ::core::ffi::c_int;
2291pub type JSJitObjectLiteralFunc = ::core::option::Option<
2292 unsafe extern "C" fn(
2293 ctx: *mut JSContext,
2294 atoms: *const u32,
2295 values: *const JSValue,
2296 count: u32,
2297 out: *mut JSValue,
2298 ) -> ::core::ffi::c_int,
2299>;
2300pub type JSJitObjectRetainShapeFunc = ::core::option::Option<
2301 unsafe extern "C" fn(ctx: *mut JSContext, object: *const JSValue) -> ::core::ffi::c_int,
2302>;
2303pub type JSJitArrayMethodFunc = ::core::option::Option<
2304 unsafe extern "C" fn(
2305 ctx: *mut JSContext,
2306 receiver: *const JSValue,
2307 atom: u32,
2308 out: *mut JSValue,
2309 ) -> ::core::ffi::c_int,
2310>;
2311pub type JSJitArrayPushFunc = ::core::option::Option<
2312 unsafe extern "C" fn(
2313 ctx: *mut JSContext,
2314 function: *const JSValue,
2315 receiver: *const JSValue,
2316 value: *const JSValue,
2317 out: *mut JSValue,
2318 ) -> ::core::ffi::c_int,
2319>;
2320pub type JSJitArrayPushMethodFunc = ::core::option::Option<
2321 unsafe extern "C" fn(
2322 ctx: *mut JSContext,
2323 receiver: *const JSValue,
2324 atom: u32,
2325 value: *const JSValue,
2326 out: *mut JSValue,
2327 ) -> ::core::ffi::c_int,
2328>;
2329#[repr(C)]
2330#[derive(Debug, Copy, Clone)]
2331pub struct JSJitObjectAPI {
2332 pub struct_size: u32,
2333 pub version: u32,
2334 pub effects: u32,
2335 pub max_literal_fields: u32,
2336 pub literal: JSJitObjectLiteralFunc,
2337 pub retain_shape: JSJitObjectRetainShapeFunc,
2338 pub array_method: JSJitArrayMethodFunc,
2339 pub array_push: JSJitArrayPushFunc,
2340 pub array_push_method: JSJitArrayPushMethodFunc,
2341}
2342#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2343const _: () = {
2344 ["Size of JSJitObjectAPI"][::core::mem::size_of::<JSJitObjectAPI>() - 56usize];
2345 ["Alignment of JSJitObjectAPI"][::core::mem::align_of::<JSJitObjectAPI>() - 8usize];
2346 ["Offset of field: JSJitObjectAPI::struct_size"]
2347 [::core::mem::offset_of!(JSJitObjectAPI, struct_size) - 0usize];
2348 ["Offset of field: JSJitObjectAPI::version"]
2349 [::core::mem::offset_of!(JSJitObjectAPI, version) - 4usize];
2350 ["Offset of field: JSJitObjectAPI::effects"]
2351 [::core::mem::offset_of!(JSJitObjectAPI, effects) - 8usize];
2352 ["Offset of field: JSJitObjectAPI::max_literal_fields"]
2353 [::core::mem::offset_of!(JSJitObjectAPI, max_literal_fields) - 12usize];
2354 ["Offset of field: JSJitObjectAPI::literal"]
2355 [::core::mem::offset_of!(JSJitObjectAPI, literal) - 16usize];
2356 ["Offset of field: JSJitObjectAPI::retain_shape"]
2357 [::core::mem::offset_of!(JSJitObjectAPI, retain_shape) - 24usize];
2358 ["Offset of field: JSJitObjectAPI::array_method"]
2359 [::core::mem::offset_of!(JSJitObjectAPI, array_method) - 32usize];
2360 ["Offset of field: JSJitObjectAPI::array_push"]
2361 [::core::mem::offset_of!(JSJitObjectAPI, array_push) - 40usize];
2362 ["Offset of field: JSJitObjectAPI::array_push_method"]
2363 [::core::mem::offset_of!(JSJitObjectAPI, array_push_method) - 48usize];
2364};
2365unsafe extern "C" {
2366 pub fn JS_JitGetObjectAPI(version: u32) -> *const JSJitObjectAPI;
2367}
2368pub const JSJitIteratorQueryStatus_JS_JIT_ITERATOR_QUERY_INVALID: JSJitIteratorQueryStatus = -1;
2369pub const JSJitIteratorQueryStatus_JS_JIT_ITERATOR_QUERY_MISS: JSJitIteratorQueryStatus = 0;
2370pub const JSJitIteratorQueryStatus_JS_JIT_ITERATOR_QUERY_VALUE: JSJitIteratorQueryStatus = 1;
2371pub type JSJitIteratorQueryStatus = ::core::ffi::c_int;
2372pub type JSJitArrayValuesNextFunc = ::core::option::Option<
2373 unsafe extern "C" fn(
2374 ctx: *mut JSContext,
2375 iterator: *const JSValue,
2376 next_method: *const JSValue,
2377 out: *mut JSValue,
2378 ) -> ::core::ffi::c_int,
2379>;
2380#[repr(C)]
2381#[derive(Debug, Copy, Clone)]
2382pub struct JSJitIteratorAPI {
2383 pub struct_size: u32,
2384 pub version: u32,
2385 pub effects: u32,
2386 pub reserved: u32,
2387 pub array_values_next: JSJitArrayValuesNextFunc,
2388}
2389#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2390const _: () = {
2391 ["Size of JSJitIteratorAPI"][::core::mem::size_of::<JSJitIteratorAPI>() - 24usize];
2392 ["Alignment of JSJitIteratorAPI"][::core::mem::align_of::<JSJitIteratorAPI>() - 8usize];
2393 ["Offset of field: JSJitIteratorAPI::struct_size"]
2394 [::core::mem::offset_of!(JSJitIteratorAPI, struct_size) - 0usize];
2395 ["Offset of field: JSJitIteratorAPI::version"]
2396 [::core::mem::offset_of!(JSJitIteratorAPI, version) - 4usize];
2397 ["Offset of field: JSJitIteratorAPI::effects"]
2398 [::core::mem::offset_of!(JSJitIteratorAPI, effects) - 8usize];
2399 ["Offset of field: JSJitIteratorAPI::reserved"]
2400 [::core::mem::offset_of!(JSJitIteratorAPI, reserved) - 12usize];
2401 ["Offset of field: JSJitIteratorAPI::array_values_next"]
2402 [::core::mem::offset_of!(JSJitIteratorAPI, array_values_next) - 16usize];
2403};
2404unsafe extern "C" {
2405 pub fn JS_JitGetIteratorAPI(version: u32) -> *const JSJitIteratorAPI;
2406}
2407#[repr(C)]
2408#[derive(Debug, Copy, Clone)]
2409pub struct JSJitFeedbackEvent {
2410 pub struct_size: u32,
2411 pub kind: u32,
2412 pub function: JSJitFunctionId,
2413 pub callee: JSJitFunctionId,
2414 pub pc: u32,
2415 pub slot: u32,
2416 pub type_count: u32,
2417 pub flags: u32,
2418 pub types: *const u32,
2419 pub shape_identity: u64,
2420 pub shape_generation: u64,
2421 pub prototype_identity: u64,
2422 pub prototype_generation: u64,
2423 pub property_offset: u32,
2424 pub property_attributes: u32,
2425}
2426#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2427const _: () = {
2428 ["Size of JSJitFeedbackEvent"][::core::mem::size_of::<JSJitFeedbackEvent>() - 120usize];
2429 ["Alignment of JSJitFeedbackEvent"][::core::mem::align_of::<JSJitFeedbackEvent>() - 8usize];
2430 ["Offset of field: JSJitFeedbackEvent::struct_size"]
2431 [::core::mem::offset_of!(JSJitFeedbackEvent, struct_size) - 0usize];
2432 ["Offset of field: JSJitFeedbackEvent::kind"]
2433 [::core::mem::offset_of!(JSJitFeedbackEvent, kind) - 4usize];
2434 ["Offset of field: JSJitFeedbackEvent::function"]
2435 [::core::mem::offset_of!(JSJitFeedbackEvent, function) - 8usize];
2436 ["Offset of field: JSJitFeedbackEvent::callee"]
2437 [::core::mem::offset_of!(JSJitFeedbackEvent, callee) - 32usize];
2438 ["Offset of field: JSJitFeedbackEvent::pc"]
2439 [::core::mem::offset_of!(JSJitFeedbackEvent, pc) - 56usize];
2440 ["Offset of field: JSJitFeedbackEvent::slot"]
2441 [::core::mem::offset_of!(JSJitFeedbackEvent, slot) - 60usize];
2442 ["Offset of field: JSJitFeedbackEvent::type_count"]
2443 [::core::mem::offset_of!(JSJitFeedbackEvent, type_count) - 64usize];
2444 ["Offset of field: JSJitFeedbackEvent::flags"]
2445 [::core::mem::offset_of!(JSJitFeedbackEvent, flags) - 68usize];
2446 ["Offset of field: JSJitFeedbackEvent::types"]
2447 [::core::mem::offset_of!(JSJitFeedbackEvent, types) - 72usize];
2448 ["Offset of field: JSJitFeedbackEvent::shape_identity"]
2449 [::core::mem::offset_of!(JSJitFeedbackEvent, shape_identity) - 80usize];
2450 ["Offset of field: JSJitFeedbackEvent::shape_generation"]
2451 [::core::mem::offset_of!(JSJitFeedbackEvent, shape_generation) - 88usize];
2452 ["Offset of field: JSJitFeedbackEvent::prototype_identity"]
2453 [::core::mem::offset_of!(JSJitFeedbackEvent, prototype_identity) - 96usize];
2454 ["Offset of field: JSJitFeedbackEvent::prototype_generation"]
2455 [::core::mem::offset_of!(JSJitFeedbackEvent, prototype_generation) - 104usize];
2456 ["Offset of field: JSJitFeedbackEvent::property_offset"]
2457 [::core::mem::offset_of!(JSJitFeedbackEvent, property_offset) - 112usize];
2458 ["Offset of field: JSJitFeedbackEvent::property_attributes"]
2459 [::core::mem::offset_of!(JSJitFeedbackEvent, property_attributes) - 116usize];
2460};
2461pub const JSJitOperandFormat_JS_JIT_FMT_none: JSJitOperandFormat = 0;
2462pub const JSJitOperandFormat_JS_JIT_FMT_none_int: JSJitOperandFormat = 1;
2463pub const JSJitOperandFormat_JS_JIT_FMT_none_loc: JSJitOperandFormat = 2;
2464pub const JSJitOperandFormat_JS_JIT_FMT_none_arg: JSJitOperandFormat = 3;
2465pub const JSJitOperandFormat_JS_JIT_FMT_none_var_ref: JSJitOperandFormat = 4;
2466pub const JSJitOperandFormat_JS_JIT_FMT_u8: JSJitOperandFormat = 5;
2467pub const JSJitOperandFormat_JS_JIT_FMT_i8: JSJitOperandFormat = 6;
2468pub const JSJitOperandFormat_JS_JIT_FMT_loc8: JSJitOperandFormat = 7;
2469pub const JSJitOperandFormat_JS_JIT_FMT_const8: JSJitOperandFormat = 8;
2470pub const JSJitOperandFormat_JS_JIT_FMT_label8: JSJitOperandFormat = 9;
2471pub const JSJitOperandFormat_JS_JIT_FMT_u16: JSJitOperandFormat = 10;
2472pub const JSJitOperandFormat_JS_JIT_FMT_i16: JSJitOperandFormat = 11;
2473pub const JSJitOperandFormat_JS_JIT_FMT_label16: JSJitOperandFormat = 12;
2474pub const JSJitOperandFormat_JS_JIT_FMT_npop: JSJitOperandFormat = 13;
2475pub const JSJitOperandFormat_JS_JIT_FMT_npopx: JSJitOperandFormat = 14;
2476pub const JSJitOperandFormat_JS_JIT_FMT_npop_u16: JSJitOperandFormat = 15;
2477pub const JSJitOperandFormat_JS_JIT_FMT_loc: JSJitOperandFormat = 16;
2478pub const JSJitOperandFormat_JS_JIT_FMT_arg: JSJitOperandFormat = 17;
2479pub const JSJitOperandFormat_JS_JIT_FMT_var_ref: JSJitOperandFormat = 18;
2480pub const JSJitOperandFormat_JS_JIT_FMT_u32: JSJitOperandFormat = 19;
2481pub const JSJitOperandFormat_JS_JIT_FMT_u32x2: JSJitOperandFormat = 20;
2482pub const JSJitOperandFormat_JS_JIT_FMT_i32: JSJitOperandFormat = 21;
2483pub const JSJitOperandFormat_JS_JIT_FMT_const: JSJitOperandFormat = 22;
2484pub const JSJitOperandFormat_JS_JIT_FMT_label: JSJitOperandFormat = 23;
2485pub const JSJitOperandFormat_JS_JIT_FMT_atom: JSJitOperandFormat = 24;
2486pub const JSJitOperandFormat_JS_JIT_FMT_atom_u8: JSJitOperandFormat = 25;
2487pub const JSJitOperandFormat_JS_JIT_FMT_atom_u16: JSJitOperandFormat = 26;
2488pub const JSJitOperandFormat_JS_JIT_FMT_atom_label_u8: JSJitOperandFormat = 27;
2489pub const JSJitOperandFormat_JS_JIT_FMT_atom_label_u16: JSJitOperandFormat = 28;
2490pub const JSJitOperandFormat_JS_JIT_FMT_label_u16: JSJitOperandFormat = 29;
2491pub const JSJitOperandFormat_JS_JIT_FMT_COUNT: JSJitOperandFormat = 30;
2492pub type JSJitOperandFormat = ::core::ffi::c_uint;
2493pub const JSJitOpcode_JS_JIT_OP_invalid: JSJitOpcode = 0;
2494pub const JSJitOpcode_JS_JIT_OP_push_i32: JSJitOpcode = 1;
2495pub const JSJitOpcode_JS_JIT_OP_push_const: JSJitOpcode = 2;
2496pub const JSJitOpcode_JS_JIT_OP_fclosure: JSJitOpcode = 3;
2497pub const JSJitOpcode_JS_JIT_OP_push_atom_value: JSJitOpcode = 4;
2498pub const JSJitOpcode_JS_JIT_OP_private_symbol: JSJitOpcode = 5;
2499pub const JSJitOpcode_JS_JIT_OP_undefined: JSJitOpcode = 6;
2500pub const JSJitOpcode_JS_JIT_OP_null: JSJitOpcode = 7;
2501pub const JSJitOpcode_JS_JIT_OP_push_this: JSJitOpcode = 8;
2502pub const JSJitOpcode_JS_JIT_OP_push_false: JSJitOpcode = 9;
2503pub const JSJitOpcode_JS_JIT_OP_push_true: JSJitOpcode = 10;
2504pub const JSJitOpcode_JS_JIT_OP_object: JSJitOpcode = 11;
2505pub const JSJitOpcode_JS_JIT_OP_special_object: JSJitOpcode = 12;
2506pub const JSJitOpcode_JS_JIT_OP_rest: JSJitOpcode = 13;
2507pub const JSJitOpcode_JS_JIT_OP_drop: JSJitOpcode = 14;
2508pub const JSJitOpcode_JS_JIT_OP_nip: JSJitOpcode = 15;
2509pub const JSJitOpcode_JS_JIT_OP_nip1: JSJitOpcode = 16;
2510pub const JSJitOpcode_JS_JIT_OP_dup: JSJitOpcode = 17;
2511pub const JSJitOpcode_JS_JIT_OP_dup1: JSJitOpcode = 18;
2512pub const JSJitOpcode_JS_JIT_OP_dup2: JSJitOpcode = 19;
2513pub const JSJitOpcode_JS_JIT_OP_dup3: JSJitOpcode = 20;
2514pub const JSJitOpcode_JS_JIT_OP_insert2: JSJitOpcode = 21;
2515pub const JSJitOpcode_JS_JIT_OP_insert3: JSJitOpcode = 22;
2516pub const JSJitOpcode_JS_JIT_OP_insert4: JSJitOpcode = 23;
2517pub const JSJitOpcode_JS_JIT_OP_perm3: JSJitOpcode = 24;
2518pub const JSJitOpcode_JS_JIT_OP_perm4: JSJitOpcode = 25;
2519pub const JSJitOpcode_JS_JIT_OP_perm5: JSJitOpcode = 26;
2520pub const JSJitOpcode_JS_JIT_OP_swap: JSJitOpcode = 27;
2521pub const JSJitOpcode_JS_JIT_OP_swap2: JSJitOpcode = 28;
2522pub const JSJitOpcode_JS_JIT_OP_rot3l: JSJitOpcode = 29;
2523pub const JSJitOpcode_JS_JIT_OP_rot3r: JSJitOpcode = 30;
2524pub const JSJitOpcode_JS_JIT_OP_rot4l: JSJitOpcode = 31;
2525pub const JSJitOpcode_JS_JIT_OP_rot5l: JSJitOpcode = 32;
2526pub const JSJitOpcode_JS_JIT_OP_call_constructor: JSJitOpcode = 33;
2527pub const JSJitOpcode_JS_JIT_OP_call: JSJitOpcode = 34;
2528pub const JSJitOpcode_JS_JIT_OP_tail_call: JSJitOpcode = 35;
2529pub const JSJitOpcode_JS_JIT_OP_call_method: JSJitOpcode = 36;
2530pub const JSJitOpcode_JS_JIT_OP_tail_call_method: JSJitOpcode = 37;
2531pub const JSJitOpcode_JS_JIT_OP_array_from: JSJitOpcode = 38;
2532pub const JSJitOpcode_JS_JIT_OP_apply: JSJitOpcode = 39;
2533pub const JSJitOpcode_JS_JIT_OP_return: JSJitOpcode = 40;
2534pub const JSJitOpcode_JS_JIT_OP_return_undef: JSJitOpcode = 41;
2535pub const JSJitOpcode_JS_JIT_OP_check_ctor_return: JSJitOpcode = 42;
2536pub const JSJitOpcode_JS_JIT_OP_check_ctor: JSJitOpcode = 43;
2537pub const JSJitOpcode_JS_JIT_OP_init_ctor: JSJitOpcode = 44;
2538pub const JSJitOpcode_JS_JIT_OP_check_brand: JSJitOpcode = 45;
2539pub const JSJitOpcode_JS_JIT_OP_add_brand: JSJitOpcode = 46;
2540pub const JSJitOpcode_JS_JIT_OP_return_async: JSJitOpcode = 47;
2541pub const JSJitOpcode_JS_JIT_OP_throw: JSJitOpcode = 48;
2542pub const JSJitOpcode_JS_JIT_OP_throw_error: JSJitOpcode = 49;
2543pub const JSJitOpcode_JS_JIT_OP_eval: JSJitOpcode = 50;
2544pub const JSJitOpcode_JS_JIT_OP_apply_eval: JSJitOpcode = 51;
2545pub const JSJitOpcode_JS_JIT_OP_regexp: JSJitOpcode = 52;
2546pub const JSJitOpcode_JS_JIT_OP_get_super: JSJitOpcode = 53;
2547pub const JSJitOpcode_JS_JIT_OP_import: JSJitOpcode = 54;
2548pub const JSJitOpcode_JS_JIT_OP_get_var_undef: JSJitOpcode = 55;
2549pub const JSJitOpcode_JS_JIT_OP_get_var: JSJitOpcode = 56;
2550pub const JSJitOpcode_JS_JIT_OP_put_var: JSJitOpcode = 57;
2551pub const JSJitOpcode_JS_JIT_OP_put_var_init: JSJitOpcode = 58;
2552pub const JSJitOpcode_JS_JIT_OP_get_ref_value: JSJitOpcode = 59;
2553pub const JSJitOpcode_JS_JIT_OP_put_ref_value: JSJitOpcode = 60;
2554pub const JSJitOpcode_JS_JIT_OP_define_var: JSJitOpcode = 61;
2555pub const JSJitOpcode_JS_JIT_OP_check_define_var: JSJitOpcode = 62;
2556pub const JSJitOpcode_JS_JIT_OP_define_func: JSJitOpcode = 63;
2557pub const JSJitOpcode_JS_JIT_OP_get_field: JSJitOpcode = 64;
2558pub const JSJitOpcode_JS_JIT_OP_get_field2: JSJitOpcode = 65;
2559pub const JSJitOpcode_JS_JIT_OP_put_field: JSJitOpcode = 66;
2560pub const JSJitOpcode_JS_JIT_OP_get_private_field: JSJitOpcode = 67;
2561pub const JSJitOpcode_JS_JIT_OP_put_private_field: JSJitOpcode = 68;
2562pub const JSJitOpcode_JS_JIT_OP_define_private_field: JSJitOpcode = 69;
2563pub const JSJitOpcode_JS_JIT_OP_get_array_el: JSJitOpcode = 70;
2564pub const JSJitOpcode_JS_JIT_OP_get_array_el2: JSJitOpcode = 71;
2565pub const JSJitOpcode_JS_JIT_OP_put_array_el: JSJitOpcode = 72;
2566pub const JSJitOpcode_JS_JIT_OP_get_super_value: JSJitOpcode = 73;
2567pub const JSJitOpcode_JS_JIT_OP_put_super_value: JSJitOpcode = 74;
2568pub const JSJitOpcode_JS_JIT_OP_define_field: JSJitOpcode = 75;
2569pub const JSJitOpcode_JS_JIT_OP_set_name: JSJitOpcode = 76;
2570pub const JSJitOpcode_JS_JIT_OP_set_name_computed: JSJitOpcode = 77;
2571pub const JSJitOpcode_JS_JIT_OP_set_proto: JSJitOpcode = 78;
2572pub const JSJitOpcode_JS_JIT_OP_set_home_object: JSJitOpcode = 79;
2573pub const JSJitOpcode_JS_JIT_OP_define_array_el: JSJitOpcode = 80;
2574pub const JSJitOpcode_JS_JIT_OP_append: JSJitOpcode = 81;
2575pub const JSJitOpcode_JS_JIT_OP_copy_data_properties: JSJitOpcode = 82;
2576pub const JSJitOpcode_JS_JIT_OP_define_method: JSJitOpcode = 83;
2577pub const JSJitOpcode_JS_JIT_OP_define_method_computed: JSJitOpcode = 84;
2578pub const JSJitOpcode_JS_JIT_OP_define_class: JSJitOpcode = 85;
2579pub const JSJitOpcode_JS_JIT_OP_define_class_computed: JSJitOpcode = 86;
2580pub const JSJitOpcode_JS_JIT_OP_get_loc: JSJitOpcode = 87;
2581pub const JSJitOpcode_JS_JIT_OP_put_loc: JSJitOpcode = 88;
2582pub const JSJitOpcode_JS_JIT_OP_set_loc: JSJitOpcode = 89;
2583pub const JSJitOpcode_JS_JIT_OP_get_arg: JSJitOpcode = 90;
2584pub const JSJitOpcode_JS_JIT_OP_put_arg: JSJitOpcode = 91;
2585pub const JSJitOpcode_JS_JIT_OP_set_arg: JSJitOpcode = 92;
2586pub const JSJitOpcode_JS_JIT_OP_get_var_ref: JSJitOpcode = 93;
2587pub const JSJitOpcode_JS_JIT_OP_put_var_ref: JSJitOpcode = 94;
2588pub const JSJitOpcode_JS_JIT_OP_set_var_ref: JSJitOpcode = 95;
2589pub const JSJitOpcode_JS_JIT_OP_set_loc_uninitialized: JSJitOpcode = 96;
2590pub const JSJitOpcode_JS_JIT_OP_get_loc_check: JSJitOpcode = 97;
2591pub const JSJitOpcode_JS_JIT_OP_put_loc_check: JSJitOpcode = 98;
2592pub const JSJitOpcode_JS_JIT_OP_put_loc_check_init: JSJitOpcode = 99;
2593pub const JSJitOpcode_JS_JIT_OP_get_var_ref_check: JSJitOpcode = 100;
2594pub const JSJitOpcode_JS_JIT_OP_put_var_ref_check: JSJitOpcode = 101;
2595pub const JSJitOpcode_JS_JIT_OP_put_var_ref_check_init: JSJitOpcode = 102;
2596pub const JSJitOpcode_JS_JIT_OP_close_loc: JSJitOpcode = 103;
2597pub const JSJitOpcode_JS_JIT_OP_if_false: JSJitOpcode = 104;
2598pub const JSJitOpcode_JS_JIT_OP_if_true: JSJitOpcode = 105;
2599pub const JSJitOpcode_JS_JIT_OP_goto: JSJitOpcode = 106;
2600pub const JSJitOpcode_JS_JIT_OP_catch: JSJitOpcode = 107;
2601pub const JSJitOpcode_JS_JIT_OP_gosub: JSJitOpcode = 108;
2602pub const JSJitOpcode_JS_JIT_OP_ret: JSJitOpcode = 109;
2603pub const JSJitOpcode_JS_JIT_OP_nip_catch: JSJitOpcode = 110;
2604pub const JSJitOpcode_JS_JIT_OP_check_object: JSJitOpcode = 111;
2605pub const JSJitOpcode_JS_JIT_OP_to_object: JSJitOpcode = 112;
2606pub const JSJitOpcode_JS_JIT_OP_to_propkey: JSJitOpcode = 113;
2607pub const JSJitOpcode_JS_JIT_OP_to_propkey2: JSJitOpcode = 114;
2608pub const JSJitOpcode_JS_JIT_OP_with_get_var: JSJitOpcode = 115;
2609pub const JSJitOpcode_JS_JIT_OP_with_put_var: JSJitOpcode = 116;
2610pub const JSJitOpcode_JS_JIT_OP_with_delete_var: JSJitOpcode = 117;
2611pub const JSJitOpcode_JS_JIT_OP_with_make_ref: JSJitOpcode = 118;
2612pub const JSJitOpcode_JS_JIT_OP_with_get_ref: JSJitOpcode = 119;
2613pub const JSJitOpcode_JS_JIT_OP_with_get_ref_undef: JSJitOpcode = 120;
2614pub const JSJitOpcode_JS_JIT_OP_make_loc_ref: JSJitOpcode = 121;
2615pub const JSJitOpcode_JS_JIT_OP_make_arg_ref: JSJitOpcode = 122;
2616pub const JSJitOpcode_JS_JIT_OP_make_var_ref_ref: JSJitOpcode = 123;
2617pub const JSJitOpcode_JS_JIT_OP_make_var_ref: JSJitOpcode = 124;
2618pub const JSJitOpcode_JS_JIT_OP_for_in_start: JSJitOpcode = 125;
2619pub const JSJitOpcode_JS_JIT_OP_for_of_start: JSJitOpcode = 126;
2620pub const JSJitOpcode_JS_JIT_OP_for_await_of_start: JSJitOpcode = 127;
2621pub const JSJitOpcode_JS_JIT_OP_for_in_next: JSJitOpcode = 128;
2622pub const JSJitOpcode_JS_JIT_OP_for_of_next: JSJitOpcode = 129;
2623pub const JSJitOpcode_JS_JIT_OP_iterator_get_value_done: JSJitOpcode = 130;
2624pub const JSJitOpcode_JS_JIT_OP_iterator_close: JSJitOpcode = 131;
2625pub const JSJitOpcode_JS_JIT_OP_iterator_next: JSJitOpcode = 132;
2626pub const JSJitOpcode_JS_JIT_OP_iterator_call: JSJitOpcode = 133;
2627pub const JSJitOpcode_JS_JIT_OP_initial_yield: JSJitOpcode = 134;
2628pub const JSJitOpcode_JS_JIT_OP_yield: JSJitOpcode = 135;
2629pub const JSJitOpcode_JS_JIT_OP_yield_star: JSJitOpcode = 136;
2630pub const JSJitOpcode_JS_JIT_OP_async_yield_star: JSJitOpcode = 137;
2631pub const JSJitOpcode_JS_JIT_OP_await: JSJitOpcode = 138;
2632pub const JSJitOpcode_JS_JIT_OP_neg: JSJitOpcode = 139;
2633pub const JSJitOpcode_JS_JIT_OP_plus: JSJitOpcode = 140;
2634pub const JSJitOpcode_JS_JIT_OP_dec: JSJitOpcode = 141;
2635pub const JSJitOpcode_JS_JIT_OP_inc: JSJitOpcode = 142;
2636pub const JSJitOpcode_JS_JIT_OP_post_dec: JSJitOpcode = 143;
2637pub const JSJitOpcode_JS_JIT_OP_post_inc: JSJitOpcode = 144;
2638pub const JSJitOpcode_JS_JIT_OP_dec_loc: JSJitOpcode = 145;
2639pub const JSJitOpcode_JS_JIT_OP_inc_loc: JSJitOpcode = 146;
2640pub const JSJitOpcode_JS_JIT_OP_add_loc: JSJitOpcode = 147;
2641pub const JSJitOpcode_JS_JIT_OP_not: JSJitOpcode = 148;
2642pub const JSJitOpcode_JS_JIT_OP_lnot: JSJitOpcode = 149;
2643pub const JSJitOpcode_JS_JIT_OP_typeof: JSJitOpcode = 150;
2644pub const JSJitOpcode_JS_JIT_OP_delete: JSJitOpcode = 151;
2645pub const JSJitOpcode_JS_JIT_OP_delete_var: JSJitOpcode = 152;
2646pub const JSJitOpcode_JS_JIT_OP_mul: JSJitOpcode = 153;
2647pub const JSJitOpcode_JS_JIT_OP_div: JSJitOpcode = 154;
2648pub const JSJitOpcode_JS_JIT_OP_mod: JSJitOpcode = 155;
2649pub const JSJitOpcode_JS_JIT_OP_add: JSJitOpcode = 156;
2650pub const JSJitOpcode_JS_JIT_OP_sub: JSJitOpcode = 157;
2651pub const JSJitOpcode_JS_JIT_OP_shl: JSJitOpcode = 158;
2652pub const JSJitOpcode_JS_JIT_OP_sar: JSJitOpcode = 159;
2653pub const JSJitOpcode_JS_JIT_OP_shr: JSJitOpcode = 160;
2654pub const JSJitOpcode_JS_JIT_OP_and: JSJitOpcode = 161;
2655pub const JSJitOpcode_JS_JIT_OP_xor: JSJitOpcode = 162;
2656pub const JSJitOpcode_JS_JIT_OP_or: JSJitOpcode = 163;
2657pub const JSJitOpcode_JS_JIT_OP_pow: JSJitOpcode = 164;
2658pub const JSJitOpcode_JS_JIT_OP_lt: JSJitOpcode = 165;
2659pub const JSJitOpcode_JS_JIT_OP_lte: JSJitOpcode = 166;
2660pub const JSJitOpcode_JS_JIT_OP_gt: JSJitOpcode = 167;
2661pub const JSJitOpcode_JS_JIT_OP_gte: JSJitOpcode = 168;
2662pub const JSJitOpcode_JS_JIT_OP_instanceof: JSJitOpcode = 169;
2663pub const JSJitOpcode_JS_JIT_OP_in: JSJitOpcode = 170;
2664pub const JSJitOpcode_JS_JIT_OP_eq: JSJitOpcode = 171;
2665pub const JSJitOpcode_JS_JIT_OP_neq: JSJitOpcode = 172;
2666pub const JSJitOpcode_JS_JIT_OP_strict_eq: JSJitOpcode = 173;
2667pub const JSJitOpcode_JS_JIT_OP_strict_neq: JSJitOpcode = 174;
2668pub const JSJitOpcode_JS_JIT_OP_is_undefined_or_null: JSJitOpcode = 175;
2669pub const JSJitOpcode_JS_JIT_OP_private_in: JSJitOpcode = 176;
2670pub const JSJitOpcode_JS_JIT_OP_push_bigint_i32: JSJitOpcode = 177;
2671pub const JSJitOpcode_JS_JIT_OP_using_dispose_init: JSJitOpcode = 178;
2672pub const JSJitOpcode_JS_JIT_OP_using_dispose: JSJitOpcode = 179;
2673pub const JSJitOpcode_JS_JIT_OP_using_dispose_async: JSJitOpcode = 180;
2674pub const JSJitOpcode_JS_JIT_OP_using_dispose_merge: JSJitOpcode = 181;
2675pub const JSJitOpcode_JS_JIT_OP_using_dispose_end: JSJitOpcode = 182;
2676pub const JSJitOpcode_JS_JIT_OP_using_check: JSJitOpcode = 183;
2677pub const JSJitOpcode_JS_JIT_OP_nop: JSJitOpcode = 184;
2678pub const JSJitOpcode_JS_JIT_OP_push_minus1: JSJitOpcode = 185;
2679pub const JSJitOpcode_JS_JIT_OP_push_0: JSJitOpcode = 186;
2680pub const JSJitOpcode_JS_JIT_OP_push_1: JSJitOpcode = 187;
2681pub const JSJitOpcode_JS_JIT_OP_push_2: JSJitOpcode = 188;
2682pub const JSJitOpcode_JS_JIT_OP_push_3: JSJitOpcode = 189;
2683pub const JSJitOpcode_JS_JIT_OP_push_4: JSJitOpcode = 190;
2684pub const JSJitOpcode_JS_JIT_OP_push_5: JSJitOpcode = 191;
2685pub const JSJitOpcode_JS_JIT_OP_push_6: JSJitOpcode = 192;
2686pub const JSJitOpcode_JS_JIT_OP_push_7: JSJitOpcode = 193;
2687pub const JSJitOpcode_JS_JIT_OP_push_i8: JSJitOpcode = 194;
2688pub const JSJitOpcode_JS_JIT_OP_push_i16: JSJitOpcode = 195;
2689pub const JSJitOpcode_JS_JIT_OP_push_const8: JSJitOpcode = 196;
2690pub const JSJitOpcode_JS_JIT_OP_fclosure8: JSJitOpcode = 197;
2691pub const JSJitOpcode_JS_JIT_OP_push_empty_string: JSJitOpcode = 198;
2692pub const JSJitOpcode_JS_JIT_OP_get_loc8: JSJitOpcode = 199;
2693pub const JSJitOpcode_JS_JIT_OP_put_loc8: JSJitOpcode = 200;
2694pub const JSJitOpcode_JS_JIT_OP_set_loc8: JSJitOpcode = 201;
2695pub const JSJitOpcode_JS_JIT_OP_get_loc0_loc1: JSJitOpcode = 202;
2696pub const JSJitOpcode_JS_JIT_OP_get_loc0: JSJitOpcode = 203;
2697pub const JSJitOpcode_JS_JIT_OP_get_loc1: JSJitOpcode = 204;
2698pub const JSJitOpcode_JS_JIT_OP_get_loc2: JSJitOpcode = 205;
2699pub const JSJitOpcode_JS_JIT_OP_get_loc3: JSJitOpcode = 206;
2700pub const JSJitOpcode_JS_JIT_OP_put_loc0: JSJitOpcode = 207;
2701pub const JSJitOpcode_JS_JIT_OP_put_loc1: JSJitOpcode = 208;
2702pub const JSJitOpcode_JS_JIT_OP_put_loc2: JSJitOpcode = 209;
2703pub const JSJitOpcode_JS_JIT_OP_put_loc3: JSJitOpcode = 210;
2704pub const JSJitOpcode_JS_JIT_OP_set_loc0: JSJitOpcode = 211;
2705pub const JSJitOpcode_JS_JIT_OP_set_loc1: JSJitOpcode = 212;
2706pub const JSJitOpcode_JS_JIT_OP_set_loc2: JSJitOpcode = 213;
2707pub const JSJitOpcode_JS_JIT_OP_set_loc3: JSJitOpcode = 214;
2708pub const JSJitOpcode_JS_JIT_OP_get_arg0: JSJitOpcode = 215;
2709pub const JSJitOpcode_JS_JIT_OP_get_arg1: JSJitOpcode = 216;
2710pub const JSJitOpcode_JS_JIT_OP_get_arg2: JSJitOpcode = 217;
2711pub const JSJitOpcode_JS_JIT_OP_get_arg3: JSJitOpcode = 218;
2712pub const JSJitOpcode_JS_JIT_OP_put_arg0: JSJitOpcode = 219;
2713pub const JSJitOpcode_JS_JIT_OP_put_arg1: JSJitOpcode = 220;
2714pub const JSJitOpcode_JS_JIT_OP_put_arg2: JSJitOpcode = 221;
2715pub const JSJitOpcode_JS_JIT_OP_put_arg3: JSJitOpcode = 222;
2716pub const JSJitOpcode_JS_JIT_OP_set_arg0: JSJitOpcode = 223;
2717pub const JSJitOpcode_JS_JIT_OP_set_arg1: JSJitOpcode = 224;
2718pub const JSJitOpcode_JS_JIT_OP_set_arg2: JSJitOpcode = 225;
2719pub const JSJitOpcode_JS_JIT_OP_set_arg3: JSJitOpcode = 226;
2720pub const JSJitOpcode_JS_JIT_OP_get_var_ref0: JSJitOpcode = 227;
2721pub const JSJitOpcode_JS_JIT_OP_get_var_ref1: JSJitOpcode = 228;
2722pub const JSJitOpcode_JS_JIT_OP_get_var_ref2: JSJitOpcode = 229;
2723pub const JSJitOpcode_JS_JIT_OP_get_var_ref3: JSJitOpcode = 230;
2724pub const JSJitOpcode_JS_JIT_OP_put_var_ref0: JSJitOpcode = 231;
2725pub const JSJitOpcode_JS_JIT_OP_put_var_ref1: JSJitOpcode = 232;
2726pub const JSJitOpcode_JS_JIT_OP_put_var_ref2: JSJitOpcode = 233;
2727pub const JSJitOpcode_JS_JIT_OP_put_var_ref3: JSJitOpcode = 234;
2728pub const JSJitOpcode_JS_JIT_OP_set_var_ref0: JSJitOpcode = 235;
2729pub const JSJitOpcode_JS_JIT_OP_set_var_ref1: JSJitOpcode = 236;
2730pub const JSJitOpcode_JS_JIT_OP_set_var_ref2: JSJitOpcode = 237;
2731pub const JSJitOpcode_JS_JIT_OP_set_var_ref3: JSJitOpcode = 238;
2732pub const JSJitOpcode_JS_JIT_OP_get_length: JSJitOpcode = 239;
2733pub const JSJitOpcode_JS_JIT_OP_if_false8: JSJitOpcode = 240;
2734pub const JSJitOpcode_JS_JIT_OP_if_true8: JSJitOpcode = 241;
2735pub const JSJitOpcode_JS_JIT_OP_goto8: JSJitOpcode = 242;
2736pub const JSJitOpcode_JS_JIT_OP_goto16: JSJitOpcode = 243;
2737pub const JSJitOpcode_JS_JIT_OP_call0: JSJitOpcode = 244;
2738pub const JSJitOpcode_JS_JIT_OP_call1: JSJitOpcode = 245;
2739pub const JSJitOpcode_JS_JIT_OP_call2: JSJitOpcode = 246;
2740pub const JSJitOpcode_JS_JIT_OP_call3: JSJitOpcode = 247;
2741pub const JSJitOpcode_JS_JIT_OP_is_undefined: JSJitOpcode = 248;
2742pub const JSJitOpcode_JS_JIT_OP_is_null: JSJitOpcode = 249;
2743pub const JSJitOpcode_JS_JIT_OP_typeof_is_undefined: JSJitOpcode = 250;
2744pub const JSJitOpcode_JS_JIT_OP_typeof_is_function: JSJitOpcode = 251;
2745pub const JSJitOpcode_JS_JIT_OPCODE_COUNT: JSJitOpcode = 252;
2746pub type JSJitOpcode = ::core::ffi::c_uint;
2747#[repr(C)]
2748#[derive(Debug, Copy, Clone)]
2749pub struct JSJitOpcodeInfo {
2750 pub opcode: u8,
2751 pub size: u8,
2752 pub n_pop: u8,
2753 pub n_push: u8,
2754 pub format: u8,
2755 pub reserved: [u8; 3usize],
2756 pub name: *const ::core::ffi::c_char,
2757}
2758#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2759const _: () = {
2760 ["Size of JSJitOpcodeInfo"][::core::mem::size_of::<JSJitOpcodeInfo>() - 16usize];
2761 ["Alignment of JSJitOpcodeInfo"][::core::mem::align_of::<JSJitOpcodeInfo>() - 8usize];
2762 ["Offset of field: JSJitOpcodeInfo::opcode"]
2763 [::core::mem::offset_of!(JSJitOpcodeInfo, opcode) - 0usize];
2764 ["Offset of field: JSJitOpcodeInfo::size"]
2765 [::core::mem::offset_of!(JSJitOpcodeInfo, size) - 1usize];
2766 ["Offset of field: JSJitOpcodeInfo::n_pop"]
2767 [::core::mem::offset_of!(JSJitOpcodeInfo, n_pop) - 2usize];
2768 ["Offset of field: JSJitOpcodeInfo::n_push"]
2769 [::core::mem::offset_of!(JSJitOpcodeInfo, n_push) - 3usize];
2770 ["Offset of field: JSJitOpcodeInfo::format"]
2771 [::core::mem::offset_of!(JSJitOpcodeInfo, format) - 4usize];
2772 ["Offset of field: JSJitOpcodeInfo::reserved"]
2773 [::core::mem::offset_of!(JSJitOpcodeInfo, reserved) - 5usize];
2774 ["Offset of field: JSJitOpcodeInfo::name"]
2775 [::core::mem::offset_of!(JSJitOpcodeInfo, name) - 8usize];
2776};
2777pub const JSJitConstantKind_JS_JIT_CONSTANT_IMMEDIATE: JSJitConstantKind = 0;
2778pub const JSJitConstantKind_JS_JIT_CONSTANT_STRING: JSJitConstantKind = 1;
2779pub const JSJitConstantKind_JS_JIT_CONSTANT_BIG_INT: JSJitConstantKind = 2;
2780pub const JSJitConstantKind_JS_JIT_CONSTANT_FUNCTION: JSJitConstantKind = 3;
2781pub const JSJitConstantKind_JS_JIT_CONSTANT_OBJECT: JSJitConstantKind = 4;
2782pub type JSJitConstantKind = ::core::ffi::c_uint;
2783#[repr(C)]
2784#[derive(Debug, Copy, Clone)]
2785pub struct JSJitConstantDescriptor {
2786 pub index: u32,
2787 pub tag: i32,
2788 pub kind: u32,
2789 pub reserved: u32,
2790 pub payload: u64,
2791}
2792#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2793const _: () = {
2794 ["Size of JSJitConstantDescriptor"]
2795 [::core::mem::size_of::<JSJitConstantDescriptor>() - 24usize];
2796 ["Alignment of JSJitConstantDescriptor"]
2797 [::core::mem::align_of::<JSJitConstantDescriptor>() - 8usize];
2798 ["Offset of field: JSJitConstantDescriptor::index"]
2799 [::core::mem::offset_of!(JSJitConstantDescriptor, index) - 0usize];
2800 ["Offset of field: JSJitConstantDescriptor::tag"]
2801 [::core::mem::offset_of!(JSJitConstantDescriptor, tag) - 4usize];
2802 ["Offset of field: JSJitConstantDescriptor::kind"]
2803 [::core::mem::offset_of!(JSJitConstantDescriptor, kind) - 8usize];
2804 ["Offset of field: JSJitConstantDescriptor::reserved"]
2805 [::core::mem::offset_of!(JSJitConstantDescriptor, reserved) - 12usize];
2806 ["Offset of field: JSJitConstantDescriptor::payload"]
2807 [::core::mem::offset_of!(JSJitConstantDescriptor, payload) - 16usize];
2808};
2809pub const JSJitSnapshotStatus_JS_JIT_SNAPSHOT_OK: JSJitSnapshotStatus = 0;
2810pub const JSJitSnapshotStatus_JS_JIT_SNAPSHOT_INVALID_ARGUMENT: JSJitSnapshotStatus = -1;
2811pub const JSJitSnapshotStatus_JS_JIT_SNAPSHOT_NOT_BYTECODE: JSJitSnapshotStatus = -2;
2812pub const JSJitSnapshotStatus_JS_JIT_SNAPSHOT_GENERATOR: JSJitSnapshotStatus = -3;
2813pub const JSJitSnapshotStatus_JS_JIT_SNAPSHOT_ASYNC: JSJitSnapshotStatus = -4;
2814pub const JSJitSnapshotStatus_JS_JIT_SNAPSHOT_EVAL: JSJitSnapshotStatus = -5;
2815pub const JSJitSnapshotStatus_JS_JIT_SNAPSHOT_WITH: JSJitSnapshotStatus = -6;
2816pub const JSJitSnapshotStatus_JS_JIT_SNAPSHOT_OUT_OF_MEMORY: JSJitSnapshotStatus = -7;
2817pub const JSJitSnapshotStatus_JS_JIT_SNAPSHOT_TOO_LARGE: JSJitSnapshotStatus = -8;
2818pub const JSJitSnapshotStatus_JS_JIT_SNAPSHOT_INVALID_BYTECODE: JSJitSnapshotStatus = -9;
2819pub type JSJitSnapshotStatus = ::core::ffi::c_int;
2820#[repr(C)]
2821#[derive(Debug, Copy, Clone)]
2822pub struct JSJitFunctionSnapshot {
2823 pub struct_size: u32,
2824 pub flags: u32,
2825 pub function: JSJitFunctionId,
2826 pub opaque: *mut ::core::ffi::c_void,
2827 pub source_revision: u64,
2828 pub opcode_fingerprint: u64,
2829 pub bytecode: *const u8,
2830 pub bytecode_len: u32,
2831 pub arg_count: u16,
2832 pub local_count: u16,
2833 pub closure_count: u16,
2834 pub stack_size: u16,
2835 pub constants: *const JSJitConstantDescriptor,
2836 pub constant_count: u32,
2837 pub exception_map: *const u8,
2838 pub exception_map_len: u32,
2839 pub source_map: *const u8,
2840 pub source_map_len: u32,
2841}
2842#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2843const _: () = {
2844 ["Size of JSJitFunctionSnapshot"][::core::mem::size_of::<JSJitFunctionSnapshot>() - 128usize];
2845 ["Alignment of JSJitFunctionSnapshot"]
2846 [::core::mem::align_of::<JSJitFunctionSnapshot>() - 8usize];
2847 ["Offset of field: JSJitFunctionSnapshot::struct_size"]
2848 [::core::mem::offset_of!(JSJitFunctionSnapshot, struct_size) - 0usize];
2849 ["Offset of field: JSJitFunctionSnapshot::flags"]
2850 [::core::mem::offset_of!(JSJitFunctionSnapshot, flags) - 4usize];
2851 ["Offset of field: JSJitFunctionSnapshot::function"]
2852 [::core::mem::offset_of!(JSJitFunctionSnapshot, function) - 8usize];
2853 ["Offset of field: JSJitFunctionSnapshot::opaque"]
2854 [::core::mem::offset_of!(JSJitFunctionSnapshot, opaque) - 32usize];
2855 ["Offset of field: JSJitFunctionSnapshot::source_revision"]
2856 [::core::mem::offset_of!(JSJitFunctionSnapshot, source_revision) - 40usize];
2857 ["Offset of field: JSJitFunctionSnapshot::opcode_fingerprint"]
2858 [::core::mem::offset_of!(JSJitFunctionSnapshot, opcode_fingerprint) - 48usize];
2859 ["Offset of field: JSJitFunctionSnapshot::bytecode"]
2860 [::core::mem::offset_of!(JSJitFunctionSnapshot, bytecode) - 56usize];
2861 ["Offset of field: JSJitFunctionSnapshot::bytecode_len"]
2862 [::core::mem::offset_of!(JSJitFunctionSnapshot, bytecode_len) - 64usize];
2863 ["Offset of field: JSJitFunctionSnapshot::arg_count"]
2864 [::core::mem::offset_of!(JSJitFunctionSnapshot, arg_count) - 68usize];
2865 ["Offset of field: JSJitFunctionSnapshot::local_count"]
2866 [::core::mem::offset_of!(JSJitFunctionSnapshot, local_count) - 70usize];
2867 ["Offset of field: JSJitFunctionSnapshot::closure_count"]
2868 [::core::mem::offset_of!(JSJitFunctionSnapshot, closure_count) - 72usize];
2869 ["Offset of field: JSJitFunctionSnapshot::stack_size"]
2870 [::core::mem::offset_of!(JSJitFunctionSnapshot, stack_size) - 74usize];
2871 ["Offset of field: JSJitFunctionSnapshot::constants"]
2872 [::core::mem::offset_of!(JSJitFunctionSnapshot, constants) - 80usize];
2873 ["Offset of field: JSJitFunctionSnapshot::constant_count"]
2874 [::core::mem::offset_of!(JSJitFunctionSnapshot, constant_count) - 88usize];
2875 ["Offset of field: JSJitFunctionSnapshot::exception_map"]
2876 [::core::mem::offset_of!(JSJitFunctionSnapshot, exception_map) - 96usize];
2877 ["Offset of field: JSJitFunctionSnapshot::exception_map_len"]
2878 [::core::mem::offset_of!(JSJitFunctionSnapshot, exception_map_len) - 104usize];
2879 ["Offset of field: JSJitFunctionSnapshot::source_map"]
2880 [::core::mem::offset_of!(JSJitFunctionSnapshot, source_map) - 112usize];
2881 ["Offset of field: JSJitFunctionSnapshot::source_map_len"]
2882 [::core::mem::offset_of!(JSJitFunctionSnapshot, source_map_len) - 120usize];
2883};
2884pub const JSJitExitKind_JS_JIT_EXIT_DONE: JSJitExitKind = 0;
2885pub const JSJitExitKind_JS_JIT_EXIT_EXCEPTION: JSJitExitKind = 1;
2886pub const JSJitExitKind_JS_JIT_EXIT_INTERRUPT: JSJitExitKind = 2;
2887pub const JSJitExitKind_JS_JIT_EXIT_DEOPT: JSJitExitKind = 3;
2888pub const JSJitExitKind_JS_JIT_EXIT_RETRY_INTERPRETER: JSJitExitKind = 4;
2889pub type JSJitExitKind = ::core::ffi::c_uint;
2890pub type JSJitHelperStatus = i32;
2891pub const JS_JIT_HELPER_OK: JSJitAnonymousEnum_JS_JIT_HELPER_OK = 0;
2892pub const JS_JIT_HELPER_GUARD_MISS: JSJitAnonymousEnum_JS_JIT_HELPER_OK = 1;
2893pub const JS_JIT_HELPER_MATERIALIZED: JSJitAnonymousEnum_JS_JIT_HELPER_OK = 2;
2894pub const JS_JIT_HELPER_EXCEPTION: JSJitAnonymousEnum_JS_JIT_HELPER_OK = -1;
2895pub type JSJitAnonymousEnum_JS_JIT_HELPER_OK = ::core::ffi::c_int;
2896pub const JSJitOwnerSourceKind_JS_JIT_OWNER_SOURCE_ARGUMENT: JSJitOwnerSourceKind = 0;
2897pub const JSJitOwnerSourceKind_JS_JIT_OWNER_SOURCE_LOCAL: JSJitOwnerSourceKind = 1;
2898pub const JSJitOwnerSourceKind_JS_JIT_OWNER_SOURCE_OWNED_STACK: JSJitOwnerSourceKind = 2;
2899pub type JSJitOwnerSourceKind = ::core::ffi::c_uint;
2900pub const JSJitHelperABIType_JS_JIT_HELPER_ABI_NONE: JSJitHelperABIType = 0;
2901pub const JSJitHelperABIType_JS_JIT_HELPER_ABI_STATUS: JSJitHelperABIType = 1;
2902pub const JSJitHelperABIType_JS_JIT_HELPER_ABI_FRAME: JSJitHelperABIType = 2;
2903pub const JSJitHelperABIType_JS_JIT_HELPER_ABI_U32: JSJitHelperABIType = 3;
2904pub type JSJitHelperABIType = ::core::ffi::c_uint;
2905pub const JSJitHelperOwnership_JS_JIT_HELPER_NONE: JSJitHelperOwnership = 0;
2906pub const JSJitHelperOwnership_JS_JIT_HELPER_BORROWED: JSJitHelperOwnership = 1;
2907pub const JSJitHelperOwnership_JS_JIT_HELPER_CONSUMED: JSJitHelperOwnership = 2;
2908pub const JSJitHelperOwnership_JS_JIT_HELPER_OWNED: JSJitHelperOwnership = 3;
2909pub type JSJitHelperOwnership = ::core::ffi::c_uint;
2910pub const JS_JIT_HELPER_THROWING: JSJitAnonymousEnum_JS_JIT_HELPER_THROWING = 1;
2911pub const JS_JIT_HELPER_ALLOCATING: JSJitAnonymousEnum_JS_JIT_HELPER_THROWING = 2;
2912pub const JS_JIT_HELPER_REENTRANT: JSJitAnonymousEnum_JS_JIT_HELPER_THROWING = 4;
2913pub const JS_JIT_HELPER_FINALIZING: JSJitAnonymousEnum_JS_JIT_HELPER_THROWING = 8;
2914pub type JSJitAnonymousEnum_JS_JIT_HELPER_THROWING = ::core::ffi::c_uint;
2915pub const JSJitCompareOp_JS_JIT_COMPARE_LT: JSJitCompareOp = 0;
2916pub const JSJitCompareOp_JS_JIT_COMPARE_LTE: JSJitCompareOp = 1;
2917pub const JSJitCompareOp_JS_JIT_COMPARE_GT: JSJitCompareOp = 2;
2918pub const JSJitCompareOp_JS_JIT_COMPARE_GTE: JSJitCompareOp = 3;
2919pub const JSJitCompareOp_JS_JIT_COMPARE_EQ: JSJitCompareOp = 4;
2920pub const JSJitCompareOp_JS_JIT_COMPARE_NEQ: JSJitCompareOp = 5;
2921pub const JSJitCompareOp_JS_JIT_COMPARE_STRICT_EQ: JSJitCompareOp = 6;
2922pub const JSJitCompareOp_JS_JIT_COMPARE_STRICT_NEQ: JSJitCompareOp = 7;
2923pub type JSJitCompareOp = ::core::ffi::c_uint;
2924pub const JSJitVarRefMode_JS_JIT_VAR_REF_PLAIN: JSJitVarRefMode = 0;
2925pub const JSJitVarRefMode_JS_JIT_VAR_REF_CHECK: JSJitVarRefMode = 1;
2926pub const JSJitVarRefMode_JS_JIT_VAR_REF_CHECK_INIT: JSJitVarRefMode = 2;
2927pub type JSJitVarRefMode = ::core::ffi::c_uint;
2928pub const JSJitHelperId_JS_JIT_HELPER_POLL: JSJitHelperId = 0;
2929pub const JSJitHelperId_JS_JIT_HELPER_DUP: JSJitHelperId = 1;
2930pub const JSJitHelperId_JS_JIT_HELPER_FREE: JSJitHelperId = 2;
2931pub const JSJitHelperId_JS_JIT_HELPER_RESOLVE_CONST: JSJitHelperId = 3;
2932pub const JSJitHelperId_JS_JIT_HELPER_TO_NUMERIC: JSJitHelperId = 4;
2933pub const JSJitHelperId_JS_JIT_HELPER_TO_BOOL: JSJitHelperId = 5;
2934pub const JSJitHelperId_JS_JIT_HELPER_ADD_SLOW: JSJitHelperId = 6;
2935pub const JSJitHelperId_JS_JIT_HELPER_COMPARE_SLOW: JSJitHelperId = 7;
2936pub const JSJitHelperId_JS_JIT_HELPER_GET_PROPERTY: JSJitHelperId = 8;
2937pub const JSJitHelperId_JS_JIT_HELPER_SET_PROPERTY: JSJitHelperId = 9;
2938pub const JSJitHelperId_JS_JIT_HELPER_CALL: JSJitHelperId = 10;
2939pub const JSJitHelperId_JS_JIT_HELPER_NEW_ARRAY: JSJitHelperId = 11;
2940pub const JSJitHelperId_JS_JIT_HELPER_NEW_OBJECT: JSJitHelperId = 12;
2941pub const JSJitHelperId_JS_JIT_HELPER_SHAPE_GUARD: JSJitHelperId = 13;
2942pub const JSJitHelperId_JS_JIT_HELPER_MATERIALIZE_OWNER: JSJitHelperId = 14;
2943pub const JSJitHelperId_JS_JIT_HELPER_GET_ELEMENT: JSJitHelperId = 15;
2944pub const JSJitHelperId_JS_JIT_HELPER_SET_ELEMENT: JSJitHelperId = 16;
2945pub const JSJitHelperId_JS_JIT_HELPER_TO_PROPKEY: JSJitHelperId = 17;
2946pub const JSJitHelperId_JS_JIT_HELPER_GET_GLOBAL: JSJitHelperId = 18;
2947pub const JSJitHelperId_JS_JIT_HELPER_CALL_CONSTRUCTOR: JSJitHelperId = 19;
2948pub const JSJitHelperId_JS_JIT_HELPER_REGEXP: JSJitHelperId = 20;
2949pub const JSJitHelperId_JS_JIT_HELPER_ATOM_VALUE: JSJitHelperId = 21;
2950pub const JSJitHelperId_JS_JIT_HELPER_BINARY_ARITH_SLOW: JSJitHelperId = 22;
2951pub const JSJitHelperId_JS_JIT_HELPER_UNARY_ARITH_SLOW: JSJitHelperId = 23;
2952pub const JSJitHelperId_JS_JIT_HELPER_FCLOSURE: JSJitHelperId = 24;
2953pub const JSJitHelperId_JS_JIT_HELPER_GET_VAR_REF: JSJitHelperId = 25;
2954pub const JSJitHelperId_JS_JIT_HELPER_PUT_VAR_REF: JSJitHelperId = 26;
2955pub const JSJitHelperId_JS_JIT_HELPER_CLOSE_LOC: JSJitHelperId = 27;
2956pub const JSJitHelperId_JS_JIT_HELPER_SET_NAME: JSJitHelperId = 28;
2957pub const JSJitHelperId_JS_JIT_HELPER_GENERIC_OP: JSJitHelperId = 29;
2958pub const JSJitHelperId_JS_JIT_HELPER_ITERATOR_OP: JSJitHelperId = 30;
2959pub const JSJitHelperId_JS_JIT_HELPER_COUNT: JSJitHelperId = 31;
2960pub type JSJitHelperId = ::core::ffi::c_uint;
2961#[repr(C)]
2962#[derive(Debug, Copy, Clone)]
2963pub struct JSJitHelperInfo {
2964 pub id: u16,
2965 pub abi_type_count: u8,
2966 pub value_arity: u8,
2967 pub abi_types: [u8; 8usize],
2968 pub value_ownership: [u8; 4usize],
2969 pub output_ownership: u8,
2970 pub reserved: [u8; 3usize],
2971 pub flags: u32,
2972 pub name: *const ::core::ffi::c_char,
2973}
2974#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2975const _: () = {
2976 ["Size of JSJitHelperInfo"][::core::mem::size_of::<JSJitHelperInfo>() - 32usize];
2977 ["Alignment of JSJitHelperInfo"][::core::mem::align_of::<JSJitHelperInfo>() - 8usize];
2978 ["Offset of field: JSJitHelperInfo::id"][::core::mem::offset_of!(JSJitHelperInfo, id) - 0usize];
2979 ["Offset of field: JSJitHelperInfo::abi_type_count"]
2980 [::core::mem::offset_of!(JSJitHelperInfo, abi_type_count) - 2usize];
2981 ["Offset of field: JSJitHelperInfo::value_arity"]
2982 [::core::mem::offset_of!(JSJitHelperInfo, value_arity) - 3usize];
2983 ["Offset of field: JSJitHelperInfo::abi_types"]
2984 [::core::mem::offset_of!(JSJitHelperInfo, abi_types) - 4usize];
2985 ["Offset of field: JSJitHelperInfo::value_ownership"]
2986 [::core::mem::offset_of!(JSJitHelperInfo, value_ownership) - 12usize];
2987 ["Offset of field: JSJitHelperInfo::output_ownership"]
2988 [::core::mem::offset_of!(JSJitHelperInfo, output_ownership) - 16usize];
2989 ["Offset of field: JSJitHelperInfo::reserved"]
2990 [::core::mem::offset_of!(JSJitHelperInfo, reserved) - 17usize];
2991 ["Offset of field: JSJitHelperInfo::flags"]
2992 [::core::mem::offset_of!(JSJitHelperInfo, flags) - 20usize];
2993 ["Offset of field: JSJitHelperInfo::name"]
2994 [::core::mem::offset_of!(JSJitHelperInfo, name) - 24usize];
2995};
2996unsafe extern "C" {
2997 pub fn JS_JitHelperPoll(frame: *mut JSJitExecFrame) -> JSJitHelperStatus;
2998}
2999unsafe extern "C" {
3000 pub fn JS_JitHelperDup(
3001 frame: *mut JSJitExecFrame,
3002 stack_map_id: u32,
3003 output: u32,
3004 input: u32,
3005 ) -> JSJitHelperStatus;
3006}
3007unsafe extern "C" {
3008 pub fn JS_JitHelperFree(
3009 frame: *mut JSJitExecFrame,
3010 stack_map_id: u32,
3011 input: u32,
3012 ) -> JSJitHelperStatus;
3013}
3014unsafe extern "C" {
3015 pub fn JS_JitHelperResolveConst(
3016 frame: *mut JSJitExecFrame,
3017 stack_map_id: u32,
3018 output: u32,
3019 input: u32,
3020 ) -> JSJitHelperStatus;
3021}
3022unsafe extern "C" {
3023 pub fn JS_JitHelperToNumeric(
3024 frame: *mut JSJitExecFrame,
3025 stack_map_id: u32,
3026 output: u32,
3027 input: u32,
3028 ) -> JSJitHelperStatus;
3029}
3030unsafe extern "C" {
3031 pub fn JS_JitHelperToBool(
3032 frame: *mut JSJitExecFrame,
3033 stack_map_id: u32,
3034 output: u32,
3035 input: u32,
3036 ) -> JSJitHelperStatus;
3037}
3038unsafe extern "C" {
3039 pub fn JS_JitHelperAddSlow(
3040 frame: *mut JSJitExecFrame,
3041 stack_map_id: u32,
3042 output: u32,
3043 left: u32,
3044 right: u32,
3045 ) -> JSJitHelperStatus;
3046}
3047unsafe extern "C" {
3048 pub fn JS_JitHelperCompareSlow(
3049 frame: *mut JSJitExecFrame,
3050 stack_map_id: u32,
3051 output: u32,
3052 left: u32,
3053 right: u32,
3054 operation: u32,
3055 ) -> JSJitHelperStatus;
3056}
3057unsafe extern "C" {
3058 pub fn JS_JitHelperGetProperty(
3059 frame: *mut JSJitExecFrame,
3060 stack_map_id: u32,
3061 output: u32,
3062 object: u32,
3063 atom: u32,
3064 ) -> JSJitHelperStatus;
3065}
3066unsafe extern "C" {
3067 pub fn JS_JitHelperSetProperty(
3068 frame: *mut JSJitExecFrame,
3069 stack_map_id: u32,
3070 object: u32,
3071 atom: u32,
3072 value: u32,
3073 ) -> JSJitHelperStatus;
3074}
3075unsafe extern "C" {
3076 pub fn JS_JitHelperCall(
3077 frame: *mut JSJitExecFrame,
3078 stack_map_id: u32,
3079 output: u32,
3080 function: u32,
3081 this_value: u32,
3082 argv: u32,
3083 argc: u32,
3084 ) -> JSJitHelperStatus;
3085}
3086unsafe extern "C" {
3087 pub fn JS_JitHelperNewArray(
3088 frame: *mut JSJitExecFrame,
3089 stack_map_id: u32,
3090 output: u32,
3091 ) -> JSJitHelperStatus;
3092}
3093unsafe extern "C" {
3094 pub fn JS_JitHelperNewObject(
3095 frame: *mut JSJitExecFrame,
3096 stack_map_id: u32,
3097 output: u32,
3098 ) -> JSJitHelperStatus;
3099}
3100unsafe extern "C" {
3101 pub fn JS_JitHelperShapeGuard(
3102 frame: *mut JSJitExecFrame,
3103 stack_map_id: u32,
3104 object: u32,
3105 identity_lo: u32,
3106 identity_hi: u32,
3107 generation_lo: u32,
3108 generation_hi: u32,
3109 ) -> JSJitHelperStatus;
3110}
3111unsafe extern "C" {
3112 pub fn JS_JitHelperMaterializeOwner(
3113 frame: *mut JSJitExecFrame,
3114 stack_map_id: u32,
3115 output_stack_index: u32,
3116 source_kind: u32,
3117 source_index: u32,
3118 ) -> JSJitHelperStatus;
3119}
3120unsafe extern "C" {
3121 pub fn JS_JitHelperGetElement(
3122 frame: *mut JSJitExecFrame,
3123 stack_map_id: u32,
3124 output: u32,
3125 left: u32,
3126 right: u32,
3127 ) -> JSJitHelperStatus;
3128}
3129unsafe extern "C" {
3130 pub fn JS_JitHelperSetElement(
3131 frame: *mut JSJitExecFrame,
3132 stack_map_id: u32,
3133 output: u32,
3134 left: u32,
3135 right: u32,
3136 ) -> JSJitHelperStatus;
3137}
3138unsafe extern "C" {
3139 pub fn JS_JitHelperToPropKey(
3140 frame: *mut JSJitExecFrame,
3141 stack_map_id: u32,
3142 output: u32,
3143 input: u32,
3144 ) -> JSJitHelperStatus;
3145}
3146unsafe extern "C" {
3147 pub fn JS_JitHelperGetGlobal(
3148 frame: *mut JSJitExecFrame,
3149 stack_map_id: u32,
3150 output: u32,
3151 input: u32,
3152 ) -> JSJitHelperStatus;
3153}
3154unsafe extern "C" {
3155 pub fn JS_JitHelperCallConstructor(
3156 frame: *mut JSJitExecFrame,
3157 stack_map_id: u32,
3158 output: u32,
3159 function: u32,
3160 this_value: u32,
3161 argv: u32,
3162 argc: u32,
3163 ) -> JSJitHelperStatus;
3164}
3165unsafe extern "C" {
3166 pub fn JS_JitHelperRegexp(
3167 frame: *mut JSJitExecFrame,
3168 stack_map_id: u32,
3169 output: u32,
3170 left: u32,
3171 right: u32,
3172 ) -> JSJitHelperStatus;
3173}
3174unsafe extern "C" {
3175 pub fn JS_JitHelperAtomValue(
3176 frame: *mut JSJitExecFrame,
3177 stack_map_id: u32,
3178 output: u32,
3179 input: u32,
3180 ) -> JSJitHelperStatus;
3181}
3182unsafe extern "C" {
3183 pub fn JS_JitHelperBinaryArithSlow(
3184 frame: *mut JSJitExecFrame,
3185 stack_map_id: u32,
3186 output: u32,
3187 left: u32,
3188 right: u32,
3189 operation: u32,
3190 ) -> JSJitHelperStatus;
3191}
3192unsafe extern "C" {
3193 pub fn JS_JitHelperUnaryArithSlow(
3194 frame: *mut JSJitExecFrame,
3195 stack_map_id: u32,
3196 output: u32,
3197 input: u32,
3198 opcode: u32,
3199 ) -> JSJitHelperStatus;
3200}
3201unsafe extern "C" {
3202 pub fn JS_JitHelperFClosure(
3203 frame: *mut JSJitExecFrame,
3204 stack_map_id: u32,
3205 output: u32,
3206 input: u32,
3207 ) -> JSJitHelperStatus;
3208}
3209unsafe extern "C" {
3210 pub fn JS_JitHelperGetVarRef(
3211 frame: *mut JSJitExecFrame,
3212 stack_map_id: u32,
3213 output: u32,
3214 input: u32,
3215 opcode: u32,
3216 ) -> JSJitHelperStatus;
3217}
3218unsafe extern "C" {
3219 pub fn JS_JitHelperPutVarRef(
3220 frame: *mut JSJitExecFrame,
3221 stack_map_id: u32,
3222 output: u32,
3223 input: u32,
3224 opcode: u32,
3225 ) -> JSJitHelperStatus;
3226}
3227unsafe extern "C" {
3228 pub fn JS_JitHelperCloseLoc(
3229 frame: *mut JSJitExecFrame,
3230 stack_map_id: u32,
3231 input: u32,
3232 ) -> JSJitHelperStatus;
3233}
3234unsafe extern "C" {
3235 pub fn JS_JitHelperSetName(
3236 frame: *mut JSJitExecFrame,
3237 stack_map_id: u32,
3238 output: u32,
3239 input: u32,
3240 ) -> JSJitHelperStatus;
3241}
3242unsafe extern "C" {
3243 pub fn JS_JitHelperGenericOp(
3244 frame: *mut JSJitExecFrame,
3245 stack_map_id: u32,
3246 output: u32,
3247 left: u32,
3248 right: u32,
3249 operation: u32,
3250 ) -> JSJitHelperStatus;
3251}
3252unsafe extern "C" {
3253 pub fn JS_JitHelperIteratorOp(
3254 frame: *mut JSJitExecFrame,
3255 stack_map_id: u32,
3256 output: u32,
3257 left: u32,
3258 right: u32,
3259 operation: u32,
3260 ) -> JSJitHelperStatus;
3261}
3262unsafe extern "C" {
3263 pub fn JS_JitGetHelperTable(count: *mut u32, fingerprint: *mut u64) -> *const JSJitHelperInfo;
3264}
3265#[repr(C)]
3266#[derive(Debug, Copy, Clone)]
3267pub struct JSJitRuntimeAPI {
3268 pub struct_size: u32,
3269 pub major: u16,
3270 pub minor: u16,
3271 pub interrupt_poll: ::core::option::Option<
3272 unsafe extern "C" fn(frame: *mut JSJitExecFrame) -> JSJitHelperStatus,
3273 >,
3274 pub dup: ::core::option::Option<
3275 unsafe extern "C" fn(
3276 frame: *mut JSJitExecFrame,
3277 stack_map_id: u32,
3278 output: u32,
3279 input: u32,
3280 ) -> JSJitHelperStatus,
3281 >,
3282 pub free: ::core::option::Option<
3283 unsafe extern "C" fn(
3284 frame: *mut JSJitExecFrame,
3285 stack_map_id: u32,
3286 input: u32,
3287 ) -> JSJitHelperStatus,
3288 >,
3289 pub resolve_const: ::core::option::Option<
3290 unsafe extern "C" fn(
3291 frame: *mut JSJitExecFrame,
3292 stack_map_id: u32,
3293 output: u32,
3294 input: u32,
3295 ) -> JSJitHelperStatus,
3296 >,
3297 pub to_numeric: ::core::option::Option<
3298 unsafe extern "C" fn(
3299 frame: *mut JSJitExecFrame,
3300 stack_map_id: u32,
3301 output: u32,
3302 input: u32,
3303 ) -> JSJitHelperStatus,
3304 >,
3305 pub to_bool: ::core::option::Option<
3306 unsafe extern "C" fn(
3307 frame: *mut JSJitExecFrame,
3308 stack_map_id: u32,
3309 output: u32,
3310 input: u32,
3311 ) -> JSJitHelperStatus,
3312 >,
3313 pub add_slow: ::core::option::Option<
3314 unsafe extern "C" fn(
3315 frame: *mut JSJitExecFrame,
3316 stack_map_id: u32,
3317 output: u32,
3318 left: u32,
3319 right: u32,
3320 ) -> JSJitHelperStatus,
3321 >,
3322 pub compare_slow: ::core::option::Option<
3323 unsafe extern "C" fn(
3324 frame: *mut JSJitExecFrame,
3325 stack_map_id: u32,
3326 output: u32,
3327 left: u32,
3328 right: u32,
3329 operation: u32,
3330 ) -> JSJitHelperStatus,
3331 >,
3332 pub get_property: ::core::option::Option<
3333 unsafe extern "C" fn(
3334 frame: *mut JSJitExecFrame,
3335 stack_map_id: u32,
3336 output: u32,
3337 object: u32,
3338 atom: u32,
3339 ) -> JSJitHelperStatus,
3340 >,
3341 pub set_property: ::core::option::Option<
3342 unsafe extern "C" fn(
3343 frame: *mut JSJitExecFrame,
3344 stack_map_id: u32,
3345 object: u32,
3346 atom: u32,
3347 value: u32,
3348 ) -> JSJitHelperStatus,
3349 >,
3350 pub call: ::core::option::Option<
3351 unsafe extern "C" fn(
3352 frame: *mut JSJitExecFrame,
3353 stack_map_id: u32,
3354 output: u32,
3355 function: u32,
3356 this_value: u32,
3357 argv: u32,
3358 argc: u32,
3359 ) -> JSJitHelperStatus,
3360 >,
3361 pub new_array: ::core::option::Option<
3362 unsafe extern "C" fn(
3363 frame: *mut JSJitExecFrame,
3364 stack_map_id: u32,
3365 output: u32,
3366 ) -> JSJitHelperStatus,
3367 >,
3368 pub new_object: ::core::option::Option<
3369 unsafe extern "C" fn(
3370 frame: *mut JSJitExecFrame,
3371 stack_map_id: u32,
3372 output: u32,
3373 ) -> JSJitHelperStatus,
3374 >,
3375 pub shape_guard: ::core::option::Option<
3376 unsafe extern "C" fn(
3377 frame: *mut JSJitExecFrame,
3378 stack_map_id: u32,
3379 object: u32,
3380 identity_lo: u32,
3381 identity_hi: u32,
3382 generation_lo: u32,
3383 generation_hi: u32,
3384 ) -> JSJitHelperStatus,
3385 >,
3386 pub materialize_owner: ::core::option::Option<
3387 unsafe extern "C" fn(
3388 frame: *mut JSJitExecFrame,
3389 stack_map_id: u32,
3390 output_stack_index: u32,
3391 source_kind: u32,
3392 source_index: u32,
3393 ) -> JSJitHelperStatus,
3394 >,
3395 pub get_element: ::core::option::Option<
3396 unsafe extern "C" fn(
3397 frame: *mut JSJitExecFrame,
3398 stack_map_id: u32,
3399 output: u32,
3400 left: u32,
3401 right: u32,
3402 ) -> JSJitHelperStatus,
3403 >,
3404 pub set_element: ::core::option::Option<
3405 unsafe extern "C" fn(
3406 frame: *mut JSJitExecFrame,
3407 stack_map_id: u32,
3408 output: u32,
3409 left: u32,
3410 right: u32,
3411 ) -> JSJitHelperStatus,
3412 >,
3413 pub to_propkey: ::core::option::Option<
3414 unsafe extern "C" fn(
3415 frame: *mut JSJitExecFrame,
3416 stack_map_id: u32,
3417 output: u32,
3418 input: u32,
3419 ) -> JSJitHelperStatus,
3420 >,
3421 pub get_global: ::core::option::Option<
3422 unsafe extern "C" fn(
3423 frame: *mut JSJitExecFrame,
3424 stack_map_id: u32,
3425 output: u32,
3426 input: u32,
3427 ) -> JSJitHelperStatus,
3428 >,
3429 pub call_constructor: ::core::option::Option<
3430 unsafe extern "C" fn(
3431 frame: *mut JSJitExecFrame,
3432 stack_map_id: u32,
3433 output: u32,
3434 function: u32,
3435 this_value: u32,
3436 argv: u32,
3437 argc: u32,
3438 ) -> JSJitHelperStatus,
3439 >,
3440 pub regexp: ::core::option::Option<
3441 unsafe extern "C" fn(
3442 frame: *mut JSJitExecFrame,
3443 stack_map_id: u32,
3444 output: u32,
3445 left: u32,
3446 right: u32,
3447 ) -> JSJitHelperStatus,
3448 >,
3449 pub atom_value: ::core::option::Option<
3450 unsafe extern "C" fn(
3451 frame: *mut JSJitExecFrame,
3452 stack_map_id: u32,
3453 output: u32,
3454 input: u32,
3455 ) -> JSJitHelperStatus,
3456 >,
3457 pub binary_arith_slow: ::core::option::Option<
3458 unsafe extern "C" fn(
3459 frame: *mut JSJitExecFrame,
3460 stack_map_id: u32,
3461 output: u32,
3462 left: u32,
3463 right: u32,
3464 operation: u32,
3465 ) -> JSJitHelperStatus,
3466 >,
3467 pub unary_arith_slow: ::core::option::Option<
3468 unsafe extern "C" fn(
3469 frame: *mut JSJitExecFrame,
3470 stack_map_id: u32,
3471 output: u32,
3472 input: u32,
3473 opcode: u32,
3474 ) -> JSJitHelperStatus,
3475 >,
3476 pub fclosure: ::core::option::Option<
3477 unsafe extern "C" fn(
3478 frame: *mut JSJitExecFrame,
3479 stack_map_id: u32,
3480 output: u32,
3481 input: u32,
3482 ) -> JSJitHelperStatus,
3483 >,
3484 pub get_var_ref: ::core::option::Option<
3485 unsafe extern "C" fn(
3486 frame: *mut JSJitExecFrame,
3487 stack_map_id: u32,
3488 output: u32,
3489 input: u32,
3490 opcode: u32,
3491 ) -> JSJitHelperStatus,
3492 >,
3493 pub put_var_ref: ::core::option::Option<
3494 unsafe extern "C" fn(
3495 frame: *mut JSJitExecFrame,
3496 stack_map_id: u32,
3497 output: u32,
3498 input: u32,
3499 opcode: u32,
3500 ) -> JSJitHelperStatus,
3501 >,
3502 pub close_loc: ::core::option::Option<
3503 unsafe extern "C" fn(
3504 frame: *mut JSJitExecFrame,
3505 stack_map_id: u32,
3506 input: u32,
3507 ) -> JSJitHelperStatus,
3508 >,
3509 pub set_name: ::core::option::Option<
3510 unsafe extern "C" fn(
3511 frame: *mut JSJitExecFrame,
3512 stack_map_id: u32,
3513 output: u32,
3514 input: u32,
3515 ) -> JSJitHelperStatus,
3516 >,
3517 pub generic_op: ::core::option::Option<
3518 unsafe extern "C" fn(
3519 frame: *mut JSJitExecFrame,
3520 stack_map_id: u32,
3521 output: u32,
3522 left: u32,
3523 right: u32,
3524 operation: u32,
3525 ) -> JSJitHelperStatus,
3526 >,
3527 pub iterator_op: ::core::option::Option<
3528 unsafe extern "C" fn(
3529 frame: *mut JSJitExecFrame,
3530 stack_map_id: u32,
3531 output: u32,
3532 left: u32,
3533 right: u32,
3534 operation: u32,
3535 ) -> JSJitHelperStatus,
3536 >,
3537}
3538#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3539const _: () = {
3540 ["Size of JSJitRuntimeAPI"][::core::mem::size_of::<JSJitRuntimeAPI>() - 256usize];
3541 ["Alignment of JSJitRuntimeAPI"][::core::mem::align_of::<JSJitRuntimeAPI>() - 8usize];
3542 ["Offset of field: JSJitRuntimeAPI::struct_size"]
3543 [::core::mem::offset_of!(JSJitRuntimeAPI, struct_size) - 0usize];
3544 ["Offset of field: JSJitRuntimeAPI::major"]
3545 [::core::mem::offset_of!(JSJitRuntimeAPI, major) - 4usize];
3546 ["Offset of field: JSJitRuntimeAPI::minor"]
3547 [::core::mem::offset_of!(JSJitRuntimeAPI, minor) - 6usize];
3548 ["Offset of field: JSJitRuntimeAPI::interrupt_poll"]
3549 [::core::mem::offset_of!(JSJitRuntimeAPI, interrupt_poll) - 8usize];
3550 ["Offset of field: JSJitRuntimeAPI::dup"]
3551 [::core::mem::offset_of!(JSJitRuntimeAPI, dup) - 16usize];
3552 ["Offset of field: JSJitRuntimeAPI::free"]
3553 [::core::mem::offset_of!(JSJitRuntimeAPI, free) - 24usize];
3554 ["Offset of field: JSJitRuntimeAPI::resolve_const"]
3555 [::core::mem::offset_of!(JSJitRuntimeAPI, resolve_const) - 32usize];
3556 ["Offset of field: JSJitRuntimeAPI::to_numeric"]
3557 [::core::mem::offset_of!(JSJitRuntimeAPI, to_numeric) - 40usize];
3558 ["Offset of field: JSJitRuntimeAPI::to_bool"]
3559 [::core::mem::offset_of!(JSJitRuntimeAPI, to_bool) - 48usize];
3560 ["Offset of field: JSJitRuntimeAPI::add_slow"]
3561 [::core::mem::offset_of!(JSJitRuntimeAPI, add_slow) - 56usize];
3562 ["Offset of field: JSJitRuntimeAPI::compare_slow"]
3563 [::core::mem::offset_of!(JSJitRuntimeAPI, compare_slow) - 64usize];
3564 ["Offset of field: JSJitRuntimeAPI::get_property"]
3565 [::core::mem::offset_of!(JSJitRuntimeAPI, get_property) - 72usize];
3566 ["Offset of field: JSJitRuntimeAPI::set_property"]
3567 [::core::mem::offset_of!(JSJitRuntimeAPI, set_property) - 80usize];
3568 ["Offset of field: JSJitRuntimeAPI::call"]
3569 [::core::mem::offset_of!(JSJitRuntimeAPI, call) - 88usize];
3570 ["Offset of field: JSJitRuntimeAPI::new_array"]
3571 [::core::mem::offset_of!(JSJitRuntimeAPI, new_array) - 96usize];
3572 ["Offset of field: JSJitRuntimeAPI::new_object"]
3573 [::core::mem::offset_of!(JSJitRuntimeAPI, new_object) - 104usize];
3574 ["Offset of field: JSJitRuntimeAPI::shape_guard"]
3575 [::core::mem::offset_of!(JSJitRuntimeAPI, shape_guard) - 112usize];
3576 ["Offset of field: JSJitRuntimeAPI::materialize_owner"]
3577 [::core::mem::offset_of!(JSJitRuntimeAPI, materialize_owner) - 120usize];
3578 ["Offset of field: JSJitRuntimeAPI::get_element"]
3579 [::core::mem::offset_of!(JSJitRuntimeAPI, get_element) - 128usize];
3580 ["Offset of field: JSJitRuntimeAPI::set_element"]
3581 [::core::mem::offset_of!(JSJitRuntimeAPI, set_element) - 136usize];
3582 ["Offset of field: JSJitRuntimeAPI::to_propkey"]
3583 [::core::mem::offset_of!(JSJitRuntimeAPI, to_propkey) - 144usize];
3584 ["Offset of field: JSJitRuntimeAPI::get_global"]
3585 [::core::mem::offset_of!(JSJitRuntimeAPI, get_global) - 152usize];
3586 ["Offset of field: JSJitRuntimeAPI::call_constructor"]
3587 [::core::mem::offset_of!(JSJitRuntimeAPI, call_constructor) - 160usize];
3588 ["Offset of field: JSJitRuntimeAPI::regexp"]
3589 [::core::mem::offset_of!(JSJitRuntimeAPI, regexp) - 168usize];
3590 ["Offset of field: JSJitRuntimeAPI::atom_value"]
3591 [::core::mem::offset_of!(JSJitRuntimeAPI, atom_value) - 176usize];
3592 ["Offset of field: JSJitRuntimeAPI::binary_arith_slow"]
3593 [::core::mem::offset_of!(JSJitRuntimeAPI, binary_arith_slow) - 184usize];
3594 ["Offset of field: JSJitRuntimeAPI::unary_arith_slow"]
3595 [::core::mem::offset_of!(JSJitRuntimeAPI, unary_arith_slow) - 192usize];
3596 ["Offset of field: JSJitRuntimeAPI::fclosure"]
3597 [::core::mem::offset_of!(JSJitRuntimeAPI, fclosure) - 200usize];
3598 ["Offset of field: JSJitRuntimeAPI::get_var_ref"]
3599 [::core::mem::offset_of!(JSJitRuntimeAPI, get_var_ref) - 208usize];
3600 ["Offset of field: JSJitRuntimeAPI::put_var_ref"]
3601 [::core::mem::offset_of!(JSJitRuntimeAPI, put_var_ref) - 216usize];
3602 ["Offset of field: JSJitRuntimeAPI::close_loc"]
3603 [::core::mem::offset_of!(JSJitRuntimeAPI, close_loc) - 224usize];
3604 ["Offset of field: JSJitRuntimeAPI::set_name"]
3605 [::core::mem::offset_of!(JSJitRuntimeAPI, set_name) - 232usize];
3606 ["Offset of field: JSJitRuntimeAPI::generic_op"]
3607 [::core::mem::offset_of!(JSJitRuntimeAPI, generic_op) - 240usize];
3608 ["Offset of field: JSJitRuntimeAPI::iterator_op"]
3609 [::core::mem::offset_of!(JSJitRuntimeAPI, iterator_op) - 248usize];
3610};
3611#[repr(C)]
3612#[derive(Debug, Copy, Clone)]
3613pub struct JSJitExit {
3614 pub kind: u32,
3615 pub reserved: u32,
3616 pub resume_pc: *const u8,
3617 pub resume_stack_top: *mut JSValue,
3618}
3619#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3620const _: () = {
3621 ["Size of JSJitExit"][::core::mem::size_of::<JSJitExit>() - 24usize];
3622 ["Alignment of JSJitExit"][::core::mem::align_of::<JSJitExit>() - 8usize];
3623 ["Offset of field: JSJitExit::kind"][::core::mem::offset_of!(JSJitExit, kind) - 0usize];
3624 ["Offset of field: JSJitExit::reserved"][::core::mem::offset_of!(JSJitExit, reserved) - 4usize];
3625 ["Offset of field: JSJitExit::resume_pc"]
3626 [::core::mem::offset_of!(JSJitExit, resume_pc) - 8usize];
3627 ["Offset of field: JSJitExit::resume_stack_top"]
3628 [::core::mem::offset_of!(JSJitExit, resume_stack_top) - 16usize];
3629};
3630pub type JSJitEntryFn =
3631 ::core::option::Option<unsafe extern "C" fn(frame: *mut JSJitExecFrame) -> JSJitExit>;
3632#[repr(C)]
3633#[derive(Debug, Copy, Clone)]
3634pub struct JSJitEntryHandle {
3635 pub struct_size: u32,
3636 pub reserved: u32,
3637 pub entry: JSJitEntryFn,
3638 pub pin: *mut ::core::ffi::c_void,
3639 pub stack_map_count: u32,
3640 pub helper_abi_version: u32,
3641}
3642#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3643const _: () = {
3644 ["Size of JSJitEntryHandle"][::core::mem::size_of::<JSJitEntryHandle>() - 32usize];
3645 ["Alignment of JSJitEntryHandle"][::core::mem::align_of::<JSJitEntryHandle>() - 8usize];
3646 ["Offset of field: JSJitEntryHandle::struct_size"]
3647 [::core::mem::offset_of!(JSJitEntryHandle, struct_size) - 0usize];
3648 ["Offset of field: JSJitEntryHandle::reserved"]
3649 [::core::mem::offset_of!(JSJitEntryHandle, reserved) - 4usize];
3650 ["Offset of field: JSJitEntryHandle::entry"]
3651 [::core::mem::offset_of!(JSJitEntryHandle, entry) - 8usize];
3652 ["Offset of field: JSJitEntryHandle::pin"]
3653 [::core::mem::offset_of!(JSJitEntryHandle, pin) - 16usize];
3654 ["Offset of field: JSJitEntryHandle::stack_map_count"]
3655 [::core::mem::offset_of!(JSJitEntryHandle, stack_map_count) - 24usize];
3656 ["Offset of field: JSJitEntryHandle::helper_abi_version"]
3657 [::core::mem::offset_of!(JSJitEntryHandle, helper_abi_version) - 28usize];
3658};
3659#[repr(C)]
3660#[derive(Copy, Clone)]
3661pub struct JSJitExecFrame {
3662 pub struct_size: u32,
3663 pub flags: u32,
3664 pub rt: *mut JSRuntime,
3665 pub ctx: *mut JSContext,
3666 pub function_id: u64,
3667 pub generation: u64,
3668 pub arg_buf: *mut JSValue,
3669 pub var_buf: *mut JSValue,
3670 pub stack_base: *mut JSValue,
3671 pub stack_top: *mut JSValue,
3672 pub bytecode_start: *const u8,
3673 pub pc: *const u8,
3674 pub result: JSValue,
3675 pub entry: JSJitEntryHandle,
3676 pub runtime_api: *const JSJitRuntimeAPI,
3677 pub runtime_id: u64,
3678 pub frame_cookie: u64,
3679 pub stack_capacity: *mut JSValue,
3680}
3681#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3682const _: () = {
3683 ["Size of JSJitExecFrame"][::core::mem::size_of::<JSJitExecFrame>() - 168usize];
3684 ["Alignment of JSJitExecFrame"][::core::mem::align_of::<JSJitExecFrame>() - 8usize];
3685 ["Offset of field: JSJitExecFrame::struct_size"]
3686 [::core::mem::offset_of!(JSJitExecFrame, struct_size) - 0usize];
3687 ["Offset of field: JSJitExecFrame::flags"]
3688 [::core::mem::offset_of!(JSJitExecFrame, flags) - 4usize];
3689 ["Offset of field: JSJitExecFrame::rt"][::core::mem::offset_of!(JSJitExecFrame, rt) - 8usize];
3690 ["Offset of field: JSJitExecFrame::ctx"]
3691 [::core::mem::offset_of!(JSJitExecFrame, ctx) - 16usize];
3692 ["Offset of field: JSJitExecFrame::function_id"]
3693 [::core::mem::offset_of!(JSJitExecFrame, function_id) - 24usize];
3694 ["Offset of field: JSJitExecFrame::generation"]
3695 [::core::mem::offset_of!(JSJitExecFrame, generation) - 32usize];
3696 ["Offset of field: JSJitExecFrame::arg_buf"]
3697 [::core::mem::offset_of!(JSJitExecFrame, arg_buf) - 40usize];
3698 ["Offset of field: JSJitExecFrame::var_buf"]
3699 [::core::mem::offset_of!(JSJitExecFrame, var_buf) - 48usize];
3700 ["Offset of field: JSJitExecFrame::stack_base"]
3701 [::core::mem::offset_of!(JSJitExecFrame, stack_base) - 56usize];
3702 ["Offset of field: JSJitExecFrame::stack_top"]
3703 [::core::mem::offset_of!(JSJitExecFrame, stack_top) - 64usize];
3704 ["Offset of field: JSJitExecFrame::bytecode_start"]
3705 [::core::mem::offset_of!(JSJitExecFrame, bytecode_start) - 72usize];
3706 ["Offset of field: JSJitExecFrame::pc"][::core::mem::offset_of!(JSJitExecFrame, pc) - 80usize];
3707 ["Offset of field: JSJitExecFrame::result"]
3708 [::core::mem::offset_of!(JSJitExecFrame, result) - 88usize];
3709 ["Offset of field: JSJitExecFrame::entry"]
3710 [::core::mem::offset_of!(JSJitExecFrame, entry) - 104usize];
3711 ["Offset of field: JSJitExecFrame::runtime_api"]
3712 [::core::mem::offset_of!(JSJitExecFrame, runtime_api) - 136usize];
3713 ["Offset of field: JSJitExecFrame::runtime_id"]
3714 [::core::mem::offset_of!(JSJitExecFrame, runtime_id) - 144usize];
3715 ["Offset of field: JSJitExecFrame::frame_cookie"]
3716 [::core::mem::offset_of!(JSJitExecFrame, frame_cookie) - 152usize];
3717 ["Offset of field: JSJitExecFrame::stack_capacity"]
3718 [::core::mem::offset_of!(JSJitExecFrame, stack_capacity) - 160usize];
3719};
3720#[repr(C)]
3721#[derive(Debug, Copy, Clone)]
3722pub struct JSJitElementLayout {
3723 pub struct_size: u32,
3724 pub object_class_id_offset: u32,
3725 pub object_flags_offset: u32,
3726 pub object_fast_array_mask: u32,
3727 pub object_exotic_mask: u32,
3728 pub object_union_offset: u32,
3729 pub array_size_offset: u32,
3730 pub array_count_offset: u32,
3731 pub array_data_offset: u32,
3732 pub typed_array_ptr_offset: u32,
3733 pub typed_array_buffer_offset: u32,
3734 pub typed_array_byte_offset_offset: u32,
3735 pub typed_array_byte_length_offset: u32,
3736 pub typed_array_track_rab_offset: u32,
3737 pub array_buffer_data_offset: u32,
3738 pub array_buffer_byte_length_offset: u32,
3739 pub array_buffer_max_byte_length_offset: u32,
3740 pub array_buffer_detached_offset: u32,
3741 pub array_buffer_immutable_offset: u32,
3742 pub array_class_id: u32,
3743 pub int32_array_class_id: u32,
3744 pub float64_array_class_id: u32,
3745}
3746#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3747const _: () = {
3748 ["Size of JSJitElementLayout"][::core::mem::size_of::<JSJitElementLayout>() - 88usize];
3749 ["Alignment of JSJitElementLayout"][::core::mem::align_of::<JSJitElementLayout>() - 4usize];
3750 ["Offset of field: JSJitElementLayout::struct_size"]
3751 [::core::mem::offset_of!(JSJitElementLayout, struct_size) - 0usize];
3752 ["Offset of field: JSJitElementLayout::object_class_id_offset"]
3753 [::core::mem::offset_of!(JSJitElementLayout, object_class_id_offset) - 4usize];
3754 ["Offset of field: JSJitElementLayout::object_flags_offset"]
3755 [::core::mem::offset_of!(JSJitElementLayout, object_flags_offset) - 8usize];
3756 ["Offset of field: JSJitElementLayout::object_fast_array_mask"]
3757 [::core::mem::offset_of!(JSJitElementLayout, object_fast_array_mask) - 12usize];
3758 ["Offset of field: JSJitElementLayout::object_exotic_mask"]
3759 [::core::mem::offset_of!(JSJitElementLayout, object_exotic_mask) - 16usize];
3760 ["Offset of field: JSJitElementLayout::object_union_offset"]
3761 [::core::mem::offset_of!(JSJitElementLayout, object_union_offset) - 20usize];
3762 ["Offset of field: JSJitElementLayout::array_size_offset"]
3763 [::core::mem::offset_of!(JSJitElementLayout, array_size_offset) - 24usize];
3764 ["Offset of field: JSJitElementLayout::array_count_offset"]
3765 [::core::mem::offset_of!(JSJitElementLayout, array_count_offset) - 28usize];
3766 ["Offset of field: JSJitElementLayout::array_data_offset"]
3767 [::core::mem::offset_of!(JSJitElementLayout, array_data_offset) - 32usize];
3768 ["Offset of field: JSJitElementLayout::typed_array_ptr_offset"]
3769 [::core::mem::offset_of!(JSJitElementLayout, typed_array_ptr_offset) - 36usize];
3770 ["Offset of field: JSJitElementLayout::typed_array_buffer_offset"]
3771 [::core::mem::offset_of!(JSJitElementLayout, typed_array_buffer_offset) - 40usize];
3772 ["Offset of field: JSJitElementLayout::typed_array_byte_offset_offset"]
3773 [::core::mem::offset_of!(JSJitElementLayout, typed_array_byte_offset_offset) - 44usize];
3774 ["Offset of field: JSJitElementLayout::typed_array_byte_length_offset"]
3775 [::core::mem::offset_of!(JSJitElementLayout, typed_array_byte_length_offset) - 48usize];
3776 ["Offset of field: JSJitElementLayout::typed_array_track_rab_offset"]
3777 [::core::mem::offset_of!(JSJitElementLayout, typed_array_track_rab_offset) - 52usize];
3778 ["Offset of field: JSJitElementLayout::array_buffer_data_offset"]
3779 [::core::mem::offset_of!(JSJitElementLayout, array_buffer_data_offset) - 56usize];
3780 ["Offset of field: JSJitElementLayout::array_buffer_byte_length_offset"]
3781 [::core::mem::offset_of!(JSJitElementLayout, array_buffer_byte_length_offset) - 60usize];
3782 ["Offset of field: JSJitElementLayout::array_buffer_max_byte_length_offset"][::core::mem::offset_of!(
3783 JSJitElementLayout,
3784 array_buffer_max_byte_length_offset
3785 ) - 64usize];
3786 ["Offset of field: JSJitElementLayout::array_buffer_detached_offset"]
3787 [::core::mem::offset_of!(JSJitElementLayout, array_buffer_detached_offset) - 68usize];
3788 ["Offset of field: JSJitElementLayout::array_buffer_immutable_offset"]
3789 [::core::mem::offset_of!(JSJitElementLayout, array_buffer_immutable_offset) - 72usize];
3790 ["Offset of field: JSJitElementLayout::array_class_id"]
3791 [::core::mem::offset_of!(JSJitElementLayout, array_class_id) - 76usize];
3792 ["Offset of field: JSJitElementLayout::int32_array_class_id"]
3793 [::core::mem::offset_of!(JSJitElementLayout, int32_array_class_id) - 80usize];
3794 ["Offset of field: JSJitElementLayout::float64_array_class_id"]
3795 [::core::mem::offset_of!(JSJitElementLayout, float64_array_class_id) - 84usize];
3796};
3797#[repr(C)]
3798#[derive(Debug, Copy, Clone)]
3799pub struct JSJitPropertyLayout {
3800 pub struct_size: u32,
3801 pub object_shape_offset: u32,
3802 pub object_properties_offset: u32,
3803 pub shape_generation_offset: u32,
3804}
3805#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3806const _: () = {
3807 ["Size of JSJitPropertyLayout"][::core::mem::size_of::<JSJitPropertyLayout>() - 16usize];
3808 ["Alignment of JSJitPropertyLayout"][::core::mem::align_of::<JSJitPropertyLayout>() - 4usize];
3809 ["Offset of field: JSJitPropertyLayout::struct_size"]
3810 [::core::mem::offset_of!(JSJitPropertyLayout, struct_size) - 0usize];
3811 ["Offset of field: JSJitPropertyLayout::object_shape_offset"]
3812 [::core::mem::offset_of!(JSJitPropertyLayout, object_shape_offset) - 4usize];
3813 ["Offset of field: JSJitPropertyLayout::object_properties_offset"]
3814 [::core::mem::offset_of!(JSJitPropertyLayout, object_properties_offset) - 8usize];
3815 ["Offset of field: JSJitPropertyLayout::shape_generation_offset"]
3816 [::core::mem::offset_of!(JSJitPropertyLayout, shape_generation_offset) - 12usize];
3817};
3818#[repr(C)]
3819#[derive(Debug, Copy, Clone)]
3820pub struct JSJitABIInfo {
3821 pub struct_size: u32,
3822 pub major: u16,
3823 pub minor: u16,
3824 pub pointer_width: u8,
3825 pub little_endian: u8,
3826 pub value_size: u16,
3827 pub source_revision: u64,
3828 pub opcode_fingerprint: u64,
3829 pub value_layout_fingerprint: u64,
3830 pub build_feature_flags: u64,
3831 pub build_fingerprint: u64,
3832 pub abi_info_layout_fingerprint: u64,
3833 pub function_id_layout_fingerprint: u64,
3834 pub hot_event_layout_fingerprint: u64,
3835 pub function_snapshot_layout_fingerprint: u64,
3836 pub entry_handle_layout_fingerprint: u64,
3837 pub backend_vtable_layout_fingerprint: u64,
3838 pub exec_frame_layout_fingerprint: u64,
3839 pub exit_layout_fingerprint: u64,
3840 pub runtime_api_layout_fingerprint: u64,
3841 pub helper_table_fingerprint: u64,
3842 pub element_layout_fingerprint: u64,
3843 pub element_layout: JSJitElementLayout,
3844 pub property_layout_fingerprint: u64,
3845 pub property_layout: JSJitPropertyLayout,
3846}
3847#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3848const _: () = {
3849 ["Size of JSJitABIInfo"][::core::mem::size_of::<JSJitABIInfo>() - 256usize];
3850 ["Alignment of JSJitABIInfo"][::core::mem::align_of::<JSJitABIInfo>() - 8usize];
3851 ["Offset of field: JSJitABIInfo::struct_size"]
3852 [::core::mem::offset_of!(JSJitABIInfo, struct_size) - 0usize];
3853 ["Offset of field: JSJitABIInfo::major"][::core::mem::offset_of!(JSJitABIInfo, major) - 4usize];
3854 ["Offset of field: JSJitABIInfo::minor"][::core::mem::offset_of!(JSJitABIInfo, minor) - 6usize];
3855 ["Offset of field: JSJitABIInfo::pointer_width"]
3856 [::core::mem::offset_of!(JSJitABIInfo, pointer_width) - 8usize];
3857 ["Offset of field: JSJitABIInfo::little_endian"]
3858 [::core::mem::offset_of!(JSJitABIInfo, little_endian) - 9usize];
3859 ["Offset of field: JSJitABIInfo::value_size"]
3860 [::core::mem::offset_of!(JSJitABIInfo, value_size) - 10usize];
3861 ["Offset of field: JSJitABIInfo::source_revision"]
3862 [::core::mem::offset_of!(JSJitABIInfo, source_revision) - 16usize];
3863 ["Offset of field: JSJitABIInfo::opcode_fingerprint"]
3864 [::core::mem::offset_of!(JSJitABIInfo, opcode_fingerprint) - 24usize];
3865 ["Offset of field: JSJitABIInfo::value_layout_fingerprint"]
3866 [::core::mem::offset_of!(JSJitABIInfo, value_layout_fingerprint) - 32usize];
3867 ["Offset of field: JSJitABIInfo::build_feature_flags"]
3868 [::core::mem::offset_of!(JSJitABIInfo, build_feature_flags) - 40usize];
3869 ["Offset of field: JSJitABIInfo::build_fingerprint"]
3870 [::core::mem::offset_of!(JSJitABIInfo, build_fingerprint) - 48usize];
3871 ["Offset of field: JSJitABIInfo::abi_info_layout_fingerprint"]
3872 [::core::mem::offset_of!(JSJitABIInfo, abi_info_layout_fingerprint) - 56usize];
3873 ["Offset of field: JSJitABIInfo::function_id_layout_fingerprint"]
3874 [::core::mem::offset_of!(JSJitABIInfo, function_id_layout_fingerprint) - 64usize];
3875 ["Offset of field: JSJitABIInfo::hot_event_layout_fingerprint"]
3876 [::core::mem::offset_of!(JSJitABIInfo, hot_event_layout_fingerprint) - 72usize];
3877 ["Offset of field: JSJitABIInfo::function_snapshot_layout_fingerprint"]
3878 [::core::mem::offset_of!(JSJitABIInfo, function_snapshot_layout_fingerprint) - 80usize];
3879 ["Offset of field: JSJitABIInfo::entry_handle_layout_fingerprint"]
3880 [::core::mem::offset_of!(JSJitABIInfo, entry_handle_layout_fingerprint) - 88usize];
3881 ["Offset of field: JSJitABIInfo::backend_vtable_layout_fingerprint"]
3882 [::core::mem::offset_of!(JSJitABIInfo, backend_vtable_layout_fingerprint) - 96usize];
3883 ["Offset of field: JSJitABIInfo::exec_frame_layout_fingerprint"]
3884 [::core::mem::offset_of!(JSJitABIInfo, exec_frame_layout_fingerprint) - 104usize];
3885 ["Offset of field: JSJitABIInfo::exit_layout_fingerprint"]
3886 [::core::mem::offset_of!(JSJitABIInfo, exit_layout_fingerprint) - 112usize];
3887 ["Offset of field: JSJitABIInfo::runtime_api_layout_fingerprint"]
3888 [::core::mem::offset_of!(JSJitABIInfo, runtime_api_layout_fingerprint) - 120usize];
3889 ["Offset of field: JSJitABIInfo::helper_table_fingerprint"]
3890 [::core::mem::offset_of!(JSJitABIInfo, helper_table_fingerprint) - 128usize];
3891 ["Offset of field: JSJitABIInfo::element_layout_fingerprint"]
3892 [::core::mem::offset_of!(JSJitABIInfo, element_layout_fingerprint) - 136usize];
3893 ["Offset of field: JSJitABIInfo::element_layout"]
3894 [::core::mem::offset_of!(JSJitABIInfo, element_layout) - 144usize];
3895 ["Offset of field: JSJitABIInfo::property_layout_fingerprint"]
3896 [::core::mem::offset_of!(JSJitABIInfo, property_layout_fingerprint) - 232usize];
3897 ["Offset of field: JSJitABIInfo::property_layout"]
3898 [::core::mem::offset_of!(JSJitABIInfo, property_layout) - 240usize];
3899};
3900#[repr(C)]
3901#[derive(Debug, Copy, Clone)]
3902pub struct JSJitHelperCounters {
3903 pub struct_size: u32,
3904 pub reserved: u32,
3905 pub dup_count: u64,
3906 pub free_count: u64,
3907}
3908#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3909const _: () = {
3910 ["Size of JSJitHelperCounters"][::core::mem::size_of::<JSJitHelperCounters>() - 24usize];
3911 ["Alignment of JSJitHelperCounters"][::core::mem::align_of::<JSJitHelperCounters>() - 8usize];
3912 ["Offset of field: JSJitHelperCounters::struct_size"]
3913 [::core::mem::offset_of!(JSJitHelperCounters, struct_size) - 0usize];
3914 ["Offset of field: JSJitHelperCounters::reserved"]
3915 [::core::mem::offset_of!(JSJitHelperCounters, reserved) - 4usize];
3916 ["Offset of field: JSJitHelperCounters::dup_count"]
3917 [::core::mem::offset_of!(JSJitHelperCounters, dup_count) - 8usize];
3918 ["Offset of field: JSJitHelperCounters::free_count"]
3919 [::core::mem::offset_of!(JSJitHelperCounters, free_count) - 16usize];
3920};
3921#[repr(C)]
3922#[derive(Debug, Copy, Clone)]
3923pub struct JSJitFastEntryState {
3924 pub struct_size: u32,
3925 pub reserved: u32,
3926 pub epoch: u64,
3927 pub entries: u64,
3928 pub exits: u64,
3929 pub optimized_entries: u64,
3930}
3931#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3932const _: () = {
3933 ["Size of JSJitFastEntryState"][::core::mem::size_of::<JSJitFastEntryState>() - 40usize];
3934 ["Alignment of JSJitFastEntryState"][::core::mem::align_of::<JSJitFastEntryState>() - 8usize];
3935 ["Offset of field: JSJitFastEntryState::struct_size"]
3936 [::core::mem::offset_of!(JSJitFastEntryState, struct_size) - 0usize];
3937 ["Offset of field: JSJitFastEntryState::reserved"]
3938 [::core::mem::offset_of!(JSJitFastEntryState, reserved) - 4usize];
3939 ["Offset of field: JSJitFastEntryState::epoch"]
3940 [::core::mem::offset_of!(JSJitFastEntryState, epoch) - 8usize];
3941 ["Offset of field: JSJitFastEntryState::entries"]
3942 [::core::mem::offset_of!(JSJitFastEntryState, entries) - 16usize];
3943 ["Offset of field: JSJitFastEntryState::exits"]
3944 [::core::mem::offset_of!(JSJitFastEntryState, exits) - 24usize];
3945 ["Offset of field: JSJitFastEntryState::optimized_entries"]
3946 [::core::mem::offset_of!(JSJitFastEntryState, optimized_entries) - 32usize];
3947};
3948#[repr(C)]
3949#[derive(Debug, Copy, Clone)]
3950pub struct JSJitFastEntryGrant {
3951 pub struct_size: u32,
3952 pub budget: u32,
3953 pub flags: u32,
3954 pub reserved: u32,
3955 pub state: *mut JSJitFastEntryState,
3956}
3957#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3958const _: () = {
3959 ["Size of JSJitFastEntryGrant"][::core::mem::size_of::<JSJitFastEntryGrant>() - 24usize];
3960 ["Alignment of JSJitFastEntryGrant"][::core::mem::align_of::<JSJitFastEntryGrant>() - 8usize];
3961 ["Offset of field: JSJitFastEntryGrant::struct_size"]
3962 [::core::mem::offset_of!(JSJitFastEntryGrant, struct_size) - 0usize];
3963 ["Offset of field: JSJitFastEntryGrant::budget"]
3964 [::core::mem::offset_of!(JSJitFastEntryGrant, budget) - 4usize];
3965 ["Offset of field: JSJitFastEntryGrant::flags"]
3966 [::core::mem::offset_of!(JSJitFastEntryGrant, flags) - 8usize];
3967 ["Offset of field: JSJitFastEntryGrant::reserved"]
3968 [::core::mem::offset_of!(JSJitFastEntryGrant, reserved) - 12usize];
3969 ["Offset of field: JSJitFastEntryGrant::state"]
3970 [::core::mem::offset_of!(JSJitFastEntryGrant, state) - 16usize];
3971};
3972#[repr(C)]
3973#[derive(Debug, Copy, Clone)]
3974pub struct JSJitBackendVTable {
3975 pub struct_size: u32,
3976 pub record_hot: ::core::option::Option<
3977 unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, event: *const JSJitHotEvent) -> u32,
3978 >,
3979 pub submit_snapshot: ::core::option::Option<
3980 unsafe extern "C" fn(
3981 opaque: *mut ::core::ffi::c_void,
3982 snapshot: *mut JSJitFunctionSnapshot,
3983 ),
3984 >,
3985 pub acquire_entry: ::core::option::Option<
3986 unsafe extern "C" fn(
3987 opaque: *mut ::core::ffi::c_void,
3988 id: u64,
3989 generation: u64,
3990 pc: u32,
3991 ) -> JSJitEntryHandle,
3992 >,
3993 pub release_entry: ::core::option::Option<
3994 unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, entry: JSJitEntryHandle),
3995 >,
3996 pub runtime_detach: ::core::option::Option<
3997 unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, rt: *mut JSRuntime),
3998 >,
3999 pub function_retire: ::core::option::Option<
4000 unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, id: u64, generation: u64),
4001 >,
4002 pub memory_used:
4003 ::core::option::Option<unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void) -> size_t>,
4004 pub native_enter: ::core::option::Option<
4005 unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, id: u64, generation: u64, pc: u32),
4006 >,
4007 pub native_exit: ::core::option::Option<
4008 unsafe extern "C" fn(
4009 opaque: *mut ::core::ffi::c_void,
4010 id: u64,
4011 generation: u64,
4012 pc: u32,
4013 exit_kind: u32,
4014 ),
4015 >,
4016 pub record_feedback: ::core::option::Option<
4017 unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, event: *const JSJitFeedbackEvent),
4018 >,
4019 pub entry_cache_epoch:
4020 ::core::option::Option<unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void) -> u64>,
4021 pub entry_fast_grant: ::core::option::Option<
4022 unsafe extern "C" fn(
4023 opaque: *mut ::core::ffi::c_void,
4024 id: u64,
4025 generation: u64,
4026 grant: *mut JSJitFastEntryGrant,
4027 ),
4028 >,
4029}
4030#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4031const _: () = {
4032 ["Size of JSJitBackendVTable"][::core::mem::size_of::<JSJitBackendVTable>() - 104usize];
4033 ["Alignment of JSJitBackendVTable"][::core::mem::align_of::<JSJitBackendVTable>() - 8usize];
4034 ["Offset of field: JSJitBackendVTable::struct_size"]
4035 [::core::mem::offset_of!(JSJitBackendVTable, struct_size) - 0usize];
4036 ["Offset of field: JSJitBackendVTable::record_hot"]
4037 [::core::mem::offset_of!(JSJitBackendVTable, record_hot) - 8usize];
4038 ["Offset of field: JSJitBackendVTable::submit_snapshot"]
4039 [::core::mem::offset_of!(JSJitBackendVTable, submit_snapshot) - 16usize];
4040 ["Offset of field: JSJitBackendVTable::acquire_entry"]
4041 [::core::mem::offset_of!(JSJitBackendVTable, acquire_entry) - 24usize];
4042 ["Offset of field: JSJitBackendVTable::release_entry"]
4043 [::core::mem::offset_of!(JSJitBackendVTable, release_entry) - 32usize];
4044 ["Offset of field: JSJitBackendVTable::runtime_detach"]
4045 [::core::mem::offset_of!(JSJitBackendVTable, runtime_detach) - 40usize];
4046 ["Offset of field: JSJitBackendVTable::function_retire"]
4047 [::core::mem::offset_of!(JSJitBackendVTable, function_retire) - 48usize];
4048 ["Offset of field: JSJitBackendVTable::memory_used"]
4049 [::core::mem::offset_of!(JSJitBackendVTable, memory_used) - 56usize];
4050 ["Offset of field: JSJitBackendVTable::native_enter"]
4051 [::core::mem::offset_of!(JSJitBackendVTable, native_enter) - 64usize];
4052 ["Offset of field: JSJitBackendVTable::native_exit"]
4053 [::core::mem::offset_of!(JSJitBackendVTable, native_exit) - 72usize];
4054 ["Offset of field: JSJitBackendVTable::record_feedback"]
4055 [::core::mem::offset_of!(JSJitBackendVTable, record_feedback) - 80usize];
4056 ["Offset of field: JSJitBackendVTable::entry_cache_epoch"]
4057 [::core::mem::offset_of!(JSJitBackendVTable, entry_cache_epoch) - 88usize];
4058 ["Offset of field: JSJitBackendVTable::entry_fast_grant"]
4059 [::core::mem::offset_of!(JSJitBackendVTable, entry_fast_grant) - 96usize];
4060};
4061pub const JS_JIT_BACKEND_OK: JSJitAnonymousEnum_JS_JIT_BACKEND_OK = 0;
4062pub const JS_JIT_BACKEND_INVALID_ARGUMENT: JSJitAnonymousEnum_JS_JIT_BACKEND_OK = -1;
4063pub const JS_JIT_BACKEND_ALREADY_ATTACHED: JSJitAnonymousEnum_JS_JIT_BACKEND_OK = -2;
4064pub const JS_JIT_BACKEND_INVALID_VTABLE: JSJitAnonymousEnum_JS_JIT_BACKEND_OK = -3;
4065pub const JS_JIT_BACKEND_BUSY: JSJitAnonymousEnum_JS_JIT_BACKEND_OK = -4;
4066pub type JSJitAnonymousEnum_JS_JIT_BACKEND_OK = ::core::ffi::c_int;
4067unsafe extern "C" {
4068 pub fn JS_GetJitABIInfo(out: *mut JSJitABIInfo) -> ::core::ffi::c_int;
4069}
4070unsafe extern "C" {
4071 pub fn JS_GetJitRuntimeId(rt: *mut JSRuntime) -> u64;
4072}
4073unsafe extern "C" {
4074 pub fn JS_JitGetHelperCounters(
4075 rt: *mut JSRuntime,
4076 counters: *mut JSJitHelperCounters,
4077 ) -> ::core::ffi::c_int;
4078}
4079unsafe extern "C" {
4080 pub fn JS_JitResetHelperCounters(rt: *mut JSRuntime) -> ::core::ffi::c_int;
4081}
4082#[repr(C)]
4083#[derive(Debug, Copy, Clone)]
4084pub struct JSJitTraceEvent {
4085 pub pc: u32,
4086 pub opcode: u8,
4087 pub kind: u8,
4088 pub helper_id: u8,
4089 pub reserved: u8,
4090}
4091#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4092const _: () = {
4093 ["Size of JSJitTraceEvent"][::core::mem::size_of::<JSJitTraceEvent>() - 8usize];
4094 ["Alignment of JSJitTraceEvent"][::core::mem::align_of::<JSJitTraceEvent>() - 4usize];
4095 ["Offset of field: JSJitTraceEvent::pc"][::core::mem::offset_of!(JSJitTraceEvent, pc) - 0usize];
4096 ["Offset of field: JSJitTraceEvent::opcode"]
4097 [::core::mem::offset_of!(JSJitTraceEvent, opcode) - 4usize];
4098 ["Offset of field: JSJitTraceEvent::kind"]
4099 [::core::mem::offset_of!(JSJitTraceEvent, kind) - 5usize];
4100 ["Offset of field: JSJitTraceEvent::helper_id"]
4101 [::core::mem::offset_of!(JSJitTraceEvent, helper_id) - 6usize];
4102 ["Offset of field: JSJitTraceEvent::reserved"]
4103 [::core::mem::offset_of!(JSJitTraceEvent, reserved) - 7usize];
4104};
4105unsafe extern "C" {
4106 pub fn JS_JitGetHelperCount(
4107 rt: *mut JSRuntime,
4108 helper_id: u32,
4109 count: *mut u64,
4110 ) -> ::core::ffi::c_int;
4111}
4112unsafe extern "C" {
4113 pub fn JS_JitSetExecutionTrace(
4114 rt: *mut JSRuntime,
4115 events: *mut JSJitTraceEvent,
4116 capacity: u32,
4117 ) -> ::core::ffi::c_int;
4118}
4119unsafe extern "C" {
4120 pub fn JS_JitGetExecutionTraceLength(
4121 rt: *mut JSRuntime,
4122 length: *mut u32,
4123 overflowed: *mut u32,
4124 ) -> ::core::ffi::c_int;
4125}
4126unsafe extern "C" {
4127 pub fn JS_SetJitBackend(
4128 rt: *mut JSRuntime,
4129 vtable: *const JSJitBackendVTable,
4130 opaque: *mut ::core::ffi::c_void,
4131 ) -> ::core::ffi::c_int;
4132}
4133unsafe extern "C" {
4134 pub fn JS_SetJitSuspended(
4135 rt: *mut JSRuntime,
4136 suspended: ::core::ffi::c_int,
4137 ) -> ::core::ffi::c_int;
4138}
4139unsafe extern "C" {
4140 pub fn JS_IsJitSuspended(rt: *mut JSRuntime) -> ::core::ffi::c_int;
4141}
4142unsafe extern "C" {
4143 pub fn JS_JitGetOpcodeTable(count: *mut u32, fingerprint: *mut u64) -> *const JSJitOpcodeInfo;
4144}
4145unsafe extern "C" {
4146 pub fn JS_JitSnapshotFunction(
4147 ctx: *mut JSContext,
4148 function: JSValue,
4149 out: *mut *mut JSJitFunctionSnapshot,
4150 ) -> ::core::ffi::c_int;
4151}
4152unsafe extern "C" {
4153 pub fn JS_JitFreeSnapshot(snapshot: *mut JSJitFunctionSnapshot);
4154}
4155unsafe extern "C" {
4156 pub fn JS_JitInvalidateFunction(ctx: *mut JSContext, function: JSValue) -> ::core::ffi::c_int;
4157}
4158unsafe extern "C" {
4159 pub fn JS_JitInlineEnter(
4160 caller: *mut JSJitExecFrame,
4161 stack_map_id: u32,
4162 call_pc: u32,
4163 continuation_pc: u32,
4164 call_kind: u32,
4165 argc: u32,
4166 callee: *mut *mut JSJitExecFrame,
4167 ) -> JSJitHelperStatus;
4168}
4169unsafe extern "C" {
4170 pub fn JS_JitInlineLeave(callee: *mut JSJitExecFrame, result_slot: u32) -> JSJitHelperStatus;
4171}
4172unsafe extern "C" {
4173 pub fn JS_JitInlineResume(
4174 callee: *mut JSJitExecFrame,
4175 resume_pc: u32,
4176 resume_kind: u32,
4177 ) -> JSJitHelperStatus;
4178}
4179unsafe extern "C" {
4180 pub fn JS_JitInlineCheck(frame: *mut JSJitExecFrame) -> JSJitHelperStatus;
4181}
4182#[repr(C)]
4183#[derive(Debug, Copy, Clone)]
4184pub struct JSJitInlineAPI {
4185 pub struct_size: u32,
4186 pub version: u32,
4187 pub max_depth: u32,
4188 pub max_bytes: u32,
4189 pub effects: u32,
4190 pub reserved: u32,
4191 pub enter: ::core::option::Option<
4192 unsafe extern "C" fn(
4193 arg1: *mut JSJitExecFrame,
4194 arg2: u32,
4195 arg3: u32,
4196 arg4: u32,
4197 arg5: u32,
4198 arg6: u32,
4199 arg7: *mut *mut JSJitExecFrame,
4200 ) -> JSJitHelperStatus,
4201 >,
4202 pub leave: ::core::option::Option<
4203 unsafe extern "C" fn(arg1: *mut JSJitExecFrame, arg2: u32) -> JSJitHelperStatus,
4204 >,
4205 pub resume: ::core::option::Option<
4206 unsafe extern "C" fn(arg1: *mut JSJitExecFrame, arg2: u32, arg3: u32) -> JSJitHelperStatus,
4207 >,
4208 pub check: ::core::option::Option<
4209 unsafe extern "C" fn(arg1: *mut JSJitExecFrame) -> JSJitHelperStatus,
4210 >,
4211}
4212#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4213const _: () = {
4214 ["Size of JSJitInlineAPI"][::core::mem::size_of::<JSJitInlineAPI>() - 56usize];
4215 ["Alignment of JSJitInlineAPI"][::core::mem::align_of::<JSJitInlineAPI>() - 8usize];
4216 ["Offset of field: JSJitInlineAPI::struct_size"]
4217 [::core::mem::offset_of!(JSJitInlineAPI, struct_size) - 0usize];
4218 ["Offset of field: JSJitInlineAPI::version"]
4219 [::core::mem::offset_of!(JSJitInlineAPI, version) - 4usize];
4220 ["Offset of field: JSJitInlineAPI::max_depth"]
4221 [::core::mem::offset_of!(JSJitInlineAPI, max_depth) - 8usize];
4222 ["Offset of field: JSJitInlineAPI::max_bytes"]
4223 [::core::mem::offset_of!(JSJitInlineAPI, max_bytes) - 12usize];
4224 ["Offset of field: JSJitInlineAPI::effects"]
4225 [::core::mem::offset_of!(JSJitInlineAPI, effects) - 16usize];
4226 ["Offset of field: JSJitInlineAPI::reserved"]
4227 [::core::mem::offset_of!(JSJitInlineAPI, reserved) - 20usize];
4228 ["Offset of field: JSJitInlineAPI::enter"]
4229 [::core::mem::offset_of!(JSJitInlineAPI, enter) - 24usize];
4230 ["Offset of field: JSJitInlineAPI::leave"]
4231 [::core::mem::offset_of!(JSJitInlineAPI, leave) - 32usize];
4232 ["Offset of field: JSJitInlineAPI::resume"]
4233 [::core::mem::offset_of!(JSJitInlineAPI, resume) - 40usize];
4234 ["Offset of field: JSJitInlineAPI::check"]
4235 [::core::mem::offset_of!(JSJitInlineAPI, check) - 48usize];
4236};
4237unsafe extern "C" {
4238 pub fn JS_JitGetInlineAPI(version: u32) -> *const JSJitInlineAPI;
4239}
4240unsafe extern "C" {
4241 pub fn JS_JitThrowValue(
4242 frame: *mut JSJitExecFrame,
4243 stack_map_id: u32,
4244 slot: u32,
4245 ) -> JSJitHelperStatus;
4246}
4247unsafe extern "C" {
4248 pub fn JS_JitThrowError(
4249 frame: *mut JSJitExecFrame,
4250 stack_map_id: u32,
4251 atom: u32,
4252 type_: u32,
4253 ) -> JSJitHelperStatus;
4254}
4255unsafe extern "C" {
4256 pub fn JS_JitCatchException(
4257 frame: *mut JSJitExecFrame,
4258 stack_map_id: u32,
4259 catch_slot: u32,
4260 handler_pc: u32,
4261 ) -> JSJitHelperStatus;
4262}
4263pub const __JS_ATOM_NULL: _bindgen_ty_7 = 0;
4264pub const JS_ATOM_null: _bindgen_ty_7 = 1;
4265pub const JS_ATOM_false: _bindgen_ty_7 = 2;
4266pub const JS_ATOM_true: _bindgen_ty_7 = 3;
4267pub const JS_ATOM_if: _bindgen_ty_7 = 4;
4268pub const JS_ATOM_else: _bindgen_ty_7 = 5;
4269pub const JS_ATOM_return: _bindgen_ty_7 = 6;
4270pub const JS_ATOM_var: _bindgen_ty_7 = 7;
4271pub const JS_ATOM_this: _bindgen_ty_7 = 8;
4272pub const JS_ATOM_delete: _bindgen_ty_7 = 9;
4273pub const JS_ATOM_void: _bindgen_ty_7 = 10;
4274pub const JS_ATOM_typeof: _bindgen_ty_7 = 11;
4275pub const JS_ATOM_new: _bindgen_ty_7 = 12;
4276pub const JS_ATOM_in: _bindgen_ty_7 = 13;
4277pub const JS_ATOM_instanceof: _bindgen_ty_7 = 14;
4278pub const JS_ATOM_do: _bindgen_ty_7 = 15;
4279pub const JS_ATOM_while: _bindgen_ty_7 = 16;
4280pub const JS_ATOM_for: _bindgen_ty_7 = 17;
4281pub const JS_ATOM_break: _bindgen_ty_7 = 18;
4282pub const JS_ATOM_continue: _bindgen_ty_7 = 19;
4283pub const JS_ATOM_switch: _bindgen_ty_7 = 20;
4284pub const JS_ATOM_case: _bindgen_ty_7 = 21;
4285pub const JS_ATOM_default: _bindgen_ty_7 = 22;
4286pub const JS_ATOM_throw: _bindgen_ty_7 = 23;
4287pub const JS_ATOM_try: _bindgen_ty_7 = 24;
4288pub const JS_ATOM_catch: _bindgen_ty_7 = 25;
4289pub const JS_ATOM_finally: _bindgen_ty_7 = 26;
4290pub const JS_ATOM_function: _bindgen_ty_7 = 27;
4291pub const JS_ATOM_debugger: _bindgen_ty_7 = 28;
4292pub const JS_ATOM_with: _bindgen_ty_7 = 29;
4293pub const JS_ATOM_class: _bindgen_ty_7 = 30;
4294pub const JS_ATOM_const: _bindgen_ty_7 = 31;
4295pub const JS_ATOM_enum: _bindgen_ty_7 = 32;
4296pub const JS_ATOM_export: _bindgen_ty_7 = 33;
4297pub const JS_ATOM_extends: _bindgen_ty_7 = 34;
4298pub const JS_ATOM_import: _bindgen_ty_7 = 35;
4299pub const JS_ATOM_super: _bindgen_ty_7 = 36;
4300pub const JS_ATOM_using: _bindgen_ty_7 = 37;
4301pub const JS_ATOM_implements: _bindgen_ty_7 = 38;
4302pub const JS_ATOM_interface: _bindgen_ty_7 = 39;
4303pub const JS_ATOM_let: _bindgen_ty_7 = 40;
4304pub const JS_ATOM_package: _bindgen_ty_7 = 41;
4305pub const JS_ATOM_private: _bindgen_ty_7 = 42;
4306pub const JS_ATOM_protected: _bindgen_ty_7 = 43;
4307pub const JS_ATOM_public: _bindgen_ty_7 = 44;
4308pub const JS_ATOM_static: _bindgen_ty_7 = 45;
4309pub const JS_ATOM_yield: _bindgen_ty_7 = 46;
4310pub const JS_ATOM_await: _bindgen_ty_7 = 47;
4311pub const JS_ATOM_empty_string: _bindgen_ty_7 = 48;
4312pub const JS_ATOM_keys: _bindgen_ty_7 = 49;
4313pub const JS_ATOM_size: _bindgen_ty_7 = 50;
4314pub const JS_ATOM_length: _bindgen_ty_7 = 51;
4315pub const JS_ATOM_message: _bindgen_ty_7 = 52;
4316pub const JS_ATOM_cause: _bindgen_ty_7 = 53;
4317pub const JS_ATOM_errors: _bindgen_ty_7 = 54;
4318pub const JS_ATOM_error: _bindgen_ty_7 = 55;
4319pub const JS_ATOM_suppressed: _bindgen_ty_7 = 56;
4320pub const JS_ATOM_stack: _bindgen_ty_7 = 57;
4321pub const JS_ATOM_name: _bindgen_ty_7 = 58;
4322pub const JS_ATOM_toString: _bindgen_ty_7 = 59;
4323pub const JS_ATOM_toLocaleString: _bindgen_ty_7 = 60;
4324pub const JS_ATOM_valueOf: _bindgen_ty_7 = 61;
4325pub const JS_ATOM_eval: _bindgen_ty_7 = 62;
4326pub const JS_ATOM_prototype: _bindgen_ty_7 = 63;
4327pub const JS_ATOM_constructor: _bindgen_ty_7 = 64;
4328pub const JS_ATOM_configurable: _bindgen_ty_7 = 65;
4329pub const JS_ATOM_writable: _bindgen_ty_7 = 66;
4330pub const JS_ATOM_enumerable: _bindgen_ty_7 = 67;
4331pub const JS_ATOM_value: _bindgen_ty_7 = 68;
4332pub const JS_ATOM_get: _bindgen_ty_7 = 69;
4333pub const JS_ATOM_set: _bindgen_ty_7 = 70;
4334pub const JS_ATOM_of: _bindgen_ty_7 = 71;
4335pub const JS_ATOM___proto__: _bindgen_ty_7 = 72;
4336pub const JS_ATOM_undefined: _bindgen_ty_7 = 73;
4337pub const JS_ATOM_number: _bindgen_ty_7 = 74;
4338pub const JS_ATOM_boolean: _bindgen_ty_7 = 75;
4339pub const JS_ATOM_string: _bindgen_ty_7 = 76;
4340pub const JS_ATOM_object: _bindgen_ty_7 = 77;
4341pub const JS_ATOM_symbol: _bindgen_ty_7 = 78;
4342pub const JS_ATOM_integer: _bindgen_ty_7 = 79;
4343pub const JS_ATOM_unknown: _bindgen_ty_7 = 80;
4344pub const JS_ATOM_arguments: _bindgen_ty_7 = 81;
4345pub const JS_ATOM_callee: _bindgen_ty_7 = 82;
4346pub const JS_ATOM_caller: _bindgen_ty_7 = 83;
4347pub const JS_ATOM__eval_: _bindgen_ty_7 = 84;
4348pub const JS_ATOM__ret_: _bindgen_ty_7 = 85;
4349pub const JS_ATOM__var_: _bindgen_ty_7 = 86;
4350pub const JS_ATOM__arg_var_: _bindgen_ty_7 = 87;
4351pub const JS_ATOM__with_: _bindgen_ty_7 = 88;
4352pub const JS_ATOM__using_dispose_: _bindgen_ty_7 = 89;
4353pub const JS_ATOM_use: _bindgen_ty_7 = 90;
4354pub const JS_ATOM_dispose: _bindgen_ty_7 = 91;
4355pub const JS_ATOM_disposeAsync: _bindgen_ty_7 = 92;
4356pub const JS_ATOM_lastIndex: _bindgen_ty_7 = 93;
4357pub const JS_ATOM_target: _bindgen_ty_7 = 94;
4358pub const JS_ATOM_index: _bindgen_ty_7 = 95;
4359pub const JS_ATOM_input: _bindgen_ty_7 = 96;
4360pub const JS_ATOM_defineProperties: _bindgen_ty_7 = 97;
4361pub const JS_ATOM_apply: _bindgen_ty_7 = 98;
4362pub const JS_ATOM_join: _bindgen_ty_7 = 99;
4363pub const JS_ATOM_concat: _bindgen_ty_7 = 100;
4364pub const JS_ATOM_split: _bindgen_ty_7 = 101;
4365pub const JS_ATOM_construct: _bindgen_ty_7 = 102;
4366pub const JS_ATOM_getPrototypeOf: _bindgen_ty_7 = 103;
4367pub const JS_ATOM_setPrototypeOf: _bindgen_ty_7 = 104;
4368pub const JS_ATOM_isExtensible: _bindgen_ty_7 = 105;
4369pub const JS_ATOM_preventExtensions: _bindgen_ty_7 = 106;
4370pub const JS_ATOM_has: _bindgen_ty_7 = 107;
4371pub const JS_ATOM_deleteProperty: _bindgen_ty_7 = 108;
4372pub const JS_ATOM_defineProperty: _bindgen_ty_7 = 109;
4373pub const JS_ATOM_getOwnPropertyDescriptor: _bindgen_ty_7 = 110;
4374pub const JS_ATOM_ownKeys: _bindgen_ty_7 = 111;
4375pub const JS_ATOM_add: _bindgen_ty_7 = 112;
4376pub const JS_ATOM_done: _bindgen_ty_7 = 113;
4377pub const JS_ATOM_next: _bindgen_ty_7 = 114;
4378pub const JS_ATOM_values: _bindgen_ty_7 = 115;
4379pub const JS_ATOM_source: _bindgen_ty_7 = 116;
4380pub const JS_ATOM_flags: _bindgen_ty_7 = 117;
4381pub const JS_ATOM_global: _bindgen_ty_7 = 118;
4382pub const JS_ATOM_unicode: _bindgen_ty_7 = 119;
4383pub const JS_ATOM_raw: _bindgen_ty_7 = 120;
4384pub const JS_ATOM_rawJSON: _bindgen_ty_7 = 121;
4385pub const JS_ATOM_new_target: _bindgen_ty_7 = 122;
4386pub const JS_ATOM_this_active_func: _bindgen_ty_7 = 123;
4387pub const JS_ATOM_home_object: _bindgen_ty_7 = 124;
4388pub const JS_ATOM_computed_field: _bindgen_ty_7 = 125;
4389pub const JS_ATOM_static_computed_field: _bindgen_ty_7 = 126;
4390pub const JS_ATOM_class_fields_init: _bindgen_ty_7 = 127;
4391pub const JS_ATOM_brand: _bindgen_ty_7 = 128;
4392pub const JS_ATOM_hash_constructor: _bindgen_ty_7 = 129;
4393pub const JS_ATOM_as: _bindgen_ty_7 = 130;
4394pub const JS_ATOM_from: _bindgen_ty_7 = 131;
4395pub const JS_ATOM_fromAsync: _bindgen_ty_7 = 132;
4396pub const JS_ATOM_meta: _bindgen_ty_7 = 133;
4397pub const JS_ATOM__default_: _bindgen_ty_7 = 134;
4398pub const JS_ATOM__star_: _bindgen_ty_7 = 135;
4399pub const JS_ATOM_Module: _bindgen_ty_7 = 136;
4400pub const JS_ATOM_then: _bindgen_ty_7 = 137;
4401pub const JS_ATOM_resolve: _bindgen_ty_7 = 138;
4402pub const JS_ATOM_reject: _bindgen_ty_7 = 139;
4403pub const JS_ATOM_promise: _bindgen_ty_7 = 140;
4404pub const JS_ATOM_proxy: _bindgen_ty_7 = 141;
4405pub const JS_ATOM_revoke: _bindgen_ty_7 = 142;
4406pub const JS_ATOM_async: _bindgen_ty_7 = 143;
4407pub const JS_ATOM_exec: _bindgen_ty_7 = 144;
4408pub const JS_ATOM_groups: _bindgen_ty_7 = 145;
4409pub const JS_ATOM_indices: _bindgen_ty_7 = 146;
4410pub const JS_ATOM_status: _bindgen_ty_7 = 147;
4411pub const JS_ATOM_reason: _bindgen_ty_7 = 148;
4412pub const JS_ATOM_globalThis: _bindgen_ty_7 = 149;
4413pub const JS_ATOM_bigint: _bindgen_ty_7 = 150;
4414pub const JS_ATOM_not_equal: _bindgen_ty_7 = 151;
4415pub const JS_ATOM_timed_out: _bindgen_ty_7 = 152;
4416pub const JS_ATOM_ok: _bindgen_ty_7 = 153;
4417pub const JS_ATOM_toJSON: _bindgen_ty_7 = 154;
4418pub const JS_ATOM_maxByteLength: _bindgen_ty_7 = 155;
4419pub const JS_ATOM_zip: _bindgen_ty_7 = 156;
4420pub const JS_ATOM_zipKeyed: _bindgen_ty_7 = 157;
4421pub const JS_ATOM_Object: _bindgen_ty_7 = 158;
4422pub const JS_ATOM_Array: _bindgen_ty_7 = 159;
4423pub const JS_ATOM_Error: _bindgen_ty_7 = 160;
4424pub const JS_ATOM_Number: _bindgen_ty_7 = 161;
4425pub const JS_ATOM_String: _bindgen_ty_7 = 162;
4426pub const JS_ATOM_Boolean: _bindgen_ty_7 = 163;
4427pub const JS_ATOM_Symbol: _bindgen_ty_7 = 164;
4428pub const JS_ATOM_Arguments: _bindgen_ty_7 = 165;
4429pub const JS_ATOM_Math: _bindgen_ty_7 = 166;
4430pub const JS_ATOM_JSON: _bindgen_ty_7 = 167;
4431pub const JS_ATOM_Date: _bindgen_ty_7 = 168;
4432pub const JS_ATOM_Function: _bindgen_ty_7 = 169;
4433pub const JS_ATOM_GeneratorFunction: _bindgen_ty_7 = 170;
4434pub const JS_ATOM_ForInIterator: _bindgen_ty_7 = 171;
4435pub const JS_ATOM_RegExp: _bindgen_ty_7 = 172;
4436pub const JS_ATOM_ArrayBuffer: _bindgen_ty_7 = 173;
4437pub const JS_ATOM_SharedArrayBuffer: _bindgen_ty_7 = 174;
4438pub const JS_ATOM_Uint8ClampedArray: _bindgen_ty_7 = 175;
4439pub const JS_ATOM_Int8Array: _bindgen_ty_7 = 176;
4440pub const JS_ATOM_Uint8Array: _bindgen_ty_7 = 177;
4441pub const JS_ATOM_Int16Array: _bindgen_ty_7 = 178;
4442pub const JS_ATOM_Uint16Array: _bindgen_ty_7 = 179;
4443pub const JS_ATOM_Int32Array: _bindgen_ty_7 = 180;
4444pub const JS_ATOM_Uint32Array: _bindgen_ty_7 = 181;
4445pub const JS_ATOM_BigInt64Array: _bindgen_ty_7 = 182;
4446pub const JS_ATOM_BigUint64Array: _bindgen_ty_7 = 183;
4447pub const JS_ATOM_Float16Array: _bindgen_ty_7 = 184;
4448pub const JS_ATOM_Float32Array: _bindgen_ty_7 = 185;
4449pub const JS_ATOM_Float64Array: _bindgen_ty_7 = 186;
4450pub const JS_ATOM_DataView: _bindgen_ty_7 = 187;
4451pub const JS_ATOM_BigInt: _bindgen_ty_7 = 188;
4452pub const JS_ATOM_WeakRef: _bindgen_ty_7 = 189;
4453pub const JS_ATOM_FinalizationRegistry: _bindgen_ty_7 = 190;
4454pub const JS_ATOM_Map: _bindgen_ty_7 = 191;
4455pub const JS_ATOM_Set: _bindgen_ty_7 = 192;
4456pub const JS_ATOM_WeakMap: _bindgen_ty_7 = 193;
4457pub const JS_ATOM_WeakSet: _bindgen_ty_7 = 194;
4458pub const JS_ATOM_Iterator: _bindgen_ty_7 = 195;
4459pub const JS_ATOM_IteratorConcat: _bindgen_ty_7 = 196;
4460pub const JS_ATOM_IteratorHelper: _bindgen_ty_7 = 197;
4461pub const JS_ATOM_IteratorWrap: _bindgen_ty_7 = 198;
4462pub const JS_ATOM_Map_Iterator: _bindgen_ty_7 = 199;
4463pub const JS_ATOM_Set_Iterator: _bindgen_ty_7 = 200;
4464pub const JS_ATOM_Array_Iterator: _bindgen_ty_7 = 201;
4465pub const JS_ATOM_String_Iterator: _bindgen_ty_7 = 202;
4466pub const JS_ATOM_RegExp_String_Iterator: _bindgen_ty_7 = 203;
4467pub const JS_ATOM_Generator: _bindgen_ty_7 = 204;
4468pub const JS_ATOM_Proxy: _bindgen_ty_7 = 205;
4469pub const JS_ATOM_Promise: _bindgen_ty_7 = 206;
4470pub const JS_ATOM_PromiseResolveFunction: _bindgen_ty_7 = 207;
4471pub const JS_ATOM_PromiseRejectFunction: _bindgen_ty_7 = 208;
4472pub const JS_ATOM_AsyncFunction: _bindgen_ty_7 = 209;
4473pub const JS_ATOM_AsyncFunctionResolve: _bindgen_ty_7 = 210;
4474pub const JS_ATOM_AsyncFunctionReject: _bindgen_ty_7 = 211;
4475pub const JS_ATOM_AsyncGeneratorFunction: _bindgen_ty_7 = 212;
4476pub const JS_ATOM_AsyncGenerator: _bindgen_ty_7 = 213;
4477pub const JS_ATOM_EvalError: _bindgen_ty_7 = 214;
4478pub const JS_ATOM_RangeError: _bindgen_ty_7 = 215;
4479pub const JS_ATOM_ReferenceError: _bindgen_ty_7 = 216;
4480pub const JS_ATOM_SyntaxError: _bindgen_ty_7 = 217;
4481pub const JS_ATOM_TypeError: _bindgen_ty_7 = 218;
4482pub const JS_ATOM_URIError: _bindgen_ty_7 = 219;
4483pub const JS_ATOM_InternalError: _bindgen_ty_7 = 220;
4484pub const JS_ATOM_DOMException: _bindgen_ty_7 = 221;
4485pub const JS_ATOM_CallSite: _bindgen_ty_7 = 222;
4486pub const JS_ATOM_DisposableStack: _bindgen_ty_7 = 223;
4487pub const JS_ATOM_AsyncDisposableStack: _bindgen_ty_7 = 224;
4488pub const JS_ATOM_SuppressedError: _bindgen_ty_7 = 225;
4489pub const JS_ATOM_Private_brand: _bindgen_ty_7 = 226;
4490pub const JS_ATOM_Symbol_toPrimitive: _bindgen_ty_7 = 227;
4491pub const JS_ATOM_Symbol_iterator: _bindgen_ty_7 = 228;
4492pub const JS_ATOM_Symbol_match: _bindgen_ty_7 = 229;
4493pub const JS_ATOM_Symbol_matchAll: _bindgen_ty_7 = 230;
4494pub const JS_ATOM_Symbol_replace: _bindgen_ty_7 = 231;
4495pub const JS_ATOM_Symbol_search: _bindgen_ty_7 = 232;
4496pub const JS_ATOM_Symbol_split: _bindgen_ty_7 = 233;
4497pub const JS_ATOM_Symbol_toStringTag: _bindgen_ty_7 = 234;
4498pub const JS_ATOM_Symbol_isConcatSpreadable: _bindgen_ty_7 = 235;
4499pub const JS_ATOM_Symbol_hasInstance: _bindgen_ty_7 = 236;
4500pub const JS_ATOM_Symbol_species: _bindgen_ty_7 = 237;
4501pub const JS_ATOM_Symbol_unscopables: _bindgen_ty_7 = 238;
4502pub const JS_ATOM_Symbol_asyncIterator: _bindgen_ty_7 = 239;
4503pub const JS_ATOM_Symbol_dispose: _bindgen_ty_7 = 240;
4504pub const JS_ATOM_Symbol_asyncDispose: _bindgen_ty_7 = 241;
4505pub const JS_ATOM_END: _bindgen_ty_7 = 242;
4506pub type _bindgen_ty_7 = ::core::ffi::c_uint;