diff options
author | Michaël Zasso <targos@protonmail.com> | 2020-11-13 12:51:53 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2020-11-15 16:46:54 +0100 |
commit | 48db20f6f53060e38b2272566b014741eb4f519f (patch) | |
tree | e2f9b4c7f69d2e4597b73b4c3c09f4371d5cc963 /deps/v8/src/objects/elements.cc | |
parent | 79916428a48df937aa5b2b69c061d2d42181a76b (diff) | |
download | node-new-48db20f6f53060e38b2272566b014741eb4f519f.tar.gz |
deps: update V8 to 8.7.220
PR-URL: https://github.com/nodejs/node/pull/35700
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Diffstat (limited to 'deps/v8/src/objects/elements.cc')
-rw-r--r-- | deps/v8/src/objects/elements.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/v8/src/objects/elements.cc b/deps/v8/src/objects/elements.cc index 3057a9ee5a..32bd891a74 100644 --- a/deps/v8/src/objects/elements.cc +++ b/deps/v8/src/objects/elements.cc @@ -22,8 +22,8 @@ #include "src/objects/slots-atomic-inl.h" #include "src/objects/slots.h" #include "src/utils/utils.h" -#include "torque-generated/exported-class-definitions-tq-inl.h" -#include "torque-generated/exported-class-definitions-tq.h" +#include "torque-generated/exported-class-definitions-inl.h" +#include "torque-generated/exported-class-definitions.h" // Each concrete ElementsAccessor can handle exactly one ElementsKind, // several abstract ElementsAccessor classes are used to allow sharing @@ -3627,12 +3627,12 @@ class TypedElementsAccessor Handle<JSTypedArray> destination_ta = Handle<JSTypedArray>::cast(destination); DCHECK_LE(offset + length, destination_ta->length()); - CHECK(!destination_ta->WasDetached()); if (length == 0) return *isolate->factory()->undefined_value(); // All conversions from TypedArrays can be done without allocation. if (source->IsJSTypedArray()) { + CHECK(!destination_ta->WasDetached()); Handle<JSTypedArray> source_ta = Handle<JSTypedArray>::cast(source); ElementsKind source_kind = source_ta->GetElementsKind(); bool source_is_bigint = @@ -3647,6 +3647,7 @@ class TypedElementsAccessor return *isolate->factory()->undefined_value(); } } else if (source->IsJSArray()) { + CHECK(!destination_ta->WasDetached()); // Fast cases for packed numbers kinds where we don't need to allocate. Handle<JSArray> source_js_array = Handle<JSArray>::cast(source); size_t current_length; |