Skip to content

Commit 94dd3e9

Browse files
ktranCommit Bot
authored andcommitted
[v8] Allow for 4GB TypedArrays
Increase TypedArray.kMaxLength by 1. Bug: chromium:1095721 Change-Id: Ic3668ff4e71cfd1289eda495333c4aae62c44795 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2249668 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org> Cr-Commit-Position: refs/heads/master@{#68424}
1 parent bbc23b4 commit 94dd3e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/v8.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5350,7 +5350,7 @@ class V8_EXPORT TypedArray : public ArrayBufferView {
53505350
*/
53515351
static constexpr size_t kMaxLength = internal::kApiSystemPointerSize == 4
53525352
? internal::kSmiMaxValue
5353-
: 0xFFFFFFFF;
5353+
: size_t{1} << 32;
53545354

53555355
/**
53565356
* Number of elements in this typed array

0 commit comments

Comments
 (0)