Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

[do not merge] smup #290

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 60 additions & 38 deletions src/jsapi_macos_64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -863,10 +863,23 @@ pub struct _vftable_CallbackTracer {
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct CallbackTracer_ContextFunctor;
pub struct CallbackTracer_ContextFunctor {
pub _vftable: *const _vftable_CallbackTracer_ContextFunctor,
}
#[repr(C)]
pub struct _vftable_CallbackTracer_ContextFunctor {
pub _bindgen_empty_ctype_warning_fix: u64,
}
impl ::std::clone::Clone for CallbackTracer_ContextFunctor {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_CallbackTracer_ContextFunctor() {
assert_eq!(::std::mem::size_of::<CallbackTracer_ContextFunctor>() ,
8usize);
assert_eq!(::std::mem::align_of::<CallbackTracer_ContextFunctor>() ,
8usize);
}
impl ::std::clone::Clone for CallbackTracer {
fn clone(&self) -> Self { *self }
}
Expand Down Expand Up @@ -4430,6 +4443,10 @@ fn bindgen_test_layout_CompartmentFilter() {
pub struct AllCompartments {
pub _base: CompartmentFilter,
}
#[repr(C)]
pub struct _vftable_AllCompartments {
pub _base: _vftable_CompartmentFilter,
}
impl ::std::clone::Clone for AllCompartments {
fn clone(&self) -> Self { *self }
}
Expand All @@ -4438,6 +4455,10 @@ impl ::std::clone::Clone for AllCompartments {
pub struct ContentCompartmentsOnly {
pub _base: CompartmentFilter,
}
#[repr(C)]
pub struct _vftable_ContentCompartmentsOnly {
pub _base: _vftable_CompartmentFilter,
}
impl ::std::clone::Clone for ContentCompartmentsOnly {
fn clone(&self) -> Self { *self }
}
Expand All @@ -4446,6 +4467,10 @@ impl ::std::clone::Clone for ContentCompartmentsOnly {
pub struct ChromeCompartmentsOnly {
pub _base: CompartmentFilter,
}
#[repr(C)]
pub struct _vftable_ChromeCompartmentsOnly {
pub _base: _vftable_CompartmentFilter,
}
impl ::std::clone::Clone for ChromeCompartmentsOnly {
fn clone(&self) -> Self { *self }
}
Expand All @@ -4455,6 +4480,10 @@ pub struct SingleCompartment {
pub _base: CompartmentFilter,
pub ours: *mut JSCompartment,
}
#[repr(C)]
pub struct _vftable_SingleCompartment {
pub _base: _vftable_CompartmentFilter,
}
impl ::std::clone::Clone for SingleCompartment {
fn clone(&self) -> Self { *self }
}
Expand All @@ -4469,6 +4498,10 @@ pub struct CompartmentsWithPrincipals {
pub _base: CompartmentFilter,
pub principals: *mut JSPrincipals,
}
#[repr(C)]
pub struct _vftable_CompartmentsWithPrincipals {
pub _base: _vftable_CompartmentFilter,
}
impl ::std::clone::Clone for CompartmentsWithPrincipals {
fn clone(&self) -> Self { *self }
}
Expand Down Expand Up @@ -5251,10 +5284,23 @@ pub struct _vftable_ScriptEnvironmentPreparer {
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScriptEnvironmentPreparer_Closure;
pub struct ScriptEnvironmentPreparer_Closure {
pub _vftable: *const _vftable_ScriptEnvironmentPreparer_Closure,
}
#[repr(C)]
pub struct _vftable_ScriptEnvironmentPreparer_Closure {
pub _bindgen_empty_ctype_warning_fix: u64,
}
impl ::std::clone::Clone for ScriptEnvironmentPreparer_Closure {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_ScriptEnvironmentPreparer_Closure() {
assert_eq!(::std::mem::size_of::<ScriptEnvironmentPreparer_Closure>() ,
8usize);
assert_eq!(::std::mem::align_of::<ScriptEnvironmentPreparer_Closure>() ,
8usize);
}
impl ::std::clone::Clone for ScriptEnvironmentPreparer {
fn clone(&self) -> Self { *self }
}
Expand Down Expand Up @@ -5289,10 +5335,21 @@ fn bindgen_test_layout_AutoCTypesActivityCallback() {
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct AllocationMetadataBuilder;
pub struct AllocationMetadataBuilder {
pub _vftable: *const _vftable_AllocationMetadataBuilder,
}
#[repr(C)]
pub struct _vftable_AllocationMetadataBuilder {
pub _bindgen_empty_ctype_warning_fix: u64,
}
impl ::std::clone::Clone for AllocationMetadataBuilder {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_AllocationMetadataBuilder() {
assert_eq!(::std::mem::size_of::<AllocationMetadataBuilder>() , 8usize);
assert_eq!(::std::mem::align_of::<AllocationMetadataBuilder>() , 8usize);
}
#[repr(C)]
#[unsafe_no_drop_flag]
#[derive(Debug)]
Expand Down Expand Up @@ -5346,41 +5403,6 @@ fn bindgen_test_layout_GCHeapProfiler() {
assert_eq!(::std::mem::size_of::<GCHeapProfiler>() , 8usize);
assert_eq!(::std::mem::align_of::<GCHeapProfiler>() , 8usize);
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct MemProfiler {
pub mGCHeapProfiler: *mut GCHeapProfiler,
pub mRuntime: *mut JSRuntime,
}
impl ::std::clone::Clone for MemProfiler {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_MemProfiler() {
assert_eq!(::std::mem::size_of::<MemProfiler>() , 16usize);
assert_eq!(::std::mem::align_of::<MemProfiler>() , 8usize);
}
extern "C" {
fn _ZN11MemProfiler5startEP14GCHeapProfiler(this: *mut MemProfiler,
aGCHeapProfiler:
*mut GCHeapProfiler);
fn _ZN11MemProfiler4stopEv(this: *mut MemProfiler);
fn _ZN11MemProfiler14GetMemProfilerEP9JSRuntime(runtime: *mut JSRuntime)
-> *mut MemProfiler;
}
impl MemProfiler {
#[inline]
pub unsafe fn start(&mut self, aGCHeapProfiler: *mut GCHeapProfiler) {
_ZN11MemProfiler5startEP14GCHeapProfiler(&mut *self, aGCHeapProfiler)
}
#[inline]
pub unsafe fn stop(&mut self) { _ZN11MemProfiler4stopEv(&mut *self) }
#[inline]
pub unsafe fn GetMemProfiler(runtime: *mut JSRuntime)
-> *mut MemProfiler {
_ZN11MemProfiler14GetMemProfilerEP9JSRuntime(runtime)
}
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
pub enum InitState { Uninitialized = 0, Running = 1, ShutDown = 2, }
Expand Down
Loading