mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use mozjs tracing infrastructure (#29918)
* Update mozjs
64711ec2e6
also fixes https://github.com/servo/servo/issues/30043
* Move to mozjs Traceable and introduce CustomTraceable
This commit is contained in:
parent
1f7f4cf2be
commit
450f8193a5
20 changed files with 81 additions and 377 deletions
|
@ -312,22 +312,6 @@ macro_rules! unsafe_no_jsmanaged_fields(
|
|||
);
|
||||
);
|
||||
|
||||
macro_rules! jsmanaged_array(
|
||||
($count:expr) => (
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl<T> $crate::dom::bindings::trace::JSTraceable for [T; $count]
|
||||
where T: $crate::dom::bindings::trace::JSTraceable
|
||||
{
|
||||
#[inline]
|
||||
unsafe fn trace(&self, tracer: *mut ::js::jsapi::JSTracer) {
|
||||
for v in self.iter() {
|
||||
v.trace(tracer);
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
);
|
||||
|
||||
/// These are used to generate a event handler which has no special case.
|
||||
macro_rules! define_event_handler(
|
||||
($handler: ty, $event_type: ident, $getter: ident, $setter: ident, $setter_fn: ident) => (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue