From d157de8ed8a111283ac90bdeb9adaa88b62505d6 Mon Sep 17 00:00:00 2001 From: DaveT1991 Date: Thu, 9 Apr 2026 23:08:10 -0400 Subject: [PATCH] deps: fix ast-value-factory build without shared RO heap Signed-off-by: DaveT1991 --- deps/v8/src/ast/ast-value-factory.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/v8/src/ast/ast-value-factory.cc b/deps/v8/src/ast/ast-value-factory.cc index 8af2d51397b13d..f3e95e61e6e1de 100644 --- a/deps/v8/src/ast/ast-value-factory.cc +++ b/deps/v8/src/ast/ast-value-factory.cc @@ -32,7 +32,8 @@ #include "src/common/globals.h" #include "src/heap/factory-inl.h" #include "src/heap/local-factory-inl.h" -#include "src/objects/string.h" +#include "src/objects/string-inl.h" +#include "src/roots/roots.h" #include "src/strings/string-hasher.h" #include "src/utils/utils-inl.h" @@ -83,7 +84,7 @@ bool AstRawString::AsArrayIndex(uint32_t* index) const { if (!IsIntegerIndex()) return false; if (length() <= Name::kMaxCachedArrayIndexLength) { *index = StringHasher::DecodeArrayIndexFromHashField( - raw_hash_field_, HashSeed(ReadOnlyHeap::GetReadOnlyRoots())); + raw_hash_field_, HashSeed(GetReadOnlyRoots())); return true; } // Might be an index, but too big to cache it. Do the slow conversion. This