diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-11-21 15:58:15 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-11-21 16:04:41 +0100 |
commit | 3e9939e38cb4ecc7c8a9bd7cff64baca3a897eb3 (patch) | |
tree | 036ca0e8d0971c009a181a0ad3a7a158ea7f7e86 /deps/v8/src/objects/string-table.cc | |
parent | 42543bcf478debf7a10f1f291e227ad57b0a38b6 (diff) | |
download | node-new-3e9939e38cb4ecc7c8a9bd7cff64baca3a897eb3.tar.gz |
deps: update V8 to 9.6.180.14
PR-URL: https://github.com/nodejs/node/pull/40488
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/v8/src/objects/string-table.cc')
-rw-r--r-- | deps/v8/src/objects/string-table.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/v8/src/objects/string-table.cc b/deps/v8/src/objects/string-table.cc index cff50bea79..d480901095 100644 --- a/deps/v8/src/objects/string-table.cc +++ b/deps/v8/src/objects/string-table.cc @@ -574,13 +574,14 @@ Address StringTable::Data::TryStringToIndexOrLookupExisting(Isolate* isolate, std::unique_ptr<Char[]> buffer; const Char* chars; - if (source.IsConsString()) { - DCHECK(!source.IsFlat()); + SharedStringAccessGuardIfNeeded access_guard(isolate); + if (source.IsConsString(isolate)) { + DCHECK(!source.IsFlat(isolate)); buffer.reset(new Char[length]); - String::WriteToFlat(source, buffer.get(), 0, length); + String::WriteToFlat(source, buffer.get(), 0, length, isolate, access_guard); chars = buffer.get(); } else { - chars = source.GetChars<Char>(no_gc) + start; + chars = source.GetChars<Char>(isolate, no_gc, access_guard) + start; } // TODO(verwaest): Internalize to one-byte when possible. SequentialStringKey<Char> key(base::Vector<const Char>(chars, length), seed); |