mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -98,9 +98,7 @@ fn get_must_not_have_traceable(sym: &Symbols, attrs: &[Attribute]) -> Option<usi
|
|||
|
||||
fn is_jstraceable<'tcx>(cx: &LateContext<'tcx>, ty: ty::Ty<'tcx>) -> bool {
|
||||
// TODO(sagudev): get_trait_def_id is expensive, use lazy and cache it for whole pass
|
||||
if let Some(trait_id) =
|
||||
get_trait_def_id(cx, &["script", "dom", "bindings", "trace", "JSTraceable"])
|
||||
{
|
||||
if let Some(trait_id) = get_trait_def_id(cx, &["mozjs", "gc", "Traceable"]) {
|
||||
return implements_trait(cx, ty, trait_id, &[]);
|
||||
}
|
||||
// when running tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue