@@ -48,7 +48,7 @@ pub struct ProxyTraps {
48
48
pub ownPropertyKeys : :: std:: option:: Option < unsafe extern "C" fn
49
49
( cx : * mut JSContext ,
50
50
proxy : HandleObject ,
51
- props : * mut AutoIdVector )
51
+ props : MutableHandleIdVector )
52
52
-> bool > ,
53
53
pub delete_ : :: std:: option:: Option < unsafe extern "C" fn
54
54
( cx : * mut JSContext ,
@@ -58,7 +58,7 @@ pub struct ProxyTraps {
58
58
pub enumerate : :: std:: option:: Option < unsafe extern "C" fn
59
59
( cx : * mut JSContext ,
60
60
proxy : HandleObject ,
61
- props : * mut AutoIdVector )
61
+ props : MutableHandleIdVector )
62
62
-> bool > ,
63
63
pub getPrototypeIfOrdinary : :: std:: option:: Option < unsafe extern "C" fn
64
64
( cx : * mut JSContext ,
@@ -109,7 +109,7 @@ pub struct ProxyTraps {
109
109
proxy :
110
110
HandleObject ,
111
111
props :
112
- * mut AutoIdVector )
112
+ MutableHandleIdVector )
113
113
-> bool > ,
114
114
pub nativeCall : :: std:: option:: Option < unsafe extern "C" fn
115
115
( cx : * mut JSContext ,
@@ -211,16 +211,6 @@ extern "C" {
211
211
-> * const :: libc:: c_void ;
212
212
pub fn CreateWrapperProxyHandler ( aTraps : * const ProxyTraps )
213
213
-> * const :: libc:: c_void ;
214
- pub fn CreateRustJSPrincipal ( origin : * const :: libc:: c_void ,
215
- destroy : Option < unsafe extern "C" fn
216
- ( principal : * mut JSPrincipals ) > ,
217
- write : Option < unsafe extern "C" fn
218
- ( cx : * mut JSContext ,
219
- writer : * mut JSStructuredCloneWriter )
220
- -> bool > )
221
- -> * mut JSPrincipals ;
222
- pub fn GetPrincipalOrigin ( principal : * const JSPrincipals )
223
- -> * const :: libc:: c_void ;
224
214
pub fn GetCrossCompartmentWrapper ( ) -> * const :: libc:: c_void ;
225
215
pub fn GetSecurityWrapper ( ) -> * const :: libc:: c_void ;
226
216
pub fn NewCompileOptions ( aCx : * mut JSContext , aFile : * const :: libc:: c_char ,
@@ -240,7 +230,7 @@ extern "C" {
240
230
pub fn NewWindowProxy ( aCx : * mut JSContext , aObj : HandleObject ,
241
231
aHandler : * const :: libc:: c_void )
242
232
-> * mut JSObject ;
243
- pub fn GetWindowProxyClass ( ) -> * const Class ;
233
+ pub fn GetWindowProxyClass ( ) -> * const JSClass ;
244
234
pub fn GetProxyReservedSlot ( obj : * mut JSObject , slot : u32 , dest : * mut JS :: Value ) ;
245
235
pub fn GetProxyPrivate ( obj : * mut JSObject , dest : * mut JS :: Value ) ;
246
236
pub fn SetProxyReservedSlot ( obj : * mut JSObject , slot : u32 , val : * const JS :: Value ) ;
@@ -269,15 +259,17 @@ extern "C" {
269
259
pub fn UnwrapObjectStatic ( obj : * mut JSObject ) -> * mut JSObject ;
270
260
pub fn UnwrapObjectDynamic ( obj : * mut JSObject , cx : * mut JSContext , stopAtOuter : u8 ) -> * mut JSObject ;
271
261
pub fn UncheckedUnwrapObject ( obj : * mut JSObject , stopAtOuter : u8 ) -> * mut JSObject ;
272
- pub fn CreateAutoIdVector ( cx : * mut JSContext ) -> * mut AutoIdVector ;
273
- pub fn AppendToAutoIdVector ( v : * mut AutoIdVector , id : HandleId ) -> bool ;
274
- pub fn SliceAutoIdVector ( v : * const AutoIdVector , length : * mut usize ) -> * const jsid ;
275
- pub fn DestroyAutoIdVector ( v : * mut AutoIdVector ) ;
276
- pub fn CreateAutoObjectVector ( aCx : * mut JSContext )
277
- -> * mut AutoObjectVector ;
278
- pub fn AppendToAutoObjectVector ( v : * mut AutoObjectVector ,
262
+ pub fn CreateRootedIdVector ( cx : * mut JSContext ) -> * mut PersistentRootedIdVector ;
263
+ pub fn GetIdVectorAddress ( v : * mut PersistentRootedIdVector ) -> * mut :: libc:: c_void ;
264
+ pub fn SliceRootedIdVector ( v : * const PersistentRootedIdVector , length : * mut usize ) -> * const jsid ;
265
+ pub fn AppendToIdVector ( v : MutableHandleIdVector , id : HandleId ) -> bool ;
266
+ pub fn DestroyRootedIdVector ( v : * mut PersistentRootedIdVector ) ;
267
+ pub fn CreateRootedObjectVector ( aCx : * mut JSContext )
268
+ -> * mut PersistentRootedObjectVector ;
269
+ pub fn AppendToRootedObjectVector ( v : * mut PersistentRootedObjectVector ,
279
270
obj : * mut JSObject ) -> bool ;
280
- pub fn DeleteAutoObjectVector ( v : * mut AutoObjectVector ) ;
271
+ pub fn GetObjectVectorAddress ( v : * mut PersistentRootedObjectVector ) -> * mut :: libc:: c_void ;
272
+ pub fn DeleteRootedObjectVector ( v : * mut PersistentRootedObjectVector ) ;
281
273
pub fn CollectServoSizes ( cx : * mut JSContext , sizes : * mut ServoSizes , get_size : Option < unsafe extern "C" fn ( obj : * mut JSObject ) -> usize > ) -> bool ;
282
274
pub fn InitializeMemoryReporter ( want_to_measure : Option < unsafe extern "C" fn ( obj : * mut JSObject ) -> bool > ) ;
283
275
pub fn CallIdTracer ( trc : * mut JSTracer , idp : * mut Heap < jsid > ,
0 commit comments