Commit 94dd3e99 authored by Kim-Anh Tran's avatar Kim-Anh Tran Committed by Commit Bot

[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/+/2249668Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68424}
parent bbc23b44
......@@ -5350,7 +5350,7 @@ class V8_EXPORT TypedArray : public ArrayBufferView {
*/
static constexpr size_t kMaxLength = internal::kApiSystemPointerSize == 4
? internal::kSmiMaxValue
: 0xFFFFFFFF;
: size_t{1} << 32;
/**
* Number of elements in this typed array
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment