Skip to content

Commit d157de8

Browse files
committed
deps: fix ast-value-factory build without shared RO heap
Signed-off-by: DaveT1991 <dawoodaljanaby@gmail.com>
1 parent dbabdf7 commit d157de8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deps/v8/src/ast/ast-value-factory.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
#include "src/common/globals.h"
3333
#include "src/heap/factory-inl.h"
3434
#include "src/heap/local-factory-inl.h"
35-
#include "src/objects/string.h"
35+
#include "src/objects/string-inl.h"
36+
#include "src/roots/roots.h"
3637
#include "src/strings/string-hasher.h"
3738
#include "src/utils/utils-inl.h"
3839

@@ -83,7 +84,7 @@ bool AstRawString::AsArrayIndex(uint32_t* index) const {
8384
if (!IsIntegerIndex()) return false;
8485
if (length() <= Name::kMaxCachedArrayIndexLength) {
8586
*index = StringHasher::DecodeArrayIndexFromHashField(
86-
raw_hash_field_, HashSeed(ReadOnlyHeap::GetReadOnlyRoots()));
87+
raw_hash_field_, HashSeed(GetReadOnlyRoots()));
8788
return true;
8889
}
8990
// Might be an index, but too big to cache it. Do the slow conversion. This

0 commit comments

Comments
 (0)