mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibJSGCVerifier: Assume MarkedVector wrapped members are valid
These are effectively heap roots, so they don't need to be visited.
This commit is contained in:
parent
b018114bee
commit
9f31a83c2e
Notes:
sideshowbarker
2024-07-17 00:57:24 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/9f31a83c2e Pull-request: https://github.com/SerenityOS/serenity/pull/23854 Issue: https://github.com/SerenityOS/serenity/issues/23848 Reviewed-by: https://github.com/mattco98 ✅ Reviewed-by: https://github.com/trflynn89
1 changed files with 2 additions and 2 deletions
|
@ -86,8 +86,8 @@ std::vector<clang::QualType> get_all_qualified_types(clang::QualType const& type
|
|||
|
||||
if (auto const* template_specialization = type->getAs<clang::TemplateSpecializationType>()) {
|
||||
auto specialization_name = template_specialization->getTemplateName().getAsTemplateDecl()->getQualifiedNameAsString();
|
||||
// Do not unwrap GCPtr/NonnullGCPtr
|
||||
if (specialization_name == "JS::GCPtr" || specialization_name == "JS::NonnullGCPtr" || specialization_name == "JS::RawGCPtr") {
|
||||
// Do not unwrap GCPtr/NonnullGCPtr/MarkedVector
|
||||
if (specialization_name == "JS::GCPtr" || specialization_name == "JS::NonnullGCPtr" || specialization_name == "JS::RawGCPtr" || specialization_name == "JS::MarkedVector") {
|
||||
qualified_types.push_back(type);
|
||||
} else {
|
||||
auto const template_arguments = template_specialization->template_arguments();
|
||||
|
|
Loading…
Add table
Reference in a new issue