Commit 602960f8 authored by Marja Hölttä's avatar Marja Hölttä Committed by V8 LUCI CQ

Reland [rab/gsab] Fix accessing raw byte length

Now with smaller repro

Bug: v8:11111,chromium:1347721
Change-Id: I637d85e91249aa8eb433f6e00e4fd385d5b950ce
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3789519
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Auto-Submit: Marja Hölttä <marja@chromium.org>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82022}
parent 0430b5b8
......@@ -3735,8 +3735,8 @@ class TypedElementsAccessor
uint8_t* source_data = static_cast<uint8_t*>(source.DataPtr());
uint8_t* dest_data = static_cast<uint8_t*>(destination.DataPtr());
size_t source_byte_length = source.byte_length();
size_t dest_byte_length = destination.byte_length();
size_t source_byte_length = source.GetByteLength();
size_t dest_byte_length = destination.GetByteLength();
bool source_shared = source.buffer().is_shared();
bool destination_shared = destination.buffer().is_shared();
......
// Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --harmony-rab-gsab
for (let i = 0; i < 1000; i++) {
const rab = new ArrayBuffer(1632, {"maxByteLength": 4096});
const ta1 = new Uint32Array(rab);
const ta2 = new Float32Array(rab);
rab.resize(2004);
ta1["set"](ta2);
}
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