Bug 1362205 - Annotate ScopeKinds in JS_GetTraceThingInfo(). r=sfink
MozReview-Commit-ID: 8Hti5sQAXGA
--- a/js/src/gc/Tracer.cpp
+++ b/js/src/gc/Tracer.cpp
@@ -459,16 +459,22 @@ JS_GetTraceThingInfo(char* buf, size_t b
snprintf(buf, bufsize, "<nonlinear desc>");
}
} else {
snprintf(buf, bufsize, "<null>");
}
break;
}
+ case JS::TraceKind::Scope:
+ {
+ js::Scope* scope = static_cast<js::Scope*>(thing);
+ snprintf(buf, bufsize, " %s", js::ScopeKindString(scope->kind()));
+ }
+
default:
break;
}
}
buf[bufsize - 1] = '\0';
}
JS::CallbackTracer::CallbackTracer(JSContext* cx, WeakMapTraceKind weakTraceKind)