We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbabdf7 commit d157de8Copy full SHA for d157de8
1 file changed
deps/v8/src/ast/ast-value-factory.cc
@@ -32,7 +32,8 @@
32
#include "src/common/globals.h"
33
#include "src/heap/factory-inl.h"
34
#include "src/heap/local-factory-inl.h"
35
-#include "src/objects/string.h"
+#include "src/objects/string-inl.h"
36
+#include "src/roots/roots.h"
37
#include "src/strings/string-hasher.h"
38
#include "src/utils/utils-inl.h"
39
@@ -83,7 +84,7 @@ bool AstRawString::AsArrayIndex(uint32_t* index) const {
83
84
if (!IsIntegerIndex()) return false;
85
if (length() <= Name::kMaxCachedArrayIndexLength) {
86
*index = StringHasher::DecodeArrayIndexFromHashField(
- raw_hash_field_, HashSeed(ReadOnlyHeap::GetReadOnlyRoots()));
87
+ raw_hash_field_, HashSeed(GetReadOnlyRoots()));
88
return true;
89
}
90
// Might be an index, but too big to cache it. Do the slow conversion. This
0 commit comments