Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions deps/v8/src/ast/ast-value-factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down
Loading